]> git.sur5r.net Git - openldap/commitdiff
clarify generated password issue
authorPierangelo Masarati <ando@openldap.org>
Mon, 2 Jan 2006 16:20:39 +0000 (16:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 2 Jan 2006 16:20:39 +0000 (16:20 +0000)
servers/slapd/back-ldap/extended.c

index 398e09555cbc7dd8e20716032344cbfb1bcd4486..21a4bd17f2ef148f532330071884316b8ebd5854 100644 (file)
@@ -153,12 +153,20 @@ retry:
                                rs->sr_text = NULL;
                        }
 #endif /* LDAP_NULL_IS_NULL */
+
                        if ( rc == LDAP_SUCCESS ) {
                                if ( rs->sr_err == LDAP_SUCCESS ) {
                                        struct berval   newpw;
-                                       
+
+                                       /* this never happens because 
+                                        * the frontend is generating 
+                                        * the new password, so when
+                                        * the passwd exop is proxied,
+                                        * it never delegates password
+                                        * generation to the remote server
+                                        */
                                        rc = ldap_parse_passwd( lc->lc_ld, res,
-                                                       &newpw);
+                                                       &newpw );
                                        if ( rc == LDAP_SUCCESS &&
                                                        !BER_BVISNULL( &newpw ) )
                                        {