Re: Just installed qmail+ldap: i am loosing my hairs

Carlos García Gómez <[email protected]> Mon, 14 Jan 2013 16:58:44 +0100
Newsgroups gmane.mail.qmail.ldap
Message-ID <[email protected]>
Éste es un mensaje de varias partes en formato MIME.
------=_NextPart_000_010E_01CDF278.697F7350
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It seems

gustav# ../bin/qmail-ldaplookup -d 255 -m [email protected]=20
Searching ldap for: =
(|([email protected])([email protected]=
d.ufv.br)))
under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr
qmail-ldaplookup: fatal: qldap_filter: unspecified error
gustav#=20

Try to do this query with this filter in your ldap client=20

I think there are too many =E2=80=9C)=E2=80=9D

Regards

Carlos
 http://www.netcgg.es
Murcia-Spain

From: Friedrich Locke=20
Sent: Monday, January 14, 2013 4:52 PM
To: Ismail YENIGUL=20
Cc: [email protected]=20
Subject: Re: Just installed qmail+ldap: i am loosing my hairs

Did someone here already faced such problem ?
I am really needing help from the mailing list.

Thanks.


On Mon, Jan 14, 2013 at 1:28 PM, Ismail YENIGUL =
<[email protected]> wrote:

  Hi,

  Do not use homeDirectory and mailMessageStore for the same user. I =
suggest you to  use mailMessageStore.

  homeDirectory: /home/vlobo
  mailMessageStore: vlobo

  Here is my working example:

  dn: [email protected],ou=3Dmydomain.com,o=3Dmail,dc=3Dsurmail
  objectClass: top
  objectClass: person
  objectClass: inetOrgPerson
  objectClass: qmailUser
  uid: [email protected]
  mail: [email protected]
  givenName: ismail
  sn: test
  cn: ismail test
  userPassword:: =
e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag=3D=3D
  mailHost: mail.mydomain.com
  mailQuotaSize: 1000000000
  mailQuotaCount: 1000
  accountStatus: active
  mailMessageStore: /mail/mydomain.com/ismail=20




  On 14.01.2013 17:17, Friedrich Locke wrote:

    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           =
         =20
    sioux@gustav$=20


    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]=20
    Searching ldap for: =
(|([email protected])([email protected]=
d.ufv.br)))
    under dn: ou=3Dpeople,dc=3Dufv,dc=3Dbr
    qmail-ldaplookup: fatal: qldap_filter: unspecified error
    gustav#=20


    And here is what i got from slapd log:

    50f42010 ber_get_next on fd 14 failed errno=3D0 (Undefined error: 0)
    50f42010 connection_read(14): input error=3D-2 id=3D1047, closing.
    50f42010 connection_closing: readying conn=3D1047 sd=3D14 for close
    50f42010 daemon: activity on 1 descriptor
    50f42010 daemon: waked
    50f42010 daemon: select: listen=3D5 active_threads=3D0 tvp=3Dzero
    50f42010 daemon: select: listen=3D6 active_threads=3D0 tvp=3Dzero
    50f42010 daemon: select: listen=3D7 active_threads=3D0 tvp=3Dzero
    50f42010 daemon: select: listen=3D8 active_threads=3D0 tvp=3Dzero
    50f42010 daemon: select: listen=3D9 active_threads=3D0 tvp=3Dzero
    50f42010 connection_close: deferring conn=3D1047 sd=3D14
    50f42010 conn=3D1047 op=3D1 do_unbind
    50f42010 conn=3D1047 op=3D1 UNBIND
    50f42010 connection_resched: attempting closing conn=3D1047 sd=3D14
    50f42010 connection_close: conn=3D1047 sd=3D14
    50f42010 daemon: removing 14
    50f42010 conn=3D1047 fd=3D14 closed

    But when i try by hand:

    sioux@gustav$ ldapsearch -D cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr =
-b ou=3Dpeople,dc=3Dufv,dc=3Dbr -h localhost -W =
\(\|\([email protected]\)\(mailAlternateAddress=3Dvlobo@gust=
av.cpd.ufv.br\)\)
    Enter LDAP Password:=20
    # extended LDIF
    #
    # LDAPv3
    # base <ou=3Dpeople,dc=3Dufv,dc=3Dbr> with scope subtree
    # filter: =
(|([email protected])([email protected]=
d.ufv.br))
    # requesting: ALL
    #

    # vlobo, people, ufv.br
    dn: uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr
    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$=20


    Everything works. What am i doing wrong ?




------=_NextPart_000_010E_01CDF278.697F7350
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD></HEAD>
<BODY dir=3Dltr>
<DIV dir=3Dltr>
<DIV style=3D"FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>It seems</DIV>
<DIV>&nbsp;</DIV><FONT face=3D"Times New Roman">gustav# =
../bin/qmail-ldaplookup -d=20
255 -m </FONT><A href=3D"mailto:[email protected]" =
target=3D_blank><FONT=20
face=3D"Times New Roman">[email protected]</FONT></A><FONT=20
face=3D"Times New Roman"> <BR>Searching ldap for: (|(mail=3D</FONT><A=20
href=3D"mailto:[email protected]" target=3D_blank><FONT=20
face=3D"Times New Roman">[email protected]</FONT></A><FONT=20
face=3D"Times New Roman">)(mailAlternateAddress=3D</FONT><A=20
href=3D"mailto:[email protected]" target=3D_blank><FONT=20
face=3D"Times New Roman">[email protected]</FONT></A><FONT=20
face=3D"Times New Roman">)))<BR>under dn:=20
ou=3Dpeople,dc=3Dufv,dc=3Dbr<BR>qmail-ldaplookup: fatal: qldap_filter: =
<FONT=20
color=3D#ff0000>unspecified error</FONT><BR>gustav# </FONT>
<DIV>&nbsp;</DIV>
<DIV>Try to do this query with this filter in your ldap client </DIV>
<DIV>&nbsp;</DIV>
<DIV>I think there are too many =E2=80=9C)=E2=80=9D</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>&nbsp;</DIV>
<DIV=20
style=3D"FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: =
12pt">Carlos</DIV>
<DIV style=3D"FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: =
12pt">&nbsp;<A=20
href=3D"http://www.netcgg.es">http://www.netcgg.es</A></DIV>
<DIV=20
style=3D"FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: =
12pt">Murcia-Spain</DIV>
<DIV=20
style=3D"FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; =
COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: =
none">
<DIV style=3D"FONT: 10pt tahoma">
<DIV><FONT size=3D3 face=3DCalibri></FONT>&nbsp;</DIV>
<DIV style=3D"BACKGROUND: #f5f5f5">
<DIV style=3D"font-color: black"><B>From:</B> <A =
[email protected]=20
href=3D"mailto:[email protected]">Friedrich Locke</A> </DIV>
<DIV><B>Sent:</B> Monday, January 14, 2013 4:52 PM</DIV>
<DIV><B>To:</B> <A [email protected]=20
href=3D"mailto:[email protected]">Ismail YENIGUL</A> </DIV>
<DIV><B>Cc:</B> <A [email protected]=20
href=3D"mailto:[email protected]">[email protected]</A> =
</DIV>
<DIV><B>Subject:</B> Re: Just installed qmail+ldap: i am loosing my=20
hairs</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV=20
style=3D"FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; =
COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: =
none">Did=20
someone here already faced such problem ?<BR>I am really needing help =
from the=20
mailing list.<BR><BR>Thanks.<BR><BR>
<DIV class=3Dgmail_quote>On Mon, Jan 14, 2013 at 1:28 PM, Ismail YENIGUL =
<SPAN=20
dir=3Dltr>&lt;<A href=3D"mailto:[email protected]"=20
target=3D_blank>[email protected]</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; =
PADDING-LEFT: 1ex"=20
class=3Dgmail_quote>
  <DIV bgcolor=3D"#FFFFFF" text=3D"#000000">Hi,<BR><BR>Do not use =
homeDirectory and=20
  mailMessageStore for the same user. I suggest you to&nbsp; use=20
  mailMessageStore.<BR><BR>homeDirectory: =
/home/vlobo<BR>mailMessageStore:=20
  vlobo<BR><BR>Here is my working example:<BR><BR>dn: <A=20
  =
href=3D"mailto:[email protected],ou=3Dmydomain.com,o=3Dmail,dc=3D=
surmail"=20
  =
target=3D_blank>[email protected],ou=3Dmydomain.com,o=3Dmail,dc=3D=
surmail</A><BR>objectClass:=20
  top<BR>objectClass: person<BR>objectClass: =
inetOrgPerson<BR>objectClass:=20
  qmailUser<BR>uid: <A href=3D"mailto:[email protected]"=20
  target=3D_blank>[email protected]</A><BR>mail: <A=20
  href=3D"mailto:[email protected]"=20
  target=3D_blank>[email protected]</A><BR>givenName: ismail<BR>sn: =
test<BR>cn:=20
  ismail test<BR>userPassword::=20
  =
e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag=3D=3D<BR>m=
ailHost:=20
  <A href=3D"http://mail.mydomain.com"=20
  target=3D_blank>mail.mydomain.com</A><BR>mailQuotaSize:=20
  1000000000<BR>mailQuotaCount: 1000<BR>accountStatus:=20
  active<BR>mailMessageStore: /mail/<A =
href=3D"http://mydomain.com/ismail"=20
  target=3D_blank>mydomain.com/ismail</A>=20
  <DIV>
  <DIV class=3Dh5><BR><BR><BR>
  <DIV>On 14.01.2013 17:17, Friedrich Locke wrote:<BR></DIV>
  <BLOCKQUOTE type=3D"cite">Hi folks,<BR><BR>I have just finnished =
installing my=20
    qmail-ldap system. I am trying to send me a local message, but no =
success so=20
    far.<BR><BR>Here is what i am trying:<BR><BR>sioux@gustav$ echo to: =
vlobo |=20
    =
/var/qmail/bin/qmail-inject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
    <BR>sioux@gustav$ <BR><BR><BR>Here is what i got from qmail-ldap=20
    logs:<BR><BR>@4000000050f4201a17a0e594 new msg=20
    1039956<BR>@4000000050f4201a17a0e97c info msg 1039956: bytes 220 =
from &lt;<A=20
    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A>&gt; qp 4069 uid=20
    1000<BR>@4000000050f4201a17a1761c starting delivery 21: msg 1039956 =
to local=20
    <A href=3D"mailto:[email protected]"=20
    =
target=3D_blank>[email protected]</A><BR>@4000000050f4201a17a1df94 =

    status: local 1/100 remote 0/400<BR>@4000000050f4201a17d130dc =
delivery 21:=20
    deferral:=20
    =
Temporary_failure_in_LDAP_lookup._(#4.4.3)./<BR>@4000000050f4201a17d1f814=
=20
    status: local 0/100 remote 0/400<BR><BR><BR>Here is what i get from=20
    qmail-ldaplookup:<BR><BR>gustav# ../bin/qmail-ldaplookup -d 255 -m =
<A=20
    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A> <BR>Searching ldap for: =
(|(mail=3D<A=20
    href=3D"mailto:[email protected]"=20
    =
target=3D_blank>[email protected]</A>)(mailAlternateAddress=3D<A=20
    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A>)))<BR>under dn:=20
    ou=3Dpeople,dc=3Dufv,dc=3Dbr<BR>qmail-ldaplookup: fatal: =
qldap_filter: unspecified=20
    error<BR>gustav# <BR><BR><BR>And here is what i got from slapd=20
    log:<BR><BR>50f42010 ber_get_next on fd 14 failed errno=3D0 =
(Undefined error:=20
    0)<BR>50f42010 connection_read(14): input error=3D-2 id=3D1047,=20
    closing.<BR>50f42010 connection_closing: readying conn=3D1047 =
sd=3D14 for=20
    close<BR>50f42010 daemon: activity on 1 descriptor<BR>50f42010 =
daemon:=20
    waked<BR>50f42010 daemon: select: listen=3D5 active_threads=3D0=20
    tvp=3Dzero<BR>50f42010 daemon: select: listen=3D6 active_threads=3D0 =

    tvp=3Dzero<BR>50f42010 daemon: select: listen=3D7 active_threads=3D0 =

    tvp=3Dzero<BR>50f42010 daemon: select: listen=3D8 active_threads=3D0 =

    tvp=3Dzero<BR>50f42010 daemon: select: listen=3D9 active_threads=3D0 =

    tvp=3Dzero<BR>50f42010 connection_close: deferring conn=3D1047 =
sd=3D14<BR>50f42010=20
    conn=3D1047 op=3D1 do_unbind<BR>50f42010 conn=3D1047 op=3D1 =
UNBIND<BR>50f42010=20
    connection_resched: attempting closing conn=3D1047 =
sd=3D14<BR>50f42010=20
    connection_close: conn=3D1047 sd=3D14<BR>50f42010 daemon: removing=20
    14<BR>50f42010 conn=3D1047 fd=3D14 closed<BR><BR>But when i try by=20
    hand:<BR><BR>sioux@gustav$ ldapsearch -D =
cn=3Dmail,ou=3Dappsrv,dc=3Dufv,dc=3Dbr -b=20
    ou=3Dpeople,dc=3Dufv,dc=3Dbr -h localhost -W \(\|\(mail=3D<A=20
    href=3D"mailto:[email protected]"=20
    =
target=3D_blank>[email protected]</A>\)\(mailAlternateAddress=3D<A =

    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A>\)\)<BR>Enter LDAP =
Password: <BR>#=20
    extended LDIF<BR>#<BR># LDAPv3<BR># base =
&lt;ou=3Dpeople,dc=3Dufv,dc=3Dbr&gt; with=20
    scope subtree<BR># filter: (|(mail=3D<A =
href=3D"mailto:[email protected]"=20
    =
target=3D_blank>[email protected]</A>)(mailAlternateAddress=3D<A=20
    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A>))<BR># requesting:=20
    ALL<BR>#<BR><BR># vlobo, people, <A href=3D"http://ufv.br"=20
    target=3D_blank>ufv.br</A><BR>dn: =
uid=3Dvlobo,ou=3Dpeople,dc=3Dufv,dc=3Dbr<BR>uid:=20
    vlobo<BR>objectClass: organizationalRole<BR>objectClass:=20
    posixAccount<BR>objectClass: qmailUser<BR>homeDirectory:=20
    /home/vlobo<BR>userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS<BR>mail: <A=20
    href=3D"mailto:[email protected]"=20
    =
target=3D_blank>[email protected]</A><BR>mailAlternateAddress=
: <A=20
    href=3D"mailto:[email protected]"=20
    target=3D_blank>[email protected]</A><BR>mailHost: <A=20
    href=3D"http://gustav.cpd.ufv.br"=20
    target=3D_blank>gustav.cpd.ufv.br</A><BR>mailMessageStore: =
vlobo<BR><BR>#=20
    search result<BR>search: 2<BR>result: 0 Success<BR><BR># =
numResponses:=20
    2<BR># numEntries: 1<BR>sioux@gustav$ <BR><BR><BR>Everything works. =
What am=20
    i doing wrong =
?<BR></BLOCKQUOTE><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV>&nbsp;</DIV></DIV></DIV></DIV></BODY></HTML>

------=_NextPart_000_010E_01CDF278.697F7350--