•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,876 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,349 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1153 | Replies: 0
![]() |
•
•
Join Date: Jul 2005
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi!
In LDAP base I have some attrs by hierarchy:
cn=attributes,cn=stubs,cn=lookups,cn=domain
Inside this node there is a list objects: cn=PhysDevName, cn=LogDevName, cn=Location...
I read to read them in an array I do:
...
$ds=ldap_connect("localhost",389); // must be a valid LDAP server!
if ($ds) {
if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) {
echo "Using LDAPv3<br>";
} else {
echo "Failed to set protocol version to 3";
}
$r=ldap_bind($ds,'cn=Manager,cn=NEXTcam','password');
$sr=ldap_list($ds, 'cn=attributes,cn=stubs,cn=lookups,cn=domain','cn=PhysDevName');
I get Warning: ldap_list(): Search: No such object in d:\my work\web\cm\_ldap_test.php on line 63
And how Ihave I to write hierarchy and filter to get all the list or part of it?
I tried some variants with filtrs like 'cn=Phys*', 'cn=*' but it fails all the same.
How have I to do?
LDAP itself was installed normally The base was loaded As I understand if the server was installed
with errors in my script I will have errors before ldap_list(?
In attachment file with server printscreen
Thanks in advance,
Nilov Serge
In LDAP base I have some attrs by hierarchy:
cn=attributes,cn=stubs,cn=lookups,cn=domain
Inside this node there is a list objects: cn=PhysDevName, cn=LogDevName, cn=Location...
I read to read them in an array I do:
...
$ds=ldap_connect("localhost",389); // must be a valid LDAP server!
if ($ds) {
if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) {
echo "Using LDAPv3<br>";
} else {
echo "Failed to set protocol version to 3";
}
$r=ldap_bind($ds,'cn=Manager,cn=NEXTcam','password');
$sr=ldap_list($ds, 'cn=attributes,cn=stubs,cn=lookups,cn=domain','cn=PhysDevName');
I get Warning: ldap_list(): Search: No such object in d:\my work\web\cm\_ldap_test.php on line 63
And how Ihave I to write hierarchy and filter to get all the list or part of it?
I tried some variants with filtrs like 'cn=Phys*', 'cn=*' but it fails all the same.
How have I to do?
LDAP itself was installed normally The base was loaded As I understand if the server was installed
with errors in my script I will have errors before ldap_list(?
In attachment file with server printscreen
Thanks in advance,
Nilov Serge
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- how to read input from barcode scanner? (PHP)
- Student Suspended for using PHP!! (Web Developers' Lounge)
- php loading (PHP)
- random page crashes in php (PHP)
- Read data from Access Database through PHP (PHP)
- PHP in a html page? (PHP)
- Read content of *.dat (Java)
- PHP 5.0 Finally Released! (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP index question
- Next Thread: how to use gd


Linear Mode