[Freeipa-devel] [PATCH] use same regex for user/group names as shadow-utils

Rob Crittenden rcritten at redhat.com
Wed Aug 6 17:04:45 UTC 2008


This patch replaces the patch of the same name and the "fix validation 
return types" patch(es).

Turns out my tree was quite a bit out-of-date so I re-based the patches 
and combined them.

The user/group name validator didn't match the standard *nix validator 
and disallowed some valid names and allowed some invalid ones (including 
those with spaces).

This brings it inline with shadow-utils from Fedora 9.

Also change the validation routines to return 0/1 instead of True/False 
which made readability difficult, particularly with the reversed logic.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-71-goodname.patch
Type: text/x-patch
Size: 21118 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080806/a3145da3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080806/a3145da3/attachment-0001.bin>


More information about the Freeipa-devel mailing list