--- openldap-2.4.23/contrib/slapd-modules/nssov/group.c.orig 2010-07-08 20:32:34.192774554 +0600 +++ openldap-2.4.23/contrib/slapd-modules/nssov/group.c 2010-07-08 20:35:44.458624338 +0600 @@ -229,6 +229,7 @@ /* write entries for all names and gids */ for (i=0;!BER_BVISNULL(&names[i]);i++) { +/* if (!isvalidgroupname(&names[i])) { Debug(LDAP_DEBUG_ANY,"nssov: group entry %s contains invalid group name: \"%s\"\n", @@ -236,6 +237,7 @@ } else { +*/ for (j=0;!BER_BVISNULL(&gids[j]);j++) { char *tmp; @@ -262,7 +264,9 @@ } } } +/* } +*/ } /* free and return */ if (members!=NULL) @@ -280,10 +284,12 @@ READ_STRING(fp,cbp.buf); cbp.name.bv_len = tmpint32; cbp.name.bv_val = cbp.buf; +/* if (!isvalidgroupname(&cbp.name)) { Debug(LDAP_DEBUG_ANY,"nssov_group_byname(%s): invalid group name\n",cbp.name.bv_val,0,0); return -1; } +*/ cbp.wantmembers = 1; cbp.ni = ni; BER_BVZERO(&cbp.gidnum);