[TYPO3-english] srijan_ldap_auth authentication not working
J. Bakshi
joydeep at infoservices.in
Mon Jun 15 14:06:47 CEST 2009
Hello list,
Have any one successfully configured srijan_ldap_auth ext ? I have
installed it to authenticate fe_user authentication and followed the
manual but no success. My ldap server is running well. for an example
let us search uid=rbilly from my ldap server based on classobject
inetOrgPerson
`````````````````````````````````````````````````````
ldapsearch -h 127.0.0.1 -b "ou=people,dc=example,dc=com" -x
"(&(objectclass=inetOrgPerson)(uid=rbilly))" -D
"cn=Manager,dc=example,dc=com" -W
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=people,dc=example,dc=com> with scope subtree
# filter: (&(objectclass=inetOrgPerson)(uid=rbilly))
# requesting: ALL
#
# test2, people, example.com
dn: cn=test2,ou=people,dc=example,dc=com
objectClass: inetOrgPerson
cn: test2
sn: Billy
uid: rbilly
carLicense: HISCAR 123
homePhone: 555-111-2222
mail: billy at example.com
description: sales guy
ou: Sales
userPassword:: MTIzNDU2
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
````````````````````````````````````
It is doing its job perfectly..
Now here is the ldap.txt file which I have modified to suit my ldap server
`````````````````````````````
##################################################
# This file contains the Typoscript settings for
# connecting to LDAP server. Please edit it to
# provide the details to connect to your LDAP
# server.
##################################################
LDAP_SERVER {
host = 127.0.0.1
port = 389
protocol_version = 3
bind_dn = cn=Manager,dc=example,dc=com
password = < replace it with ldap admin password >
search {
base = ou=people,dc=example,dc=com
filter = (&(objectClass=inetOrgPerson))
}
}
####################################################
# Please map the LDAP fields carefully as they are
# case-sensitive. `gidNumber` & `gidnumber` will be
# different. You may not get the desired results in
# case you use in-correct case in mapping.
#####################################################
MAPPINGS {
username = uid
password = userPassword
## usergroup = gidNumber
## group_idt = dn
## usergroup.title = cn
}
##########################################################
#Id of page/sys-folder where user/group records to place
##########################################################
FE_USERS.pid = 3
FE_GROUPS.pid = 3
``````````````````````````````````````````````````
But the authentication is not working. Though from the server log it
is seen that the authentication process communicationg with the ldap server.
````````````````````````````````
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 fd=13 ACCEPT from
IP=127.0.0.1:59279 (IP=0.0.0.0:389)
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=0 BIND
dn="cn=Manager,dc=example,dc=com" method=128
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=0 BIND
dn="cn=Manager,dc=example,dc=com" mech=SIMPLE ssf=0
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=0 RESULT tag=97
err=0 text=
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=1 SRCH
base="ou=people,dc=example,dc=com" scope=2 deref=0
filter="(&(objectClass=inetOrgPerson)(uid=rjsimth))"
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=1 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 op=2 UNBIND
Jun 15 22:59:53 linux-a0jn slapd[3099]: conn=214 fd=13 closed
```````````````````````````````````````
NOTE HERE the " nentries=0" . If I manually run the search filter as
above then this becomes as "nentries=1"
any idea ?
Thanks
More information about the TYPO3-english
mailing list