Re: [PHP] ldap_add problem

2002-10-28 Thread Gerald Roehrbein/Pctdmn

Hello,

it's possible that attribute that have to use during an add do not exist.


For example from core.schema a programmer can retrieve information of the 
attribute that must exist for a objectclass
and the attributes that can given for a class like person. As an example of 
an entry of the slapd core.schema have a look
at the next three lines:

--from SLAPD core.schema---
objectclass ( 2.5.6.6 NAME 'person' SUP top STRUCTURAL
MUST ( sn $ cn )
MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )
---

A programmer of SLAPD have to know all of the attributes and dependencies 
of the schema directory and in special cases a programmer
 can modify the schema to fit for special purpose. When using Netscape 
Directory Server slapd configuration is a little bit easier because
Netscape developed a good HTML based admin interface that allows to have a 
simple look at the object structure and to add, modify or delete 
everything in the LDAP schema.


Hope ist helps.

Best regards
Gerald




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] ldap_add problem

2002-10-28 Thread Krzysztof Dziekiewicz
 I get the following error:

 Warning: LDAP: add operation could not be completed. in
 /var/www/html/user/adduser_p.php on line 65

 Where in my log files can I go to look for more detailed info on that error,
 I don't know if I have logging enabled for slapd.

1. after ldap_add print ldap_error
2. Problems:
2a: access rights
2b: Wrong objectclass: sure you add it with right values: all attrubites include
in class in objectclass.


-- 
Krzysztof Dziekiewicz


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] ldap_add problem

2002-10-26 Thread Stig Venaas
On Thu, Oct 24, 2002 at 04:37:56PM -0400, GC wrote:
 Hi, I wrote a simple page that tries to enter a string into a LDAP server.
 I get the following error:
 
 Warning: LDAP: add operation could not be completed. in
 /var/www/html/user/adduser_p.php on line 65
 
 Where in my log files can I go to look for more detailed info on that error,
 I don't know if I have logging enabled for slapd.  Thanks!!

There are a number of things that could be wrong, but the most likely
is access rights I suppose. The best way to solve this is indeed to
turn on more logging in slapd if necessary. Please see slapd
docs for how to do this.

Stig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] ldap_add problem

2002-10-24 Thread GC
Hi, I wrote a simple page that tries to enter a string into a LDAP server.
I get the following error:

Warning: LDAP: add operation could not be completed. in
/var/www/html/user/adduser_p.php on line 65

Where in my log files can I go to look for more detailed info on that error,
I don't know if I have logging enabled for slapd.  Thanks!!
-GC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php