|
From: Leo C. & C. H. <le...@cr...> - 2004-10-28 21:06:51
|
<html><body> <font style="font-family: arial,helvetica,sans-serif;" size="2">Problem adding a user and editing the user:<br> <br> >Add and edit users is broken because of a simple typo. I managed to get it<br> >fixed on my Debian Woody system.<br> >ldapadd.phtml and ldapedit.phtml use AUTH_SERVER_BIND_AS and AUTH_SERVER_BIND_PASSWORD<br> >which do not work. Using BIND_AS and BIND_PASSWORD did the trick.<br> <br> <br> The solution that Philip suggested worked. Even though I am guessing he meant to say to change ldapadduser.phtml instead of ldapadd.phtml. I could not find any mention of the variables AUTH_SERVER_BIND_PASSWORD and AUTH_SERVER_BIND_AS in ldapadd.phtml<br> <br> However, I noticed that the problem is that ldap is refusing to connect because a invalid dn<br> daemon: activity on: 7r<br> daemon: read activity on 7<br> connection_get(7)<br> bind: invalid dn (rolodap)<br> send_ldap_result: 34::invalid DN<br> ber_flush: 24 bytes to sd 7<br> daemon: select: listen=6 active_threads=1 tvp=NULL<br> <br> Checked that cn:rolodap exists in the database<br> [root@nightmare rolodap-v1]# ldapsearch -x -b "o=contacts.carolina.com" -D "cn=Manager,o=contacts.carolina.com" -w ve0674 '(cn=rolodap)'<br> version: 2<br> <br> #<br> # filter: (cn=rolodap)<br> # requesting: ALL<br> #<br> <br> # rolodap, contacts.carolina.com<br> dn: cn=rolodap, o=contacts.carolina.com<br> objectClass: top<br> objectClass: organizationalrole<br> objectClass: person<br> cn: rolodap<br> sn: rolodap<br> userPassword:: c2VjcmV0<br> <br> # search result<br> search: 2<br> result: 0 Success<br> <br> # numResponses: 2<br> # numEntries: 1<br> <br> --------------------------------------------------------------------------------------<br> This meant that a entry was added from the inital sample.ldif file:<br> -------------------------------------------------------------------------------------<br> <br> dn: cn=rolodap, o=contacts.cruzhernandez.net<br> objectclass: top<br> objectclass: organizationalrole<br> objectclass: person<br> cn: rolodap<br> sn: rolodap<br> userpassword : secret<br> <br> ----------------------------------------------<br> To solve the problem <br> ----------------------------------------------<br> <br> Edit the rolodap.conf and change the following lines <br> <br> From:<br> # the user to bind to the auth server with a single admin account that<br> # as the needed access to make changes to users<br> AUTH_SERVER_BIND_AS : rolodap<br> AUTH_SERVER_BIND_PASSWORD : password<br> <br> Here, not only the base dn is screw but also the passwd . The passwd in the sample.ldif is different from passwd on the rolodap.conf<br> <br> To:<br> # the user to bind to the auth server with a single admin account that<br> # as the needed access to make changes to users<br> AUTH_SERVER_BIND_AS : cn=rolodap,o=contacts.carolina.com<br> AUTH_SERVER_BIND_PASSWORD : secret<br> <br> Now the ldap server will connect without any problem:<br> <br> daemon: select: listen=6 active_threads=1 tvp=NULL<br> daemon: activity on 1 descriptors<br> daemon: activity on: 20r<br> daemon: read activity on 20<br> connection_get(20)<br> do_modify: dn (cn=rolodapadmins,o=contacts.carolina.com)<br> modifications:<br> replace: member<br> ldbm_back_modify:<br> ldbm_modify_internal: replace<br> ldbm_modify_internal: replace<br> ldbm_modify_internal: replace<br> daemon: select: listen=6 active_threads=1 tvp=NULL<br> <br> ------------------<br> Question<br> ------------------<br> <br> Does anybody knows the difference between the use of :<br> AUTH_SERVER_BIND_AS and BIND_AS<br> AUTH_SERVER_BIND_PASSWORD and BIND_PASSWORD<br> <br> Looking at the codes it look likes they are interchangeable<br> Does anybody knows the real reason behind these two different variables?<br> <br> <br> <br>Leonardo Cruz & Carolina Hernandez<br>Phone: (651) 905-8912<br>E-mail: le...@cr...</font> <br> <br><hr>Sign up for FREE email from Everyone.net email at http://www.everyone.net<br></body></html> |