--- openldap-2.4.23/contrib/slapd-modules/nssov/passwd.c.orig 2010-10-20 12:47:48.447889599 +0600 +++ openldap-2.4.23/contrib/slapd-modules/nssov/passwd.c 2010-10-20 12:49:03.815892114 +0600 @@ -238,6 +238,7 @@ BER_BVZERO(&names[1]); } /* get the password for this entry */ +/* a = attr_find(entry->e_attrs, slap_schema.si_ad_objectClass); if ( a ) { for ( i=0; ia_numvals; i++) { @@ -249,8 +250,10 @@ } if ( use_shadow ) { +*/ /* if the entry has a shadowAccount entry, point to that instead */ passwd = shadow_passwd; +/* } else { @@ -260,6 +263,7 @@ if (BER_BVISNULL(&passwd)) passwd=default_passwd_userPassword; } +*/ /* get the uids for this entry */ if (BER_BVISNULL(&cbp->id)) {