troubleshooting Question

ldap_modify_s: unknown LDAP result code (1023)

Avatar of killdurst
killdurst asked on
4 Comments1 Solution926 ViewsLast Modified:
Hi, I'm getting the following error:

ldap_modify_s: unknown LDAP result code (1023)
 additional info: Attribute password is invalid

I'm not very familiar with C and LDAP but the following is a portion of the code that returned the error:

LDAPMod      *mods[2];
LDAPMod      mod0;
mod0.mod_op = LDAP_MOD_REPLACE;
mod0.mod_type = "Password";
char *vals0[2];
vals0[0] = (unsigned char *) newPwdEnc;
vals0[1] = NULL;
mod0.mod_values = vals0;
mods[ 0 ] =&mod0;
mods[ 1 ] = NULL;
if ( ldap_modify_s( ld,GUID, mods ) != LDAP_SUCCESS ) {
      ldap_perror( ld, "ldap_modify_s" );

What attribute "password" is the error message talking about?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros