Hi again<br><br>all informations you provided looks ok. At times like this when error was hard to find I looked /var/log/dirsrv/slapd-instance_name/access log for debug info. Run tail -f on access log and try to use id command again. The logs will provide some tracing info commbined with information you provided already.<br>
<br>Greg.<br><br><div class="gmail_quote">2012/7/28 Fosiul Alam <span dir="ltr">&lt;<a href="mailto:fosiul@gmail.com" target="_blank">fosiul@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
HI thanks<br>
<br>
if i try this<br>
<br>
ldapsearch -x -ZZ  -D &quot;uid=falam,ou=users,l=uk,dc=fosiul,dc=lan&quot; -w<br>
xxx  -h ldap-2.fosiul.lan -b &quot;dc=fosiul,dc=lan&quot; &quot;(cn=Fosiul Alam)&quot; dn<br>
cn sn<br>
<br>
now if i give a wrong password it will say , authentication failed<br>
<br>
but with correct password..<br>
It does not return anything ..<br>
and i get this in the log<br>
<br>
<a href="http://fpaste.org/SA47/" target="_blank">http://fpaste.org/SA47/</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Jul 28, 2012 at 8:31 PM, yersinia &lt;<a href="mailto:yersinia.spiros@gmail.com">yersinia.spiros@gmail.com</a>&gt; wrote:<br>
&gt; Sorry for the top posting.<br>
&gt;<br>
&gt; But your test is not sufficient.  can you do a ldap simple bind with<br>
&gt; the user , not with the directory admin, you want to authenticate ?<br>
&gt; This is the first question to answer .  so you can be sure no ldap acl<br>
&gt; problem, no password mismatch and the like.<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; 2012/7/28, Fosiul Alam &lt;<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>&gt;:<br>
&gt;&gt; Hi<br>
&gt;&gt; I have setup ldap server and from client its returning example :<br>
&gt;&gt;<br>
&gt;&gt; [root@home ~]# ldapsearch -x -ZZ -D &quot;cn=Directory manager&quot; -w xxx  -h<br>
&gt;&gt; ldap-2.fosiul.lan -b &quot;dc=fosiul,dc=lan&quot; &quot;(cn=Fosiul Alam)&quot;<br>
&gt;&gt; # extended LDIF<br>
&gt;&gt; #<br>
&gt;&gt; # LDAPv3<br>
&gt;&gt; # base &lt;dc=fosiul,dc=lan&gt; with scope subtree<br>
&gt;&gt; # filter: (cn=Fosiul Alam)<br>
&gt;&gt; # requesting: ALL<br>
&gt;&gt; #<br>
&gt;&gt;<br>
&gt;&gt; # falam, users, uk, fosiul.lan<br>
&gt;&gt; dn: uid=falam,ou=users,l=uk,dc=fosiul,dc=lan<br>
&gt;&gt; givenName: Fosiul<br>
&gt;&gt; sn: Alam<br>
&gt;&gt; loginShell: /bin/bash/bash<br>
&gt;&gt; uidNumber: 1000<br>
&gt;&gt; gidNumber: 3000<br>
&gt;&gt; objectClass: top<br>
&gt;&gt; objectClass: person<br>
&gt;&gt; objectClass: organizationalPerson<br>
&gt;&gt; objectClass: inetorgperson<br>
&gt;&gt; objectClass: posixAccount<br>
&gt;&gt; uid: falam<br>
&gt;&gt; cn: Fosiul Alam<br>
&gt;&gt; homeDirectory: /home/falam<br>
&gt;&gt; userPassword:: e1NTSEF9UGtqNjhvSU1pSR0RrSWNYYkVvYVU2V2c9PQ=<br>
&gt;&gt;  =<br>
&gt;&gt;<br>
&gt;&gt; # search result<br>
&gt;&gt; search: 3<br>
&gt;&gt; result: 0 Success<br>
&gt;&gt;<br>
&gt;&gt; # numResponses: 2<br>
&gt;&gt; # numEntries: 1<br>
&gt;&gt;<br>
&gt;&gt; and in the access log :<br>
&gt;&gt;<br>
&gt;&gt; 28/Jul/2012:15:42:57 +0100] conn=229 fd=70 slot=70 connection from<br>
&gt;&gt; 192.0.0.4 to 192.0.0.9<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=0 EXT<br>
&gt;&gt; oid=&quot;1.3.6.1.4.1.1466.20037&quot; name=&quot;startTLS&quot;<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=0 RESULT err=0 tag=120<br>
&gt;&gt; nentries=0 etime=0<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 SSL 256-bit AES<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=1 BIND dn=&quot;cn=Directory<br>
&gt;&gt; manager&quot; method=128 version=3<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=1 RESULT err=0 tag=97<br>
&gt;&gt; nentries=0 etime=0 dn=&quot;cn=directory manager&quot;<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=2 SRCH<br>
&gt;&gt; base=&quot;dc=fosiul,dc=lan&quot; scope=2 filter=&quot;(cn=Fosiul Alam)&quot; attrs=ALL<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=2 RESULT err=0 tag=101<br>
&gt;&gt; nentries=1 etime=0<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=3 UNBIND<br>
&gt;&gt; [28/Jul/2012:15:42:57 +0100] conn=229 op=3 fd=70 closed - U1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; But From command line , when i do<br>
&gt;&gt; [root@home ~]# id falam<br>
&gt;&gt; id: falam: No such user<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 fd=70 slot=70 connection from<br>
&gt;&gt; 192.0.0.4 to 192.0.0.9<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=0 EXT<br>
&gt;&gt; oid=&quot;1.3.6.1.4.1.1466.20037&quot; name=&quot;startTLS&quot;<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=0 RESULT err=0 tag=120<br>
&gt;&gt; nentries=0 etime=0<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 SSL 256-bit AES<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=1 BIND dn=&quot;&quot; method=128 version=3<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=1 RESULT err=0 tag=97<br>
&gt;&gt; nentries=0 etime=0 dn=&quot;&quot;<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=2 SRCH<br>
&gt;&gt; base=&quot;dc=fosiul,dc=lan&quot; scope=2<br>
&gt;&gt; filter=&quot;(&amp;(objectClass=posixAccount)(uid=falam))&quot; attrs=&quot;uid<br>
&gt;&gt; userPassword uidNumber gidNumber cn homeDirectory loginShell gecos<br>
&gt;&gt; description objectClass&quot;<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=2 RESULT err=0 tag=101<br>
&gt;&gt; nentries=0 etime=0<br>
&gt;&gt; [28/Jul/2012:15:44:26 +0100] conn=230 op=-1 fd=70 closed - B1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So basically, ldapsearch is working but authentication is not working  ..<br>
&gt;&gt;<br>
&gt;&gt; Can any one please help me with this .<br>
&gt;&gt; and i am using Centos 5.8<br>
&gt;&gt;<br>
&gt;&gt; Fosiul.<br>
&gt;&gt; --<br>
&gt;&gt; 389 users mailing list<br>
&gt;&gt; <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
&gt;&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
&gt;<br>
&gt; --<br>
&gt; Inviato dal mio dispositivo mobile<br>
&gt; --<br>
&gt; 389 users mailing list<br>
&gt; <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
Regards<br>
Fosiul Alam<br>
07877100621<br>
<a href="http://www.fosiul.co.uk" target="_blank">http://www.fosiul.co.uk</a><br>
</div><div class="HOEnZb"><div class="h5">--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></div></div></blockquote></div><br>