Module: sip-router
Branch: janakj/ldap
Commit: 8c44d53bd22595f85a6192e265403e00b5f7506d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8c44d53…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon May 19 15:18:02 2008 +0000
- todo list updated
---
modules/db_ldap/todo.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/db_ldap/todo.txt b/modules/db_ldap/todo.txt
index 3778b74..8a82bde 100644
--- a/modules/db_ldap/todo.txt
+++ b/modules/db_ldap/todo.txt
@@ -92,7 +92,7 @@ X Support for Syntax Specification in the Config File
The module should issue an warning when the incremented/decremented field
value overflows/underflows.
-* Support for Older LDAP Libraries
+X Support for Older LDAP Libraries
Older versions of the openldap client library might not contain
LDAP_SCOPE_CHILDREN. We need to handle this case in a graceful manner and
Module: sip-router
Branch: janakj/ldap
Commit: a55a847eb2e376c36347e9e35a36205abf560b9f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a55a847…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Fri May 23 15:06:45 2008 +0000
- fixed wrong comment
---
modules/db_ldap/ld_con.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/db_ldap/ld_con.c b/modules/db_ldap/ld_con.c
index 6691768..fb6a763 100644
--- a/modules/db_ldap/ld_con.c
+++ b/modules/db_ldap/ld_con.c
@@ -106,7 +106,7 @@ int ld_con(db_con_t* con)
DBG("ldap: Preparing new connection to %s\n", luri->uri);
- /* Put the newly created postgres connection into the pool */
+ /* Put the newly created LDAP connection into the pool */
db_pool_put((struct db_pool_entry*)lcon);
DBG("ldap: Connection stored in connection pool\n");
Module: sip-router
Branch: janakj/ldap
Commit: 22de964d0177a19af48cdf53b2813cde0c8e1e09
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=22de964…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon May 12 12:21:03 2008 +0000
- latest version of the configuration file for ldap module
---
modules/db_ldap/ldap.cfg | 38 ++++++++++++++++++++++++++++++--------
1 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/modules/db_ldap/ldap.cfg b/modules/db_ldap/ldap.cfg
index 596d37f..6e69119 100644
--- a/modules/db_ldap/ldap.cfg
+++ b/modules/db_ldap/ldap.cfg
@@ -1,9 +1,31 @@
+#
+# This is a configuration file for the LDAP module in SER. The configuration
+# file maps database table names used in SER to LDAP directory sub-trees to
+# be searched. In addition to that the configuration file also allows to
+# configure the LDAP search filter and maps database field names to
+# LDAP attribute names and vice versa.
+#
+
+# Table credentials contains SIP digest authentication credentials.
[credentials]
-base="ou=Digest Credentials,dc=iptel,dc=org"
-scope=sub
-filter="(objectClass=digestAuthCredentials)"
-field=password:digestPassword
-field=realm:digestRealm
-field=auth_username:digestUsername
-field=uid:serUID
-field=flags:serFlags
+
+# In our LDAP directory we store SIP digest credentials under
+# "Digest Credentials" organization unit so this is where searches for digest
+# credentials should start.
+base = "ou=Digest Credentials,dc=iptel,dc=org"
+
+# We search all the children but not the ou object itself.
+scope = children
+
+# For digest credentials we are only interested in objects with objectClass
+# 'digestAuthCredentials', objects of all other types are ignored.
+filter = "(objectClass=digestAuthCredentials)"
+
+# Mapping of field names to LDAP attribute names and vice versa. Names are
+# delimited using ':', the first name is database field name as used in SER
+# modules, the second name (after :) is corresponding LDAP attribute name.
+field_map = password : digestPassword
+field_map = realm : digestRealm
+field_map = auth_username : digestUsername
+field_map = uid : serUID
+field_map = flags : serFlags