Hi , Can anyone just explain this error I got , to me ?? I’m totally stuck on this SQL. I
got everything working in ldbm but back-sql is still a mystery. >[calvin@clive /tmp]# /usr/sbin/slapd -d 389 -f
/usr/local/etc/sqlldap/slapd.conf >@(#) $OpenLDAP: slapd 2.0.11-Release (Fri Jun 8 > calvin@calvin.sun.ac.za:/tmp/openldap-2.0.11/servers/slapd >daemon_init: <null> >daemon_init: listen on ldap:/// >daemon_init: 1 listeners to
open... >ldap_url_parse_ext(ldap:///) >daemon: socket() failed errno=97 (Address family not
supported by protocol) >daemon: initialized ldap:/// >daemon_init: 1 listeners opened >slapd init: initiated server. >slap_sasl_init: initialized! >Unrecognized database type (sql) >database sql initialization failed. >slapd shutdown: freeing system resources. >slapd stopped. >connections_destroy: nothing to destroy. Does this mean that 1) My OpenLDAP configure/install didn’t
work correctly ? 2) My ODBC Setup
is not working , and Slapd couldn’t find the odbc datasources ? is there somewhere a
document explaining step-by-step , how to get sql-backend going in LDAP ? here is my
slapd.conf file for my database ># $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6
2001/04/20 ># ># See slapd.conf(5) for details on configuration
options. ># This file should NOT be world
readable. ># >include /usr/local/etc/openldap/schema/core.schema >include /usr/local/etc/openldap/schema/cosine.schema >include /usr/local/etc/openldap/schema/inetorgperson.schema > ># Define global ACLs to disable default read access. > ># Do not enable referrals until
AFTER you have a working directory ># service AND an understanding of referrals. >#referral ldap://root.openldap.org > >pidfile /usr/local/var/slapd.pid >argsfile /usr/local/var/slapd.args > ># Load dynamic backend modules: ># modulepath /usr/local/libexec/openldap ># moduleload back_ldap.la ># moduleload back_ldbm.la ># moduleload back_passwd.la ># moduleload back_shell.la > >####################################################################### ># sql database definitions >####################################################################### > >database sql >suffix
"o=sql,c=RU" >rootdn
"cn=root,o=sql,c=RU" >rootpw
secret >dbname
ldap_postgres >dbuser
root >dbpasswd calvin12 >subtree_cond "ldap_entries.dn LIKE
'%'||?" >insentry_query "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval) VALUES(?,?,?,?)" Many regards Calvin la Cock |