From: John B. <joh...@ne...> - 2000-11-29 10:33:35
|
> I'm working with OpenLdap 2.0.7, I think that this version of LDAP > server support LDAPv3. > Is it correct? I'm not sure, but I suspect that you are bound using version 2, because... > I do this to get the schema: [snip] > $ldap->bind; If you don't specify a version to the bind command, Net::LDAP defaults to v2. (At least it looks that way in the Version 0.22 I have installed). Can you try: my $m = $ldap->bind( version => 3 ); die( "Can't bind" ) unless $m->code() == 0; # or LDAP_SUCCESS :-) instead? Does this help? > I debug this script and the variable $schema return from $ldap->schema > is not full! > and Schema.pm's methods , for example $schema->attributes( "person" ) > don't return anything. If the server is returning data [you could see this by using $ldap = Net::LDAP->new( debug => 1)] there is a reasonably high chance that the Schema code doesn't understand it since it isn't used much. If binding v3 doesn't help you (or if I got that wrong, and Net::LDAP binds v3 by default) we should be able to fix this up for you. Let us know how you get on. > Can somebody tell me step by step how I can get the schema from the server? > I do need configure Openldap for do this? I don't know if OpenLDAP supports this, the above is really just a guess. regards, jb |