I am running Yala 31b.
The OS is Redhat AS 4.0.
I am using openldap. I
I can log on to me server just fine. I can see my
directory tree in the navigator pane.
When I click on a DN to view its contents, I see the
following in the main panel(with Debug turned on).
Reading schema from LDAP
Search error! No such object
Looks like the search is not being formulated
correctly. Seems like the DN I am selecting must
exist since it is shown in the navigator panel.
What would cause the object to not be found?
I see the following in the httpd log.
[client 9.41.23.136] PHP Warning: ldap_read():
Search: No such object in /var/www/html/yala-
0.31b/ldapfunc.inc.php on line 132, referer:
http://cert-linuxboot/yala/tree.php
rpm -qa | grep ldap
openldap-clients-2.2.13-2
openldap-2.2.13-2
nss_ldap-226-1
python-ldap-2.0.1-2
openldap-servers-2.2.13-2
openldap-devel-2.2.13-2
php-ldap-4.3.9-3.1
Logged In: YES
user_id=1113910
Also, I can run
ldapsearch -x -b 'dc=ospm,dc=ibm,dc=com' '(objectclass=*)'
subschemasubentry
And it returns
# extended LDIF
#
# LDAPv3
# base <dc=ospm,dc=ibm,dc=com> with scope sub
# filter: (objectclass=*)
# requesting: subschemasubentry
#
# ospm.ibm.com
dn: dc=ospm,dc=ibm,dc=com
subschemaSubentry: cn=Subschema
# root, ospm.ibm.com
dn: cn=root,dc=ospm,dc=ibm,dc=com
subschemaSubentry: cn=Subschema
# 3, ospm.ibm.com
dn: version=3,dc=ospm,dc=ibm,dc=com
subschemaSubentry: cn=Subschema
# oses, 3, ospm.ibm.com
dn: ospmdata=oses,version=3,dc=ospm,dc=ibm,dc=com
subschemaSubentry: cn=Subschema
.....
So, it appears the Query Yala is trying should work.
Logged In: YES
user_id=1113910
Problem solved, sort of. I added the base DN to the
ldap_read as shown below and it worked.
function getSubSchemaDN() {
if (DEBUG) echo "Reading schema from LDAP<BR>";
$sr = ldap_read($this-
>ldap_conn, "dc=ospm,dc=ibm,dc=com", "(objectClass=*)",
array("subschemaSubentry"));