Debian Codegraph @

table-ldap.conf.example

raw
1 # basic ldap config: url username password basedn
2 url: ldap://ldap.example.com
3 username: cn=smtpd,cn=sysaccounts,cn=etc,dc=example,dc=com
4 password: totalsecure
5 basedn: cn=users,cn=accounts,dc=example,dc=com
6
7 # filter/atributes for alias / virtual table usage
8 # key will be the user / mailaddr
9 # attributes is the destintion. in this example a user, but can also be an other mailaddress
10 alias_filter: (&(objectclass=person)(mail=%s))
11 alias_attributes: uid
12
13 # key is the username (supplide by the client)
14 # attributes are the username and the hashed password
15 # problem with this is, it needs to be able to read the hashed password
16 credentials_filter: (&(objectclass=posixaccount)(uid=%s))
17 credentials_attributes: uid, authPassword
18
19 # domain table (list)
20 # used in match for domain <ldap>
21 # atribute not realy intresting but need to be set
22 domain_filter: (&(objectclass=dnsdomain)(cn=%s))
23 domain_attributes: cn
24
25 # userinfo
26 # for extra userinfo
27 # search for a username
28 # attributes uid gid homedir
29 userinfo_filter: (&(objectclass=posixaccount)(uid=%s))
30 userinfo_attributes: uidNumber, gidNumber, homedir
31
32 # mailaddr info
33 # list of mailaddresses for a match statement
34 # attribute will be ignored, but needed for ldap
35 mailaddr_filter: (&(objectclass=posixaccount)(mail=%s))
36 mailaddr_attributes: mail
37
38 # mailaddrmap
39 # used for listen on ... sender <senders>
40 # maps the auth user to allowed mail addresses
41 mailaddrmap_filter: (&(objectclass=posixaccount)(uid=%s))
42 mailaddrmap_attributes: mail
43
44 # netaddr info
45 # used for "match from src <ldap>
46 # propaly not that usefull because the key is the ip address and cidr mapping is not done
47 netaddr_filter: (&(objectclass=host)(ipaddr=%s))
48 netaddr_attributes: ipaddr