[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP functions in PHP



This is the output using php's ldap_add:
conn=0 fd=8 ACCEPT from IP=my_ip:32770 (IP=0.0.0.0:636)
conn=0 op=0 BIND dn="cn=admin,o=my_org" method=128
conn=0 op=0 BIND dn="cn=admin,o=my_org" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 UNBIND
conn=0 fd=8 closed

slapcat shows entry is not added.

This is the output using ldapadd and ldif:
conn=0 fd=7 ACCEPT from IP=my_ip:32771 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="cn=admin,o=my_org" method=128
conn=0 op=0 BIND dn="cn=admin,o=my_org" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 ADD dn="uid=some_uid,cn=users,ou=xxxxx,o=my_org"
conn=0 op=1 RESULT tag=105 err=0 text=
conn=0 op=2 UNBIND
conn=0 fd=7 closed



> add this option : -d 256
>
> the command will not bring the shell back, and you will see the detail
> of the operations made on the server
> tune the value for more detail (see slapd.conf (5))
>
> François
>
> Chakravarthy Cuddapah a écrit :
>
>>No log file is created. I started slapd with ./slapd -h "ldap:///
>> ldaps://"
>>
>>
>>
>>
>>>Chakravarthy Cuddapah a écrit :
>>>
>>>
>>>
>>>>I am using RedHat Enterprise Linux 3 ES, Apache 2.0.48, PHP 4,
>>>>OpenLDAP 2.25. I can create entries like cn=xxx, ou=xxxx,o=xxxxx using
>>>>PHP functions. But when I try to add entries like uid=xxx, cn=xxx,
>>>>ou=xxxx,o=xxxx PHP says success. But the entry is not added to the
>>>>database. I can add the similar entries using ldapadd and ldif files.
>>>>Anyone has this problem ? Appreciate any help.
>>>>
>>>>
>>>Hello,
>>>
>>>what does the slapd's logfile say ?
>>>
>>>François
>>>
>>>
>>>
>>
>>
>>
>