Problema ao adicionar usuário

1. Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 13:47h

Olá, tenho um samba e um openldap instalados e tenho o seguinte problema.
Quando deixo essas linhas do slapd.conf habilitadas o ldap não inicia, o serviço só fica disponivel quando eu as comento, as anulo:

#lastmod on

#access to attrs=userPassword,shadowLastChange,sambaLMPassword,sambaNTPassword
#by dn="cn=Manager,dc=meudominio,dc=com,dc=br" write
#by anonymous auth
#by anonymous read
#by self write
#by * none

#access to dn.base="" by * read

#access to *
#by dn="cn=Manager,dc=meudominio,dc=com,dc=br" write
#by * read

Alguém sabe o porque disso?
Estou usando esse tutorial como referência:
http://www.vivaolinux.com.br/artigo/Migrando-servidores-Linux-para-autenticacao-LDAP?pagina=3

E utilizo o ubuntu server.


  


2. Re: Problema ao adicionar usuário

Daniel Magalhães Bicalho
danielmb

(usa Gentoo)

Enviado em 25/08/2011 - 15:37h

Inicialmente a sintaxe está correta.
O usuário administrador do ldap é o cn=Manager,dc=meudominio,dc=com,dc=br?
A base está devidamente instalada?
Descomente, inicie o servidor e pegue as mensagens de log para nos ajudar.



3. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 15:41h

é esse usuario mesmo.

Quando eu descomento elas e vou iniciar o sevridor pelo

# invoke-rc.d slapd start
ele não me retorna nenhuma linha, apenas não inicia.


4. Re: Problema ao adicionar usuário

Daniel Magalhães Bicalho
danielmb

(usa Gentoo)

Enviado em 25/08/2011 - 15:43h

E as informações de log? inicie o servidor em modo de debug para emitir mensagens de erro


5. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 15:45h

Como inicio em modo de debug?
desculpe, sou iniciante em linux


6. Re: Problema ao adicionar usuário

Daniel Magalhães Bicalho
danielmb

(usa Gentoo)

Enviado em 25/08/2011 - 16:22h

tudo bem. Pegou um desafio e tanto para iniciar. faça da seguinte forma.
slapd -d 256

já vai gerar algumas telas.
verfique a documentação oficial em www.openldap.org
e os manuais
man slapd
man slapd.conf

posta a mensagens de debug aí



7. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 16:33h

Iniciei e ele fez o seguinte:


word sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1078 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1077 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1077 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1077 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1078 op=2 UNBIND
conn=1077 op=2 UNBIND
conn=1078 fd=16 closed
conn=1077 fd=12 closed
conn=1079 fd=17 ACCEPT from IP=192.168.1.10:45605 (IP=0.0.0.0:389)
conn=1079 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1080 fd=12 ACCEPT from IP=192.168.1.10:45606 (IP=0.0.0.0:389)
conn=1079 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1080 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1080 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1079 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1080 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1080 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1080 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1079 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1079 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1080 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1079 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1079 fd=17 closed (connection lost)
conn=1080 fd=12 closed (connection lost)
conn=1081 fd=12 ACCEPT from IP=192.168.1.10:45608 (IP=0.0.0.0:389)
conn=1081 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1081 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1081 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1081 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumber=65534))"
conn=1081 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1081 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1081 op=2 UNBIND
conn=1081 fd=12 closed
conn=1082 fd=12 ACCEPT from IP=192.168.1.10:45609 (IP=0.0.0.0:389)
conn=1082 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1082 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1082 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1082 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1082 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1082 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1082 op=2 UNBIND
conn=1082 fd=12 closed
conn=1083 fd=12 ACCEPT from IP=192.168.1.10:45610 (IP=0.0.0.0:389)
conn=1083 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1083 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1083 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1083 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1083 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1083 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1083 op=2 UNBIND
conn=1083 fd=12 closed
conn=1084 fd=12 ACCEPT from IP=192.168.1.10:45611 (IP=0.0.0.0:389)
conn=1084 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1084 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1084 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1085 fd=16 ACCEPT from IP=192.168.1.10:45612 (IP=0.0.0.0:389)
conn=1085 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1085 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1085 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1084 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1084 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1084 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1084 op=2 UNBIND
conn=1084 fd=12 closed
conn=1086 fd=12 ACCEPT from IP=192.168.1.10:45613 (IP=0.0.0.0:389)
conn=1086 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1086 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1086 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1085 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumber=65534))"
conn=1085 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1085 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1085 op=2 UNBIND
conn=1085 fd=16 closed
conn=1087 fd=16 ACCEPT from IP=192.168.1.10:45614 (IP=0.0.0.0:389)
conn=1087 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1087 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1087 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1086 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1086 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1086 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1086 op=2 UNBIND
conn=1086 fd=12 closed
conn=1088 fd=12 ACCEPT from IP=192.168.1.10:45615 (IP=0.0.0.0:389)
conn=1088 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1088 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1088 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1087 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1087 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1087 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1087 op=2 UNBIND
conn=1087 fd=16 closed
conn=1089 fd=16 ACCEPT from IP=192.168.1.10:45616 (IP=0.0.0.0:389)
conn=1089 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1089 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1089 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1088 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1088 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1088 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1088 op=2 UNBIND
conn=1088 fd=12 closed
conn=1090 fd=12 ACCEPT from IP=192.168.1.10:45617 (IP=0.0.0.0:389)
conn=1090 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1090 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1090 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1089 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1089 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1089 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1089 op=2 UNBIND
conn=1089 fd=16 closed
conn=1091 fd=16 ACCEPT from IP=192.168.1.10:45618 (IP=0.0.0.0:389)
conn=1091 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1091 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1091 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1090 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1090 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1090 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1090 op=2 UNBIND
conn=1090 fd=12 closed
conn=1092 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1092 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1092 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1092 fd=12 ACCEPT from IP=192.168.1.10:45619 (IP=0.0.0.0:389)
conn=1091 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1091 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1091 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1091 op=2 UNBIND
conn=1091 fd=16 closed
conn=1093 fd=16 ACCEPT from IP=192.168.1.10:45620 (IP=0.0.0.0:389)
conn=1093 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1093 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1093 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1092 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1092 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1092 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1092 op=2 UNBIND
conn=1092 fd=12 closed
conn=1094 fd=12 ACCEPT from IP=192.168.1.10:45621 (IP=0.0.0.0:389)
conn=1094 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1094 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1094 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1093 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1093 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1093 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1093 op=2 UNBIND
conn=1093 fd=16 closed
conn=1095 fd=16 ACCEPT from IP=192.168.1.10:45622 (IP=0.0.0.0:389)
conn=1095 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1095 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1095 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1094 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1094 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1094 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1094 fd=12 closed (connection lost)
conn=1095 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1095 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1095 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1095 op=2 UNBIND
conn=1095 fd=16 closed
conn=1096 fd=12 ACCEPT from IP=192.168.1.10:45623 (IP=0.0.0.0:389)
conn=1096 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1096 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1096 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1096 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1096 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1096 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1096 op=2 UNBIND
conn=1096 fd=12 closed
conn=1097 fd=12 ACCEPT from IP=192.168.1.10:45624 (IP=0.0.0.0:389)
conn=1097 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1097 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1097 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1097 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513)(objectClass=sambaSamAccount))"
conn=1097 op=1 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber gidNumber homeDirectory loginShell gecos
conn=1097 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1097 op=2 UNBIND
conn=1097 fd=12 closed
conn=1098 fd=12 ACCEPT from IP=192.168.1.10:45625 (IP=0.0.0.0:389)
conn=1098 op=0 EXT oid=1.3.6.1.4.1.1466.20037
conn=1098 op=0 do_extended: unsupported operation "1.3.6.1.4.1.1466.20037"
conn=1098 op=0 RESULT tag=120 err=2 text=unsupported extended operation
conn=1098 op=1 SRCH base="dc=g5brasil,dc=com,dc=br" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-21-1319440450-3181931546-2291701323-513))"
conn=1098 op=1 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
conn=1098 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1098 fd=12 closed (connection lost)


É muita coisa e como sou iniciante, não tenho muita idéia do que pode ser relevante ou não.
Se você precisar de algo mais especifico, por favor me fale que faço debug denovo e procuro.
valeu


8. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 16:45h

Na verdade fiz besteira, esse debug ai de cima é com as linhas comentadas.
Eu descomentei elas agr e ele retornou o seguinte:

# /usr/local/libexec/slapd -d 256
@(#) $OpenLDAP: slapd 2.4.23 (Aug 23 2011 13:14:54) $
root@server:/home/vinicius/openldap-2.4.23/servers/slapd
/usr/local/etc/openldap/slapd.conf: line 92: warning: no by clause(s) specified in access line.
<access clause> ::= access to <what> [ by <who> [ <access> ] [ <control> ] ]+
<what> ::= * | dn[.<dnstyle>=<DN>] [filter=<filter>] [attrs=<attrspec>]
<attrspec> ::= <attrname> [val[/<matchingRule>][.<attrstyle>]=<value>] | <attrlist>
<attrlist> ::= <attr> [ , <attrlist> ]
<attr> ::= <attrname> | @<objectClass> | !<objectClass> | entry | children
<who> ::= [ * | anonymous | users | self | dn[.<dnstyle>]=<DN> ]
[ realanonymous | realusers | realself | realdn[.<dnstyle>]=<DN> ]
[dnattr=<attrname>]
[realdnattr=<attrname>]
[group[/<objectclass>[/<attrname>]][.<style>]=<group>]
[peername[.<peernamestyle>]=<peer>] [sockname[.<style>]=<name>]
[domain[.<domainstyle>]=<domain>] [sockurl[.<style>]=<url>]
[ssf=<n>] [transport_ssf=<n>] [tls_ssf=<n>] [sasl_ssf=<n>]
<style> ::= exact | regex | base(Object)
<dnstyle> ::= base(Object) | one(level) | sub(tree) | children | exact | regex
<attrstyle> ::= exact | regex | base(Object) | one(level) | sub(tree) | children
<peernamestyle> ::= exact | regex | ip | ipv6 | path
<domainstyle> ::= exact | regex | base(Object) | sub(tree)
<access> ::= [[real]self]{<level>|<priv>}
<level> ::= none|disclose|auth|compare|search|read|{write|add|delete}|manage
<priv> ::= {=|+|-}{0|d|x|c|s|r|{w|a|z}|m}+
<control> ::= [ stop | continue | break ]

slapd stopped.
connections_destroy: nothing to destroy.



9. Re: Problema ao adicionar usuário

Daniel Magalhães Bicalho
danielmb

(usa Gentoo)

Enviado em 25/08/2011 - 16:48h

me informe qual é a linha 92 e as linhas vizinha que pertecem a item que se refere a configuração.


10. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 16:51h


directory /usr/local/var/openldap-data
dbconfig set_cachesize 0 2097152 0

# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500

index objectClass,uidNumber,gidNumber eq
index cn,sn,uid,displayName pres,sub,eq
index memberUID,mail,givenname eq,subinitial
index sambaSID,sambaPrimaryGroupSID,sambaDomainName eq

lastmod on

access to attrs=userPassword,shadowLastChange,sambaLMPassword,sambaNTPassword
by dn="cn=Manager,dc=dominio,dc=com,dc=br" write ---------------------- LINHA 92
by anonymous auth
by anonymous read
by self write
by * none

access to dn.base="" by * read

access to *
by dn="cn=Manager,dc=domonio,dc=com,dc=br" write
by * read



11. Re: Problema ao adicionar usuário

Daniel Magalhães Bicalho
danielmb

(usa Gentoo)

Enviado em 25/08/2011 - 16:58h

por acaso o seu domínio de acesso ldap é "dc=meudominio,dc=com,dc=br" ?
pelo que vi no log que me enviou quando iniciou é "dc=g5brasil,dc=com,dc=br"
dessa forma troque o dn do manager para
cn=Manager,dc=g5brasil,dc=com,dc=br em todo o seu arquivo e verifique o funcionamento do seu servidor


12. Re: Problema ao adicionar usuário

Vinicius
ViniMagrelo

(usa Ubuntu)

Enviado em 25/08/2011 - 17:00h

Não aqui no slapd.conf ta correto mesmo, tá g5brasil, eu que editei domnio agr, mas ta correto sim



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts