Here is the configuration from devise_ldap_authenticatable document:
Edit config/ldap.yml and set our access details:
# [...]
development:
host: ldap.phys.ethz.ch
port: 389
attribute: uid
base: o=ethz,c=ch
# [...]
Generate the devise views:
.....................
And here is the information I can get, it is in Brats(I don't konw what it is) tool setting, it is about our LDAP server specific information:
"ldap_root_dn": "changedItAbcXCwgRHVjLE9VPUVuZ2luZWVyaW5nLE9VPUNBIFNhbnRhIENsYXJhIERELE9VPVVTIFVzZXJzLERDPWNvcnAsREM9ZW1jLERDPWNvbQ==",
"ldap_root_pwd": "rootPwd",
"ldap_server": "appauth.corp.company.com",
"ldap_port": "389",
"ldap_base_dn": "DC=corp,DC=company,DC=com",
I can find the "host", "port" is one-one corresponding relationship in devise_ldap_authenticatable and Brats. In my understanding, "DC" should be put to "base:" in rails (devise_ldap_authenticatable).
But where should i put the "ldap_root_dn", "ldap_root_pwd"? What is the corresponding part in rails. I guess "ldap_root_dn" should be put to "base:" as "DN=", or "DC="? I am not sure.
Could anybody can help me about this? Thanks.
