Red Hat Bugzilla – Bug 305121
Server hangs when adding a group with two password entries
Last modified: 2015-12-07 11:35:02 EST
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up a DS instance using /usr/sbin/setup-ds.pl
2. ldapadd something like the following:
ldapadd never receives a reply from the server, the server becomes unresponsive
and must be killed with SIGKILL.
Creation of the specified group, or perhaps an error message.
Created attachment 220601 [details]
Checking in pw.c;
/cvs/dirsec/ldapserver/ldap/servers/slapd/pw.c,v <-- pw.c
new revision: 1.16; previous revision: 1.15
Reviewed by: nhosoi,nkinder (Thanks!)
Files: see diff
Fix Description: The pw_encodevals() was not encoding each value, only the first
one, then setting each new value to the same encoded value. The solution is to
move char *enc into the loop so that it is allocated anew each time.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no