mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
now PostgreSQL seems to work...
This commit is contained in:
parent
930f415673
commit
f59089b5b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user