Hello,
I am writing some LDAP-scripts in PHP. One of the scripts has to add
new objects(urls) to the tree using the ldap_add command. The problem
is that I cannot add objects of the type "labeledURIObjec" to the
tree.
The part of the script posing problems is the following one:
$entry["objectClass"]="labeledURIObject";
$entry["labeledURI"]="http://www.test.com";
$r=ldap_add($ac,
"labeledURI=http://www.test.com,ou=Webservers,ou=MYCOMP,dc=Global,dc= com",
$entry);
When I execute the script, I get an error telling me that the
add-operation could not be completed.
I tried to modify the script a little bit adding just a simple OU in
the webservers subtree, having:
$entry["objectClass"]="organizationalUnit";
$entry["ou"]="test"
$r=ldap_add($ac, "ou=test,ou=Webservers,ou=MYCOMP,dc=Global,dc=com" ,
$entry);
and everything works fine
So the problem has to be anywhere with my URI-object, perhaps a
problem of format???
Can someone help me please?
Thanx
CB