Skip to content
Snippets Groups Projects
Commit f59089b5 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

now PostgreSQL seems to work...

parent 930f4156
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values (6,'documentTitl
-- oc_name the name of the objectClass; it MUST match the name of an objectClass that is loaded in slapd's schema
insert into ldap_entry_objclasses (entry_id,oc_name) values (4,'referral');
insert into ldap_entry_objclasses (entry_id,oc_name) values (2,'posixAccount');
-- referrals mapping: entries that should be treated as referrals are stored here
-- entry_id the "ldap_entries.id" of the entry that should be treated as a referral
-- url the URI of the referral
......
......@@ -51,11 +51,11 @@ dbname example
dbuser manager
dbpasswd secret
#insentry_query "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)"
#
# rdbms specific directives
#
# PostgreSQL
#postgres#insentry_query "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)"
#postgres#upper_func "upper"
#postgres#strcast_func "text"
#postgres#concat_pattern "?||?"
......
......@@ -223,7 +223,7 @@ case ${RDBMS} in
# list here the RDBMSes whose mapping allows writes
postgres)
MANAGERDN="cn=Manager,${BASEDN}"
$LDAPMODIFY -v -D "$MANAGERDN" -w $PASSWD \
$LDAPMODIFY -v -c -D "$MANAGERDN" -w $PASSWD \
-h $LOCALHOST -p $PORT1 > \
$TESTOUT 2>&1 << EOMODS
version: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment