[SSSD] [PATCH] Use explicit base 10 for converting strings to integers

Jan Zelený jzeleny at redhat.com
Mon Oct 3 10:54:25 UTC 2011


> https://fedorahosted.org/sssd/ticket/1013
> 
> I'll provide a 1.6/1.5 back port when this patch is acked.
> 
> I've tested with a user that looks like this:
> ---------------
> dn: cn=octaluid,$DC
> objectClass: posixAccount
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: top
> uid: octaluid
> uidNumber: 1000
> gidNumber: 1000
> homeDirectory: /home/octaluid
> gecos: 01000
> loginShell: /bin/bash
> sn: octaluid
> givenName: octaluid
> cn: octaluid
> ---------------
> 
> Then remapped the uidNumber attribute in /etc/sssd/sssd.conf:
> ldap_user_uid_number = gecos
> 
> Without the patch, getent passwd octaluid reported uid 512, with the
> patch, it reports 1000. Saving users with UIDs of bases that cannot
> be converted with base-10 fails now (I tested hexadecimal 0x1000).

Ack

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20111003/b8824a3c/attachment.sig>


More information about the sssd-devel mailing list