Just installed qmail+ldap: i am loosing my hairs
Friedrich Locke <[email protected]> Mon, 14 Jan 2013 13:17:35 -0200
| Newsgroups | gmane.mail.qmail.ldap |
|---|---|
| Message-ID | <CANMDHqfx2eStdXs5i3rEmm2Mm-=Z5cNUnY-tiAVzNfErXRYoEQ@mail.gmail.com> |
--f46d042dfd5d15eb3d04d341253d Content-Type: text/plain; charset=ISO-8859-1 Hi folks, I have just finnished installing my qmail-ldap system. I am trying to send me a local message, but no success so far. Here is what i am trying: sioux@gustav$ echo to: vlobo | /var/qmail/bin/qmail-inject sioux@gustav$ Here is what i got from qmail-ldap logs: @4000000050f4201a17a0e594 new msg 1039956 @4000000050f4201a17a0e97c info msg 1039956: bytes 220 from < [email protected]> qp 4069 uid 1000 @4000000050f4201a17a1761c starting delivery 21: msg 1039956 to local [email protected] @4000000050f4201a17a1df94 status: local 1/100 remote 0/400 @4000000050f4201a17d130dc delivery 21: deferral: Temporary_failure_in_LDAP_lookup._(#4.4.3)./ @4000000050f4201a17d1f814 status: local 0/100 remote 0/400 Here is what i get from qmail-ldaplookup: gustav# ../bin/qmail-ldaplookup -d 255 -m [email protected] Searching ldap for: (|([email protected])(mailAlternateAddress= [email protected]))) under dn: ou=people,dc=ufv,dc=br qmail-ldaplookup: fatal: qldap_filter: unspecified error gustav# And here is what i got from slapd log: 50f42010 ber_get_next on fd 14 failed errno=0 (Undefined error: 0) 50f42010 connection_read(14): input error=-2 id=1047, closing. 50f42010 connection_closing: readying conn=1047 sd=14 for close 50f42010 daemon: activity on 1 descriptor 50f42010 daemon: waked 50f42010 daemon: select: listen=5 active_threads=0 tvp=zero 50f42010 daemon: select: listen=6 active_threads=0 tvp=zero 50f42010 daemon: select: listen=7 active_threads=0 tvp=zero 50f42010 daemon: select: listen=8 active_threads=0 tvp=zero 50f42010 daemon: select: listen=9 active_threads=0 tvp=zero 50f42010 connection_close: deferring conn=1047 sd=14 50f42010 conn=1047 op=1 do_unbind 50f42010 conn=1047 op=1 UNBIND 50f42010 connection_resched: attempting closing conn=1047 sd=14 50f42010 connection_close: conn=1047 sd=14 50f42010 daemon: removing 14 50f42010 conn=1047 fd=14 closed But when i try by hand: sioux@gustav$ ldapsearch -D cn=mail,ou=appsrv,dc=ufv,dc=br -b ou=people,dc=ufv,dc=br -h localhost -W \(\|\([email protected] \)\([email protected]\)\) Enter LDAP Password: # extended LDIF # # LDAPv3 # base <ou=people,dc=ufv,dc=br> with scope subtree # filter: (|([email protected])(mailAlternateAddress= [email protected])) # requesting: ALL # # vlobo, people, ufv.br dn: uid=vlobo,ou=people,dc=ufv,dc=br uid: vlobo objectClass: organizationalRole objectClass: posixAccount objectClass: qmailUser homeDirectory: /home/vlobo userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS mail: [email protected] mailAlternateAddress: [email protected] mailHost: gustav.cpd.ufv.br mailMessageStore: vlobo # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 sioux@gustav$ Everything works. What am i doing wrong ? --f46d042dfd5d15eb3d04d341253d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi folks,<br><br>I have just finnished installing my qmail-ldap system. I a= m trying to send me a local message, but no success so far.<br><br>Here is = what i am trying:<br><br>sioux@gustav$ echo to: vlobo | /var/qmail/bin/qmai= l-inject=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <br> sioux@gustav$ <br><br><br>Here is what i got from qmail-ldap logs:<br><br>@= 4000000050f4201a17a0e594 new msg 1039956<br>@4000000050f4201a17a0e97c info = msg 1039956: bytes 220 from <<a href=3D"mailto:[email protected]">= [email protected]</a>> qp 4069 uid 1000<br> @4000000050f4201a17a1761c starting delivery 21: msg 1039956 to local <a hre= f=3D"mailto:[email protected]">[email protected]</a><br>@400000= 0050f4201a17a1df94 status: local 1/100 remote 0/400<br>@4000000050f4201a17d= 130dc delivery 21: deferral: Temporary_failure_in_LDAP_lookup._(#4.4.3)./<b= r> @4000000050f4201a17d1f814 status: local 0/100 remote 0/400<br><br><br>Here = is what i get from qmail-ldaplookup:<br><br>gustav# ../bin/qmail-ldaplookup= -d 255 -m <a href=3D"mailto:[email protected]">[email protected].= br</a> <br> Searching ldap for: (|(mail=3D<a href=3D"mailto:[email protected]">vl= [email protected]</a>)(mailAlternateAddress=3D<a href=3D"mailto:vlobo@g= ustav.cpd.ufv.br">[email protected]</a>)))<br>under dn: ou=3Dpeople,d= c=3Dufv,dc=3Dbr<br> qmail-ldaplookup: fatal: qldap_filter: unspecified error<br>gustav# <br><br= ><br>And here is what i got from slapd log:<br><br>50f42010 ber_get_next on= fd 14 failed errno=3D0 (Undefined error: 0)<br>50f42010 connection_read(14= ): input error=3D-2 id=3D1047, closing.<br> 50f42010 connection_closing: readying conn=3D1047 sd=3D14 for close<br>50f4= 2010 daemon: activity on 1 descriptor<br>50f42010 daemon: waked<br>50f42010= daemon: select: listen=3D5 active_threads=3D0 tvp=3Dzero<br>50f42010 daemo= n: select: listen=3D6 active_threads=3D0 tvp=3Dzero<br> 50f42010 daemon: select: listen=3D7 active_threads=3D0 tvp=3Dzero<br>50f420= 10 daemon: select: listen=3D8 active_threads=3D0 tvp=3Dzero<br>50f42010 dae= mon: select: listen=3D9 active_threads=3D0 tvp=3Dzero<br>50f42010 connectio= n_close: deferring conn=3D1047 sd=3D14<br> 50f42010 conn=3D1047 op=3D1 do_unbind<br>50f42010 conn=3D1047 op=3D1 UNBIND= <br>50f42010 connection_resched: attempting closing conn=3D1047 sd=3D14<br>= 50f42010 connection_close: conn=3D1047 sd=3D14<br>50f42010 daemon: removing= 14<br>50f42010 conn=3D1047 fd=3D14 closed<br> <br>But when i try by hand:<br><br>sioux@gustav$ ldapsearch -D cn=3Dmail,ou= =3Dappsrv,dc=3Dufv,dc=3Dbr -b ou=3Dpeople,dc=3Dufv,dc=3Dbr -h localhost -W = \(\|\(mail=3D<a href=3D"mailto:[email protected]">[email protected]= v.br</a>\)\(mailAlternateAddress=3D<a href=3D"mailto:[email protected]= r">[email protected]</a>\)\)<br> Enter LDAP Password: <br># extended LDIF<br>#<br># LDAPv3<br># base <ou= =3Dpeople,dc=3Dufv,dc=3Dbr> with scope subtree<br># filter: (|(mail=3D<a= href=3D"mailto:[email protected]">[email protected]</a>)(mailA= lternateAddress=3D<a href=3D"mailto:[email protected]">[email protected]= pd.ufv.br</a>))<br> # requesting: ALL<br>#<br><br># vlobo, people, <a href=3D"http://ufv.br">uf= v.br</a><br>dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr<br>uid: vlobo<br>o= bjectClass: organizationalRole<br>objectClass: posixAccount<br>objectClass:= qmailUser<br> homeDirectory: /home/vlobo<br>userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS<br>ma= il: <a href=3D"mailto:[email protected]">[email protected]= .ufv.br</a><br>mailAlternateAddress: <a href=3D"mailto:[email protected]= .br">[email protected]</a><br> mailHost: <a href=3D"http://gustav.cpd.ufv.br">gustav.cpd.ufv.br</a><br>mai= lMessageStore: vlobo<br><br># search result<br>search: 2<br>result: 0 Succe= ss<br><br># numResponses: 2<br># numEntries: 1<br>sioux@gustav$ <br><br><br= > Everything works. What am i doing wrong ?<br> --f46d042dfd5d15eb3d04d341253d--