On Wed, Oct 31, 2012 at 12:51 PM, rodrigo tavares rodrigofariat@yahoo.com.br wrote:
Hello Mauricio,
- How comfortable are you with linux/unix in general and debian
specifically? Do not take this as an insult; I just want to know what I need to ask. Remember I have no access to your machine. ;)
I like much Debian Linux, it's very fast. I began work with Linux, i used Conetiva 6.0 and Red Hat Enteprise/Fedora both using format RPM. Debian have a lot packages. And is free, diffent red hat.
FYI, a free version of RHES is CentOS.
- Are you using ldap to login to this machine or just to check mail?
Well I have a server email with LDAP and Suport Samba. So the base ldap the mailserver is replicated from server samba. Then, all modifications LDAP made go to server samba. It run about 5 minutes. I create users emails e samba users. Making intgretion with users samba.
I am a bit confused here. So you have:
o ldap/samba server o ldap is up and running properly o mail server (http://en.wikipedia.org/wiki/Expresso_Livre), which replicates ldap's db. Are they in sync? o Which machine is defensoria?
Am I correct?
- I do speak portuguese (I lived in SJC and then Rio). Would you
prefer that a gente fale em portugues? Once again, it is all about your comfort level.
Speak an English. For others in discussion
Sounds fine with me.
Anywhoo, let's take a quick look-see at your log. You are connecting to ldap in localhost; does that mean we are in the mail server or your primary ldap server? Also, looking
dn="uid=computer2$,ou=defensoria,dc=defensoria,dc=mg,dc=gov,dc=br" Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=1 RESULT tag=105 err=21 text=gidNumber: value #0 invalid per syntax
makes me think http://www.openldap.org/lists/openldap-software/200512/msg00240.html provides a few suggestions. I really would love to just do ldapadd manually to find out what it is supposed to be. Could you increase the slapd log level to debug an try again?
De: Mauricio Tavares raubvogel@gmail.com Para: rodrigo tavares rodrigofariat@yahoo.com.br Enviadas: Quarta-feira, 31 de Outubro de 2012 14:14
Assunto: Re: Error : when create usermachine in LDAP
A few questions (I am replying directly to you instead of to the list):
- How comfortable are you with linux/unix in general and debian
specifically? Do not take this as an insult; I just want to know what I need to ask. Remember I have no access to your machine. ;)
Are you using ldap to login to this machine or just to check mail?
I do speak portuguese (I lived in SJC and then Rio). Would you
prefer that a gente fale em portugues? Once again, it is all about your comfort level.
On Wed, Oct 31, 2012 at 11:49 AM, rodrigo tavares rodrigofariat@yahoo.com.br wrote:
Hello,
How exactly are you adding the computer to ldap? I take it is not using ldapadd. ;)
In Brazil in state Parana, exists on sofwtare called Expresso Mail Free. It have a easy interface, and you can create mail users, users samba and machine, all integrate in LDAP. It have cyrus-imap, openldap, posfix and postgresql.
http://rodrigofariat.files.wordpress.com/2012/10/ldap-error.png
Some logs:
Oct 31 13:59:08 defensoria slapd[1688]: conn=1542 op=1 SRCH base="dc=defensoria,dc=mg,dc=gov,dc=br" scope=2 deref=0 filter="(uid=computer2$)" Oct 31 13:59:08 defensoria slapd[1688]: conn=1542 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text= Oct 31 13:59:08 defensoria slapd[1688]: conn=1542 op=2 UNBIND Oct 31 13:59:08 defensoria slapd[1688]: conn=1542 fd=38 closed Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 fd=38 ACCEPT from IP=127.0.0.1:50679 (IP=0.0.0.0:389) Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" method=128 Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" mech=SIMPLE ssf=0 Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=0 RESULT tag=97 err=0 text= Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=1 ADD dn="uid=computer2$,ou=defensoria,dc=defensoria,dc=mg,dc=gov,dc=br" Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=1 RESULT tag=105 err=21 text=gidNumber: value #0 invalid per syntax Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 op=2 UNBIND Oct 31 13:59:08 defensoria slapd[1688]: conn=1543 fd=38 closed Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 fd=38 ACCEPT from IP=127.0.0.1:50680 (IP=0.0.0.0:389) Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" method=128 Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" mech=SIMPLE ssf=0 Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 op=0 RESULT tag=97 err=0 text= Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 fd=39 ACCEPT from IP=127.0.0.1:50681 (IP=0.0.0.0:389) Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" method=128 Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=0 BIND dn="cn=admin,dc=defensoria,dc=mg,dc=gov,dc=br" mech=SIMPLE ssf=0 Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=0 RESULT tag=97 err=0 text= Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=1 SRCH base="dc=defensoria,dc=mg,dc=gov,dc=br" scope=2 deref=0 filter="(objectClass=organizationalUnit)" Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=1 SRCH attr=dn Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 op=2 UNBIND Oct 31 13:59:08 defensoria slapd[1688]: conn=1545 fd=39 closed Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 op=1 UNBIND Oct 31 13:59:08 defensoria slapd[1688]: conn=1544 fd=38 closed Oct 31 13:59:08 defensoria slapd[1688]: conn=1541 op=1 UNBIND Oct 31 13:59:08 defensoria slapd[1688]: conn=1541 fd=17 closed Oct 31 13:59:10 defensoria slapd[1688]: conn=1546 fd=17 ACCEPT from IP=127.0.0.1:50682 (IP=0.0.0.0:389) Oct 31 13:59:10 defensoria slapd[1688]: conn=1546 op=0 do_search: invalid dn: "LDAP_DN" Oct 31 13:59:10 defensoria slapd[1688]: conn=1546 op=0 SEARCH RESULT tag=101 err=34 nentries=0 text=invalid DN Oct 31 13:59:10 defensoria slapd[1688]: conn=1546 op=1 UNBIND Oct 31 13:59:10 defensoria slapd[1688]: conn=1546 fd=17 closed
Thanks !
Rodrigo
De: Mauricio Tavares raubvogel@gmail.com Para: "openldap-technical@openldap.org" openldap-technical@openldap.org Cc: rodrigo tavares rodrigofariat@yahoo.com.br Enviadas: Quarta-feira, 31 de Outubro de 2012 12:47
Assunto: Re: Error : when create usermachine in LDAP
On Wed, Oct 31, 2012 at 9:46 AM, Dan White dwhite@olp.net wrote:
On 10/31/12 06:16 -0700, rodrigo tavares wrote:
Hello,
I try to create a computer in LDAP, come this message: Error in OpenLDAP recording computer.*
What is wrong ?
Rodrigo,
I am unfamiliar with the error message you are seeing. However, your post lacks some important information. See:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Provide a better mental image of what command or action you are performing that is causing your error, and what output you are expecting to see; what software are using that is causing this error? What version of OpenLDAP are you using?
-- Dan White
Rodrigo:
How exactly are you adding the computer to ldap? I take it is not using ldapadd. ;)
Does whatever you are using have a log and a debugging/verbose mode?