Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-12-20, 09:30 AM
Junior Member
 
Join Date: Dec 2005
Posts: 1
nilovserge
Default

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
";
} 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,
NilovSerge
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:14 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.