473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with writing information from PHP to LDAP-tree (labeledURI)

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
Jul 17 '05 #1
0 1400

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Florian Racky | last post by:
Hi, I'm trying to get secure authentication with Novell EDirectory running. PHP Version is 4.3.1 compiled with ldap and openssl. I copied the Novell root-certificate into the OpenSSL...
0
by: MickBim | last post by:
Hi, I'm developping a module in PHP to get the users of a LDAP server and add them in a Postgre database, where normal users are too. I've managed to do this "easily" but now a new problem...
0
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. What i am trying to do is, i am trying to look...
0
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. I can only bind anonymously to this ldap. This...
7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
2
by: Tdar | last post by:
Sorry for the dup post but looking for a response and this is being posted under my MSDN managed newsgroups handle and in a different newsgroup Hi, As I said in the past post I am using this...
0
by: Eddie B | last post by:
Hello all, I am writing an aspx (Visual Basic) logon app for a friend (he needs to be able to reset expired passwords, so the regular windows logon won't work). Everything is in the same domain...
14
by: Jonathan Smith | last post by:
I am trying to develop an app using ADSI. I have the following code: Dim ADSUser As IADsUser ADSUser = GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com") ...
0
by: Chung Leong | last post by:
In this brief tutorial I'll describe how you retrieve information from an Active Directory through the OLE-DB extension. While it is possible to use the LDAP extension to achieve the same goal, as...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.