How to authenticate users with LDAP or Active Directory

It is often easier to use the existing LDAP or Active Directory to authenticate users in Xataface than to create a new password for every user in the table users.

In the conf.ini

In the conf.ini file, in the [auth] part, you need to add your LDAP or AD configuration data :

[_auth]
auth_type=ldap
users_table = xata_users
username_column = id
    ldap_host = "xxx.xxx.xxx.xxx"
    ldap_port = "389"
    ldap_base = "OU=blabla,DC=blablabla"

Here in the table users, you need the login but the password can be just PASS, because the password will be fetched into the LDAP base. You need to add the auth module in the conf/modules directory.

UPDATE (June 2015): There is another LDAP module available that includes many additional features. Check it out here.

See Also

  • authentication - Overview of Authenthentication features in Xataface

var disqus_identifier = ‘xataface.com/wiki/LDAP_or_Active_Directory’; (function() { var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true; dsq.src = ‘http://xataface.disqus.com/embed.js’; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq); })(); blog comments powered by Disqus

//<![CDATA[ (function() { var links = document.getElementsByTagName(‘a’); var query = ‘?’; for(var i = 0; i < links.length; i++) { if(links[i].href.indexOf(‘#disqus_thread’) >= 0) { query += ‘url’ + i + ‘=’ + encodeURIComponent(links[i].href) + ‘&’; } } document.write(‘