Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 5874D475876 for ; Wed, 3 Jul 2002 14:44:22 -0400 (EDT) Mailbox-Line: From markw@mohawksoft.com Wed Jul 3 14:44:22 2002 Received: from snoopy.mohawksoft.com (h0050bf7a618d.ne.client2.attbi.com [24.147.138.78]) by postgresql.org (Postfix) with ESMTP id 494CD4761AA for ; Wed, 3 Jul 2002 13:36:05 -0400 (EDT) Received: from mohawksoft.com (localhost [127.0.0.1]) by snoopy.mohawksoft.com (8.11.6/8.11.6) with ESMTP id g63HTQv05991; Wed, 3 Jul 2002 13:29:29 -0400 Message-ID: <3D233476.91DFEA3E@mohawksoft.com> Date: Wed, 03 Jul 2002 13:29:26 -0400 From: mlw X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-5smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Annissa Melhenas Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC driver References: <20020703172800.A11748@rdc5.intra.cogenit.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=1.4 required=5.0 tests=FROM_NAME_NO_SPACES,DOUBLE_CAPSWORD,SUPERLONG_LINE version=2.30 X-Spam-Level: * X-Archive-Number: 200207/7 X-Sequence-Number: 1838 First, don't use template1, create a new database for what you want to do. Try "createdb ldap" Second, make sure you "createuser" for the username under which you will be connecting to the database, use your name for now. in odbcinst.ini (likely in /etc or /usr/local/etc depending on how you installed it.), describe the PostgreSQL driver, as: [PostgreSQL] Description = PostgreSQL ODBC Driver by unixODBC Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so (substitute your path for what I used.) Now, in your .odbc.ini file in your home directory, [ldap] Description = PostgreSQL Driver = PostgreSQL Trace = No TraceFile = Database = ldap Servername = localhost UserName = annissa Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = You should then be able to connect, with the assumptions: Your user name is "annissa." The PG server is localhost. Annissa Melhenas wrote: > > Hi all, > I installed openldap, postgres, and I wanted to link the two of them. So I re-confiured both using the with-odbc option. then, I installed the ODBC package, firs the source, then as some things went wrong, i thought I had done something wrong with installation, so I re-installed everything, with RPMs. > filled my odbc.ini file : > > ; > ; odbc.ini > ; > [ODBC Data Sources] > test=template1 > > [test] > Driver=/usr/lib/libpsqlodbc.so > Description=Sample PostgreSQL DSN > DSN=template1 > Servername=192.168.4.20 > username=postgresql > password=secret > Database=PostgreSQL > Readonly=No > ;Servertype=postgres > Port=5432 > FetchBufferSize=99 > ;ServerOptions= > ;ConnectOptions= > ;Options= > ;Readonly=no > ;Trace=1 > > [Default] > Driver=/usr/lib/libpsqlodbc.so > > [ODBC] > InstallDir= /usr/lib/libiodbc.so > > and I checked the libpsqlodbc.so and libiodbc.so existed, and were in the good path. > When I first launched an ldconfig after my installation, I had a error message > saying there one of the libpsqlodbc lib, libpsqlodbc.so.0 (I had three : > libpsqlodbc.so, libpsqlodbc.so.0, and libpsqlodbc.so.0.27), was not a symbolic > link. so, I turned libpsqlodbc.so and ibpsqlodbc.so.0 into symbolic links to now point to libpsqlodbc.so.0.27. > > After all that, I launched an odbctest, but, when I do that, I have no DSN available in the array, though I added one in the odbc.ini.. > > Is there something I forgot to do? > > Thanks for your help, > > -- > Annissa, > The computer slayer > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster