Slapd with mysql and unixODBC
by Ace
Hi All,
Can anybody tell me which all packages one will need to configure LDAP with
mysql? I have,
unixODBC
unixODBC-devel
Connector/ODBC 3.51
MySQL 5.0 and
LDAP - 2.3.32
Still I am facing error while starting slapd -
./slapd: error while loading shared libraries: libiodbc.so.2: cannot open
shared object file: No such file or directory
--
Cheers,
Rajan
16 years, 6 months
[unixODBC][Driver Manager]Data source name not found, and no default driver
by Ace
Hi,
I am trying to start LDAP 2.3.32 with MySQL as backend. I am using
unixODBC. When I start slapd it reports -
============================================
backsql_open_db_conn(4294967295): SQLConnect() to database "test" failed.
Return code: -1
nativeErrCode=0 SQLengineState=IM002 msg="[unixODBC][Driver Manager]Data
source name not found, and no default driver specified"
backsql_get_db_conn(): could not get connection handle -- returning NULL
============================================
With strace, I can see that its opening odbc.ini but no reference to
odbcinst.ini, why so?
--
I may be miles away... but I am just a mail away.... so keep mailing...!!!
Cheers,
Rajan
16 years, 6 months
Help with Syncrepl
by Steven Bambling
All,
I am in the process of setting up replication between 2 ldap
servers...I am moving from the older slupd to syncrepl. Wh I try to
start the ldap server after adding in the necessary config into
slapd.conf file I get this error.
syncrepl: database already shadowed
Below is the parameters that I am using for syncrepl any help or a
point in the correct direction would be much appreciated.
###################
#Replication Stuff#
###################
#updated=the DN allowed to make changes to the replica (masteer)
updatedn "cn=copycat,dc=srtest,dc=com
#updateref the ldap server to which clients submit update requests
updateref ldap://pi.sunrocket.com
#syncrepl rid=replica ID
syncrepl rid=420
#Address of the provider (master) ldap server
provider=ldap://pi.sunrocket.com:389
#tyep=refreshOnly|refreshAndPersist
type=refreshAndPersist
#interval=dd:hh:mm:ss
interval=01:00:00:00
#retry=<retry interval> <# of retries>
retry=60 10 300 3
#searchbase=<base DN>
searchbase="dc=srtest,dc=com"
#scope=sub|one|base
scope=sub
#filter=<filter string
filter="(objectClass=*)"
#attrs=<attr list>
attrs="*,+"
#schemachecking=on|off
schemachecking=off
Thanks,
STEVE
16 years, 6 months
Building OpenLDAP with VS.NET2003
by Aviator LDap
Hi Friends,
Can anybody help me to build OpenLDAP with VS.NET2003? I would like to build
the OpenLDAP 2.3.33 with VS.NET as my application requires that. I am struck
at this point. Any help will be greatly appreciated.
thanks in advance,
regards,
dinesh.
16 years, 6 months
RE: Logging in OpenLDAP
by Quanah Gibson-Mount
--On Wednesday, May 23, 2007 5:54 PM -0700 knassden <knassden(a)gmail.com>
wrote:
> Thanks all for your help.
>
> Yes...i gave:
>
> Kill -HUP `cat /var/run/syslog.pid`
>
> NO LOGS =(
Please keep replies to the list.
On some platforms, syslog insists on being the creator. You may want to try
stopping syslog, removing the file, and restarting syslog to see if it
creates it.
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
16 years, 6 months
Modify on Transaction not updated
by David Krapez (RM/ERI)
Hi All,
I am testing slapd 2.4.4alpha with "Berkeley DB 4.5.20: (September 20,
2006) with patches" and I have noticed the following behaviour:
When the client starts a transaction the server always returns the TXN
ID equal to NULL, which is is correctly recognised by the server in
order to end the transaction.
The extended modify, performed whithin the transaction, has no effect.
In fact closing the transaction with commit=true the server answer is
"no updates to commit" and the data in bdb are not updated.
Moreover, the modify response contains a particular error err=16672,
that corresponds to hex value 0x4120 and means LDAP_X_TXN_SPECIFY_OKAY,
according to the ldap.h.
Here, follows the log:
conn=0 op=1 TXN START
conn=0 op=1 RESULT oid= err=0 text=
conn=0 op=2 MOD
dn="cn=CRIT-TDP2,cn=CRIT,cn=TDP2,cn=O-CSI-PH2,cn=O-CSI,cn=Camel,KEY2NUM=
90,MSISDN-NUM=100,HRS-SubsContName=subscriber,applicationName=HLR"
conn=0 op=2 MOD attr=MTY
conn=0 op=2 RESULT tag=103 err=16672 text=transaction specified
conn=0 op=3 TXN END
conn=0 op=3 RESULT oid= err=1 text=no updates to commit
Can someone help me to solve this problem?
Thank you in advance,
Best Regards,
/David
16 years, 6 months
Re: Access control entries problem
by Vincent Batoufflet
Gabriel,
Yes I tried but the result remains the same.
Thanks for your response,
Gabriel Stein wrote:
> Vincent,
>
> You tried to put this rules before the others access control rules?
>
> Keep in touch.
>
> Hugs,
>
>
> On 5/22/07, Vincent Batoufflet <vincent(a)buf.fr> wrote:
>>
>> Hi everyone,
>>
>> I try to setup some access rules for some openldap servers but I am
>> experiencing some difficulties with Access Control Entries.
>>
>> I want to allow anonymous access to a specific branch of my ldap tree
>> (autofs mount points):
>>
>> ou=mount,o=organization,dc=domain,dc=com
>>
>> This rule works perfectly if I comment all others rules, but when at
>> least one of them is commented out, it isn't working anymore.
>>
>> Do you have any idea ?
>>
>> Thanks.
>>
>>
>>
>> See above my ldap access rules:
>> # Default access rule
>> defaultaccess search
>>
>> # Access to passwords
>> access to attrs=userPassword
>> by dn="cn=replication,ou=role,dc=domain,dc=com" write
>> by dn="cn=system,ou=role,dc=domain,dc=com" read
>> by dn="cn=ftp-client,ou=role,dc=domain,dc=com" read
>> by self write
>> by * auth
>>
>> # FTP access
>> access to dn.subtree="ou=ftp,o=organization,dc=domain,dc=com"
>> by dn="cn=replication,ou=role,dc=domain,dc=com" write
>> by dn="cn=ftp-manager,ou=role,dc=domain,dc=com" read
>> by dn="cn=ftp-client,ou=role,dc=domain,dc=com" read
>>
>> # AutoFS access
>> acces to dn.subtree="ou=mount,o=organization,dc=domain,dc=com"
>> by dn="cn=replication,ou=role,dc=domain,dc=com" write
>> by anonymous read
>>
>> # Global accesses
>> access to *
>> by dn="cn=replication,ou=role,dc=domain,dc=com" write
>> by dn="cn=system,ou=role,dc=domain,dc=com" read
>> by dn="cn=extranet,ou=role,dc=domain,dc=com" read
>>
>> # Access to the base (prevent SASL problems)
>> access to dn.base=""
>> by * read
>>
>> --
>> Vincent Batoufflet
>>
>> Buf Compagnie
>> 3 rue Roquepine 75008 Paris, FRANCE
>> tel +33 1 42 68 18 28 - fax +33 1 42 68 18 29
>>
>
>
>
--
Vincent Batoufflet
Buf Compagnie
3 rue Roquepine 75008 Paris, FRANCE
tel +33 1 42 68 18 28 - fax +33 1 42 68 18 29
16 years, 6 months
LDAP and MySQL - No database selected
by Ace
Hi Friends,
I am trying to configure LDAP with MySQL 5.0 as backend. I am using
Connector/ODBC 3.51 and LDAP 2.3.32 built from sources.
While starting slapd I get following error -
===============================================
backsql_load_schema_map(): oc_query "SELECT
id,name,keytbl,keycol,create_proc,delete_proc,expect_return FROM
ldap_oc_mappings"
backsql_load_schema_map(): error executing oc_query:
Return code: -1
nativeErrCode=1046 SQLengineState=3D000 msg="[MySQL][ODBC 3.51 Driver][
mysqld-5.0.27-standard]No database selected"
==>backsql_free_db_conn()
===============================================
My odbc.ini file has all the details and I can see in slapd log that its
getting dbname before connective to MySQL server. slapd.conf has dbname =
test.
Thanks in advance!
--
Cheers,
Rajan
16 years, 6 months
RE: Logging in OpenLDAP
by knassden
Hi,
I'm having problems getting logs with slapd. In my slapd.conf, I have
"loglevel 256". In my syslog.conf, I have "local4.* /var/log/ldap.log". I
configured openldadp with "--enable-syslog --enable-debug". I start
openldap with "/usr/local/libexec/slapd -u _openldap -g _openldap -f
/etc/openldap/slapd.conf". I touched /var/log/ldap.log. I get no logs
though. This is OpenLDAP 2.3.35 on OpenBSD 4.1.
Anyone know what I'm missing here???
Thanks,
Mike
16 years, 6 months
passwd backend operational?
by Jorge Amador Arenas Quezada
Hi:
> I'm trying to use openldap service to authenticate users of my openfire
> messenger with my already created users in /etc/passwd
>
> but i have problems and i want help in two things
>
> 1.- in some information collected in internet found references about the
> backend passwd support claiming about not use this module because is
> not fully
> implemented (the read only condition is not a problem because i only
> want to
> authenticate my users in passwd) ... my first question is ... is
> operational
> this module ?
>
> 2.- if it is operational i have a several errors when i try to
> authenticate
> users with the message:
>
> May 20 23:03:01 server slapd[6781]: conn=77 fd=8 ACCEPT from
> IP=127.0.0.1:42219 (IP=0.0.0.0:389)
> May 20 23:03:01 server slapd[6781]: conn=77 op=0 BIND
> dn="cn=root,dc=lachoza,dc=com,dc=mx" method=128
> May 20 23:03:01 server slapd[6781]: conn=77 op=0 RESULT tag=97 err=53
> text=operation not supported within naming context
> May 20 23:03:01 server slapd[6781]: conn=77 op=1 UNBIND
> May 20 23:03:01 server slapd[6781]: conn=77 fd=8 closed
>
>
> my sldap.conf
>
> include /etc/openldap/schema/core.schema
> include /etc/openldap/schema/cosine.schema
> include /etc/openldap/schema/inetorgperson.schema
> include /etc/openldap/schema/nis.schema
> allow bind_v2
> pidfile /var/run/slapd.pid
> argsfile /var/run/slapd.args
> database passwd
> readonly yes
> suffix "dc=lachoza,dc=com,dc=mx"
> rootdn "cn=root,dc=lachoza,dc=com,dc=mx"
> rootpw $$$$$$$$
> directory /var/lib/ldap
> index objectClass eq,pres
> index ou,cn,mail,surname,givenname eq,pres,sub
> index uidNumber,gidNumber,loginShell eq,pres
> index uid,memberUid eq,pres,sub
> index nisMapName,nisMapEntry eq,pres,sub
>
16 years, 6 months