On 03/27/2018 12:05 PM, Per Qvindesland via FreeIPA-users wrote:
Hi
We’re trying to add in a user over from another server with php ldap, I can see in the
access log that it’s connecting but it looks like it’s trying to add the user that i am
binding with:
[27/Mar/2018:08:18:24.743154839 +0000] conn=864 op=1 ADD
dn="uid=perq,cn=users,cn=accounts,dc=company,dc=ac,dc=uk"
[27/Mar/2018:08:18:24.743525138 +0000] conn=864 op=1 RESULT err=68 tag=105 nentries=0
etime=0.0000456502
[27/Mar/2018:08:18:24.744248637 +0000] conn=864 op=2 UNBIND
[27/Mar/2018:08:18:24.744265131 +0000] conn=864 op=2 fd=88 closed - U1
[27/Mar/2018:08:18:25.424810686 +0000] conn=865 fd=88 slot=88 connection from
34.243.167.105 to 172.31.37.129
[27/Mar/2018:08:18:25.425101552 +0000] conn=865 op=0 BIND dn="" method=128
version=3
[27/Mar/2018:08:18:25.425208322 +0000] conn=865 op=0 RESULT err=0 tag=97 nentries=0
etime=0.0000349904 dn=""
[27/Mar/2018:08:18:25.425905912 +0000] conn=865 op=1 SRCH
base="cn=users,cn=accounts,dc=company,dc=ac,dc=uk" scope=2
filter="(uid=)" attrs="distinguishedName memberOf sn givenName
eduPersonScopedAffiliation"
[27/Mar/2018:08:18:25.426060385 +0000] conn=865 op=1 RESULT err=0 tag=101 nentries=0
etime=0.0000216324
[27/Mar/2018:08:18:25.426671733 +0000] conn=865 op=2 UNBIND
[27/Mar/2018:08:18:25.426688267 +0000] conn=865 op=2 fd=88 closed - U1
[27/Mar/2018:08:18:25.427748678 +0000] conn=866 fd=88 slot=88 connection from
34.243.167.105 to 172.31.37.129
[27/Mar/2018:08:18:25.427910152 +0000] conn=866 op=0 BIND
dn="uid=perq,cn=users,cn=accounts,dc=company,dc=ac,dc=uk" method=128 version=3
[27/Mar/2018:08:18:25.428519552 +0000] conn=866 op=0 RESULT err=0 tag=97 nentries=0
etime=0.0000749019 dn="uid=perq,cn=users,cn=accounts,dc=company,dc=ac,dc=uk”
Does anyone have any working php code example with freeipa as the ldap server?
Regards
Per
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave(a)lists.fedorahosted.org
Hi,
please have a look at
http://php.net/manual/en/function.ldap-add.php
The dn provided in ldap_add(resource $link_identifier , string $dn ,
array $entry) is the DN of the entry to be added, not of the binding user.
Flo