lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1340 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1340 - nss-pam-ldapd/nslcd



Author: arthur
Date: Fri Dec 24 15:32:40 2010
New Revision: 1340
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1340

Log:
also support tilde (~) in user and group names, except as first character

Modified:
   nss-pam-ldapd/nslcd/common.c

Modified: nss-pam-ldapd/nslcd/common.c
==============================================================================
--- nss-pam-ldapd/nslcd/common.c        Fri Dec 24 15:31:04 2010        (r1339)
+++ nss-pam-ldapd/nslcd/common.c        Fri Dec 24 15:32:40 2010        (r1340)
@@ -107,7 +107,7 @@
          name[i]=='.' || name[i]=='_'  || name[i]=='$' )
       continue;
     /* characters that may be anywhere except as first character */
-    if ( i>0 && name[i]=='-' )
+    if ( i>0 && ( name[i]=='-' || name[i]=='~' ) )
       continue;
     /* characters that may not be the first or last character */
     if ( ( i>0 && name[i+1]!='\0' ) && ( name[i]=='\\' || name[i]==' ') )
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits