[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
My C program searchs for ldap.conf file.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have programmed and compiled a C program, using the OpenLDAP library, which
makes a connection to an OpenLDAP server.
Using the comand truss (a system calls tracer for Sun Solaris), I have seen
that my program searchs the ldap.conf file in several different locations.
This is the part of the output from the truss comand in wich my program makes
the search:
[...]
open("/home/myuser/openldap/etc/openldap/ldap.conf", O_RDONLY) Err#2 ENOENT
open("/root/ldaprc", O_RDONLY) Err#2 ENOENT
open("/root/.ldaprc", O_RDONLY) Err#2 ENOENT
open("ldaprc", O_RDONLY) Err#2 ENOENT
[...]
Is there any compilation option or function for eliminate this search in the
compiled program ?
Greetings.
- ---
Carles Xavier Munyoz Baldó / cmunyoz@es.wanadoo.com
- ---
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBOwD87RAGkoZz8//aEQJIEgCbBnVWzG/YMpz1mAsOMuMDTK2WrCIAnRpR
C8/xapEo9PF6AZVfNrjjVHyU
=XJdZ
-----END PGP SIGNATURE-----