DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th September 2009
vol_o3 vol_o3 is offline
New User
 
Join Date: Sep 2009
Posts: 1
Default back-sql - SQLConnect() failed

Hi all,

I'm trying to use ldap + mysql , but i've got some errors ...

backsql_open_db_handle(): SQLConnect() to database "openldap" failed

backsql_db_open(): connection failed, exiting
backend_startup_one: bi_db_open failed! (1)


My slapd.conf

database sql
suffix "dc=visky,dc=vn"
rootdn "cn=admin,dc=visky,dc=vn"
rootpw 123456
dbname openldap
dbuser root
dbpasswd 123
subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_query "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval)
VALUES (?,?,?,?)"

/etc/odbc.ini

MySQL = MySQL connection

[MySQL]
DSN = ldap
Description = MySQL connection
Driver = MySQL
Database = ldap
Server = localhost
Port = 3306
Socket =
User = root
Password = 123

/etc/odbcinst.ini

Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
CPTimeout =
CPReuse =
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Going back to FBSD from Linux Mantazz FreeBSD Installation and Upgrading 5 24th April 2009 12:33 PM
Back on FreeBSD Once More ninjatux FreeBSD General 3 19th March 2009 11:44 PM
back to BSD for a breath of fresh air need help with Nvidia please whispersGhost FreeBSD General 6 22nd January 2009 09:36 PM
Firefox PROTIP: getting back to a normal Save As Dialogue. caesius Guides 5 15th October 2008 06:24 AM
cannot make back up file seadog109 Other BSD and UNIX/UNIX-like 5 4th June 2008 10:36 PM


All times are GMT. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick