Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with labeledURI-object

Status
Not open for further replies.

bisibis

Programmer
Mar 11, 2004
2
EU
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"]=" $r=ldap_add($ac, "labeledURI= $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 having:
$entry["objectClass"]="organizationalUnit";
$entry["ou"]="test"
$r=ldap_add($ac, "ou=test,ou=Webservers,ou=RTLGROUP,dc=Global,dc=com", $entry);
and everything works fine

So the problem has to be anywhere with my URI-object

Can someone help me please?

Thanx

CB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top