Hi Inaki
thanks for your reply. i think it isnt because of long ldap basedn. but because of context search. We have try with ldap.exe and also with ldapsearch. both working fine for searching student.
here is our ldap settings
Host URL : 192.168.123.12
Version : 3
LDAP Encoding : utf-8
Page Size : 250
Hide Pass : NO
Distinguished Name : cn=Sysadmin,o=DSA,dc=domain,dc=edu,dc=my
Password : somepasswordhere
Usertype : PosixAccount (rfc2307)
Contexts : ou=people,dc=domain,dc=edu,dc=my;vd=student.domain.edu.my,o=hosting,dc=domain,dc=edu,dc=my;vd=pps.domain.my,o=hosting,dc=domain,dc=edu,dc=my (we also try use dc=domain,dc=edu,dc=my)
Search Subcontets : Yes
Dreference Aliases : No
User Attribute : Uid (we also try use blank)
Member attribute : blank
Member attribute uses dn : blank
Object Class : blank
Others is as is
We also try use to ldapsearch function and the log as below .
elearning5# ldapsearch -x -b 'dc=domain,dc=edu,dc=my' -h 192.168.123.12 'uid=studentid'
- extended LDIF
# - LDAPv3
- base <dc=domain,dc=edu,dc=domain> with scope subtree
- filter: uid=studentid
- requesting: ALL
#
- studentid@mydomain.my, student.domain.my, hosting, domain.my
dn: mail=studentid@student.domain.my,vd=student.domain.my,o=hosting,dc=domain,dc=
edu,dc=my
cn: John Doe
mail: studentid@mydomain.my
uid: studentid
objectClass: top
objectClass: inetOrgPerson
objectClass: VirtualMailAccount
objectClass: Vacation
objectClass: amavisAccount
objectClass: VirtualForward
objectClass: domainObject
sn: johndoe
- search result
search: 2
result: 0 Success
- numResponses: 2
- numEntries: 1
We don't have anyproblem to login using staff id which i believe in a top layer. What we know from our ldap guy, our student ldap use virtual domain for our student (vd=student.domain.my, o=hosting, dc=domain, dc=my)
For your information, we also use the same configuration for our moodle 1.9 and there is no problem with it. Only after migrate to moodle 2.4 we do have a problem and i setup a test environment which is looks like it also have problem with moodle 2.3
We also try to do ldap sync script in moodle 2.3 and do setup with only student context and the login for student still not working and the script output is :
Connecting to LDAP server...
Creating temporary table tmp_extuser
Did not get any users from LDAP -- error? -- exiting
Thanks a lot
syed