Re: can't modify or add uidNumber attribute

2012-03-27 Thread Nick Milas
On 27/3/2012 10:53 πμ, stefano wrote: these are the permissions of 'directory' /var/lib/ldap/ chown openldap:openldap /var/lib/ldap/* And do this after any operations you do as root. Nick

Re: can't modify or add uidNumber attribute

2012-03-27 Thread stefano
On 03/27/2012 09:34 AM, Hallvard B Furuseth wrote: On Tue, 27 Mar 2012 09:10:17 +0200, stefano wrote: On 03/27/2012 08:13 AM, Hallvard B Furuseth wrote: I wrote: Have you done something as root, so root owns some of the database files but you try to run slapd as another user (with -u)? If so

Re: can't modify or add uidNumber attribute

2012-03-26 Thread Hallvard B Furuseth
I wrote: Have you done something as root, so root owns some of the database files but you try to run slapd as another user (with -u)? If so, fix the file permsisions and then avoid working as root. Sorry, I mean file ownerships. Though it could be file or directory permissions too, come to thi

Re: can't modify or add uidNumber attribute

2012-03-26 Thread Hallvard B Furuseth
On Mon, 26 Mar 2012 17:04:23 +0200, stefano wrote: the situation is worse. now, trying to run an ldapsearch i have the message "can't contact LDAP server". on syslog the last lines are: (...) Have you done something as root, so root owns some of the database files but you try to run slapd

RE: can't modify or add uidNumber attribute

2012-03-26 Thread Flack, Simon
Hi , You mention that "then with an ldapsearch for this user there was not the uidNumber attribute:" . Isn't the attribute and its value listed here "uidNumber: 1001" . You will get ": Undefined attribute type (17)" if you try to add it to an entry that already has this attribute value populate

Re: can't modify or add uidNumber attribute

2012-03-26 Thread stefano
thank you, i understand my error. now i have this problem. trying an ldapsearch is not possible to contact LDAP server. this is the output in syslog: Mar 26 16:11:33 amahoro slapd[1603]: @(#) $OpenLDAP: slapd 2.4.23 (Jun 16 2011 02:53:39) $#012#011buildd@murphy:/build/buildd-openldap_2.4.23-7

Re: can't modify or add uidNumber attribute

2012-03-26 Thread Buchan Milne
On Monday, 26 March 2012 16:21:17 stefano wrote: > hi, i was modifying uidNumber attribute of a user but then has been > standing for a few minutes and I stopped it: > > root@amahoro:~# ldapmodify -x -W -D 'cn=Manager,dc=amahoro,dc=bi' > Enter LDAP Password: > dn: uid=stefano,cn=Admins,dc=amahoro,

Re: can't modify or add uidNumber attribute

2012-03-26 Thread stefano
yes, i've seen it. but now i can't use also ldapsearch, please take a look of syslog: Mar 26 16:11:33 amahoro slapd[1603]: @(#) $OpenLDAP: slapd 2.4.23 (Jun 16 2011 02:53:39) $#012#011buildd@murphy:/build/buildd-openldap_2.4.23-7.2-i386-Y1mwvF/openldap-2.4.23/debian/build/servers/slapd Mar 26

Re: can't modify or add uidNumber attribute

2012-03-26 Thread Ondrej Kuznik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/26/2012 04:21 PM, stefano wrote: > hi, i was modifying uidNumber attribute of a user but then has been > standing for a few minutes and I stopped it: > root@amahoro:~# ldapmodify -x -W -D 'cn=Manager,dc=amahoro,dc=bi' > Enter LDAP Password: > dn:

Re: can't modify or add uidNumber attribute

2012-03-26 Thread stefano
The situationis worsethan expected the situation is worse. now, trying to run an ldapsearch i have the message "can't contact LDAP server". on syslog the last lines are: Mar 26 16:11:33 amahoro slapd[1603]: @(#) $OpenLDAP: slapd 2.4.23 (Jun 16 2011 02:53:39) $#012#011buildd@murphy:/build/bui