[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
SASL Bind vs. PHP Bind
Hi again,
I'm using Postfix+SASL+OpenLDAP to do SMTPd autentication for users,
and it's working very well.
But, I'm creating a small system with PHP that must authenticate on
LDAP too (using ldap_bind). But it's not working and I don't have idea
why, since my log messages doesn't show me nothing important.
##### This is a syslog output from Postfix+SASL+OpenLDAP:
Feb 20 18:57:20 corpmail slapd[21043]: conn=7476 op=4 SRCH
base="o=corpmail,dc=trama,dc=com,dc=br" scope=2
filter="(mail=hgfischer@trama.com)"
Feb 20 18:57:20 corpmail slapd[21043]: conn=7476 op=4 SEARCH RESULT tag=101
err=0 nentries=1 text=
Feb 20 18:57:20 corpmail slapd[21028]: conn=7476 op=5 AUTHZ anonymous
mech=implicit ssf=0
Feb 20 18:57:20 corpmail slapd[21028]: conn=7476 op=5 BIND
dn="mail=hgfischer@trama.com,jvd=trama.com,o=corpmail,dc=trama,dc=com,dc=br"
method=128
Feb 20 18:57:20 corpmail slapd[21028]: conn=7476 op=5 AUTHZ
dn="mail=hgfischer@trama.com,jvd=trama.com,o=corpmail,dc=trama,dc=com,dc=br"
mech=simple ssf=0
Feb 20 18:57:20 corpmail slapd[21028]: conn=7476 op=5 RESULT tag=97 err=0
text=
Feb 20 18:57:20 corpmail slapd[21042]: conn=7476 op=6 AUTHZ anonymous
mech=implicit ssf=0
Feb 20 18:57:20 corpmail slapd[21042]: conn=7476 op=6 BIND
dn="cn=Manager,o=corpmail,dc=trama,dc=com,dc=br" method=128
Feb 20 18:57:20 corpmail slapd[21042]: conn=7476 op=6 AUTHZ
dn="cn=Manager,o=corpmail,dc=trama,dc=com,dc=br" mech=simple ssf=0
Feb 20 18:57:20 corpmail slapd[21042]: conn=7476 op=6 RESULT tag=97 err=0
text=
##### This is a syslog output from PHP+OpenLDAP:
Feb 20 18:59:11 corpmail slapd[20890]: conn=7579 fd=19 ACCEPT from
IP=127.0.0.1:47311 (IP=0.0.0.0:389)
Feb 20 18:59:11 corpmail slapd[21332]: conn=7579 op=0 BIND
dn="mail=hfischer@trama.com,o=corpmail,dc=trama,dc=com,dc=br" method=128
Feb 20 18:59:11 corpmail slapd[21332]: conn=7579 op=0 RESULT tag=97 err=49
text=
Feb 20 18:59:11 corpmail slapd[21453]: conn=7579 op=1 UNBIND
Feb 20 18:59:11 corpmail slapd[21453]: conn=7579 fd=19 closed
I know that there is a lot of difference on them, but it not seems logic to
me. Can anyone explain me what I need to auth someone via lda_bind??
Thanks,
Herbert