]> git.sur5r.net Git - openldap/commitdiff
Use rootdn for session updates
authorHoward Chu <hyc@openldap.org>
Wed, 3 Jun 2009 02:51:40 +0000 (02:51 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Jun 2009 02:51:40 +0000 (02:51 +0000)
contrib/slapd-modules/nssov/pam.c

index 2009f310c1f34eac8a6f995f35395565bfbe820b..d4249998577719a675c932a50921d0d8c4255312 100644 (file)
@@ -548,6 +548,8 @@ static int pam_sess(nssov_info *ni,TFILE *fp,Operation *op,int action)
        cb.sc_response = slap_null_cb;
        op->o_callback = &cb;
        op->o_tag = LDAP_REQ_MODIFY;
+       op->o_dn = op->o_bd->be_rootdn;
+       op->o_ndn = op->o_bd->be_rootndn;
        op->orm_modlist = &mod;
        op->orm_no_opattrs = 1;
        op->o_req_dn = dn;