My apologies - I put the wrong bind example in. Attempting to bind as <span class="q" id="q_108bf1b5dc83441a_1">dn="ntUserDomainId=smithr,ou=People,dc=fedora,dc=test,dc=com" also fails.<br>
Richard, regarding the alternative search filter, is it possible to perform a search where you match against a password?<br>
<br>
I'm using this to currently perform a silent login after having binded (is that a word?) was the directory admin.<br>
SRCH base="ou=People,dc=fedora,dc=test,dc=com" scope=2 filter="(&(objectClass=*)(ntUserDomainId=SmithR))" attrs="memberOf"<br>
<br>
I imagine it would be fairly easy to extract the password too. Do you
think so? Would I use the userPassword field for this? Do you think
that this is what most directories will store the user's password in?<br>
<br>
Many thanks again<br>
Rich<br>
</span><br><div><span class="gmail_quote">On 12/01/06, <b class="gmail_sendername">Richard Megginson</b> <<a href="mailto:rmeggins@redhat.com">rmeggins@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I don't think this will work either.  The DN for the entry is<br>uid=RSmith,ou=People, dc=fedora,dc=test,dc=com - If you want to bind as<br>this same user but with a different DN, you will have to rename the<br>entry to use ntUserDomainId=smithr as the RDN instead of uid=RSmith.  If
<br>AD allows you to request an entry by DN other than the actual DN of the<br>entry, then it is non-standard LDAP behavior.<br><br>Of course, if your client program allows it (like PAM), you can use a<br>different search filter to look up your entry.  I think PAM by default
<br>uses (uid=%s) where %s is filled in with your login name.  I suppose you<br>could change it to (ntUserDomainId=%s), then you should be able to use<br>your existing entry for PAM login without having to rename it.  However,
<br>if your client application expects ntUserDomainId=foo in the DN, then<br>you have no choice but to rename your entry.<br><br>Bowie Bailey wrote:<br><br>>Richard Gibson wrote:<br>><br>><br>>>Hello there.
<br>>><br>>>I've been using the Fedora Directory Server for very small scale<br>>>testing at work, but actually know rather little about LDAP<br>>>unfortunately. Hopefully you won't mind. Anyway, is it possible to
<br>>>bind with an entry other than CN? I have the following user (LDIF<br>>>format):<br>>><br>>>dn: uid=RSmith,ou=People, dc=fedora,dc=test,dc=com<br>>>mail: <a href="mailto:blablabla@test.com">
blablabla@test.com</a><br>>>uid: RSmith<br>>>givenName: Richard<br>>>objectClass: top<br>>>objectClass: person<br>>>objectClass: organizationalPerson<br>>>objectClass: inetorgperson<br>
>>objectClass: ntuser<br>>>objectClass: posixAccount<br>>>sn: Smith<br>>>cn: RSmith<br>>>creatorsName:<br>>>uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot<br>>>modifiersName:
<br>>>uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot<br>>>createTimestamp: 20050905103419Z<br>>>modifyTimestamp: 20050916131603Z<br>>>nsUniqueId: 86b5b081-1dd211b2-806ddcd6-e1700000
<br>>>ntUserDomainId: smithr<br>>>uidNumber: 1<br>>>gidNumber: 2<br>>>homeDirectory: /home/smithr<br>>><br>>><br>>>When attempting to bind using the following (as taken from the access
<br>>>log):<br>>>BIND dn="ntUserDomainId=Richard Smith,ou=People,dc=fedora,dc=test,dc=com"<br>>><br>>><br>>method=128 version=3<br>><br>><br>>>...I get "No such object". This user does exist though. Is binding
<br>>>using the ntUserDomainId out of the question?<br>>><br>>><br>><br>>Take a closer look.  The ntUserDomainId is "smithr" for this user, not<br>>"Richard Smith".<br>><br>
>Try this:<br>>dn="ntUserDomainId=smithr,ou=People,dc=fedora,dc=test,dc=com"<br>><br>>Disclaimer: I'm an LDAP beginner myself.  This is just a suggestion<br>>based on the fact that your bind doesn't match the user information you
<br>>provided.<br>><br>><br>><br><br><br>--<br>Fedora-directory-users mailing list<br><a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">
https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br><br><br><br></blockquote></div><br>