Mercurial > prosody-modules
diff mod_lib_ldap/dev/prosody-posix-ldap.cfg.lua @ 927:a9dfa7232d88
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 12:10:25 +0000 |
parents | 7aaf5d8750a3 |
children | d47972f783fb |
line wrap: on
line diff
--- a/mod_lib_ldap/dev/prosody-posix-ldap.cfg.lua Thu Nov 22 18:59:10 2012 +0000 +++ b/mod_lib_ldap/dev/prosody-posix-ldap.cfg.lua Tue Mar 12 12:10:25 2013 +0000 @@ -1,6 +1,6 @@ -- Use Include 'prosody-posix-ldap.cfg.lua' from prosody.cfg.lua to include this file -authentication = 'ldap' -- Indicate that we want to use LDAP for authentication -storage = 'ldap' -- Indicate that we want to use LDAP for roster/vcard storage +authentication = 'ldap2' -- Indicate that we want to use LDAP for authentication +storage = 'ldap' -- Indicate that we want to use LDAP for roster/vcard storage ldap = { hostname = 'localhost', -- LDAP server location @@ -8,10 +8,10 @@ bind_password = 'prosody', -- Bind password (optional if anonymous bind is supported) user = { - basedn = 'ou=Users,dc=example,dc=com', -- The base DN where user records can be found - filter = 'objectClass=posixAccount', -- Filter expression to find user records under basedn - usernamefield = 'uid', -- The field that contains the user's ID (this will be the username portion of the JID) - namefield = 'cn', -- The field that contains the user's full name (this will be the alias found in the roster) + basedn = 'ou=Users,dc=example,dc=com', -- The base DN where user records can be found + filter = '(&(objectClass=posixAccount)(!(uid=seven)))', -- Filter expression to find user records under basedn + usernamefield = 'uid', -- The field that contains the user's ID (this will be the username portion of the JID) + namefield = 'cn', -- The field that contains the user's full name (this will be the alias found in the roster) }, groups = {