[Samba] database got corrupted, users could not login
Yasi
linuxlady2714 at gmail.com
Wed Aug 31 17:04:28 GMT 2005
I'm running Samba with LDAP on SuSE. Users had trouble logging in - finally
I just ran db_recover & restarted ldap and samba. It looks like the LDAP
database got corrupted somehow because samba couldn't get the LDAP data.
Also I created accounts with smbldap-useradd -m -a -B 1 username. Some of
the users were just using the same password samba seemed to kick them out. I
used pdbedit to tighten down the settings but it didn't seem to work with
users of limited computer skills - they locked themselves out of the account
with too many password tries. Maybe some of my settings for indexes are not
the best...Here are some parts of the logs...
Thanks,
Anne
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(gidNumber) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=4 SEARCH RESULT
tag=101 err=0 nentries=1 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 fd=15 closed
50567,1 Bot
Aug 30 18:07:37 redwood slapd[12105]: <= bdb_equality_candidates:
(uid) index_param failed (18)
Aug 30 18:07:37 redwood slapd[12105]: conn=28 op=1 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Aug 30 18:07:37 redwood slapd[12105]: conn=28 op=2 SRCH
base="ou=group,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixGroup)(memberUid=postfix))"
Aug 30 18:07:37 redwood slapd[12105]: conn=28 op=2 SRCH attr=gidNumber
Aug 30 18:07:37 redwood slapd[12105]: <= bdb_equality_candidates:
(memberUid) index_param failed (18)
Aug 30 18:07:37 redwood slapd[12105]: conn=28 op=2 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 fd=15 ACCEPT from
IP=172.30.238.51:33693 <http://172.30.238.51:33693>
(IP=0.0.0.0:636<http://0.0.0.0:636>
)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=0 BIND
dn="uid=nss,ou=people,dc=cs,dc=college,dc=edu" method=128
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=0 BIND
dn="uid=nss,ou=people,dc=cs,dc=college,dc=edu" mech=SIMPLE ssf=0
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=0 RESULT tag=97 err=0 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=1 SRCH
base="ou=people,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixAccount)(uid=root))"
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(uid) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=1 SEARCH RESULT
tag=101 err=0 nentries=1 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=2 SRCH
base="ou=group,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixGroup)(|(memberUid=root)(uniqueMember=uid=root,ou=people,dc=cs,dc=college,dc=edu)))"
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=2 SRCH attr=gidNumber
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(memberUid) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(uniqueMember) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=2 SEARCH RESULT
tag=101 err=0 nentries=1 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=3 SRCH
base="ou=group,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixGroup)(uniqueMember=cn=domain
admins,ou=group,dc=cs,dc=college,dc=edu))"
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=3 SRCH attr=gidNumber
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(uniqueMember) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=3 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=4 SRCH
base="ou=group,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixGroup)(gidNumber=512))"
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=4 SRCH attr=cn
userPassword memberUid uniqueMember gidNumber
Aug 30 18:15:01 redwood slapd[12105]: <= bdb_equality_candidates:
(gidNumber) index_param failed (18)
Aug 30 18:15:01 redwood slapd[12105]: conn=29 op=4 SEARCH RESULT
tag=101 err=0 nentries=1 text=
Aug 30 18:15:01 redwood slapd[12105]: conn=29 fd=15 closed
#######################################################################
# BDB database definitions
#######################################################################
database bdb
checkpoint 1024 5
cachesize 10000
# Indices to maintain
index objectClass eq
[2005/08/30 15:59:34, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 15:59:45, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
[2005/08/30 15:59:45, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 16:00:16, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
[2005/08/30 16:00:16, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 16:00:47, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
[2005/08/30 16:00:47, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 16:07:56, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2005/08/30 17:16:45, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
[2005/08/30 17:16:45, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 17:21:51, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
[2005/08/30 17:21:51, 0] auth/auth_sam.c:check_sam_security(324)
check_sam_security: make_server_info_sam() failed with
'NT_STATUS_NO_SUCH_USER'
[2005/08/30 17:23:22, 1] auth/auth_util.c:make_server_info_sam(840)
User joeuser in passdb, but getpwnam() fails!
Aug 31 09:45:01 redwood slapd[12105]: conn=219 op=4 SRCH attr=cn
userPassword memberUid uniqueMember gidNumber
Aug 31 09:45:01 redwood slapd[12105]: <= bdb_equality_candidates:
(gidNumber) index_param failed (18)
Aug 31 09:45:01 redwood slapd[12105]: conn=219 op=4 SEARCH RESULT tag=101
err=0 nentries=1 text=
Aug 31 09:45:01 redwood slapd[12105]: conn=219 fd=19 closed
Aug 31 09:45:41 redwood slapd[12105]: conn=204 fd=12 closed
Aug 31 09:46:41 redwood slapd[12105]: conn=220 fd=12 ACCEPT from IP=
172.30.238.145:38689 <http://172.30.238.145:38689>
(IP=0.0.0.0:636<http://0.0.0.0:636>
)
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=0 BIND dn="" method=128
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=0 RESULT tag=97 err=0
text=
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=1 SRCH
base="ou=people,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixAccount)(uid=postfix))"
Aug 31 09:46:41 redwood slapd[12105]: <= bdb_equality_candidates: (uid)
index_param failed (18)
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=1 SEARCH RESULT tag=101
err=0 nentries=0 text=
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=2 SRCH
base="ou=group,dc=cs,dc=college,dc=edu" scope=1 deref=0
filter="(&(objectClass=posixGroup)(memberUid=postfix))"
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=2 SRCH attr=gidNumber
Aug 31 09:46:41 redwood slapd[12105]: <= bdb_equality_candidates:
(memberUid) index_param failed (18)
Aug 31 09:46:41 redwood slapd[12105]: conn=220 op=2 SEARCH RESULT tag=101
err=0 nentries=0 text=
More information about the samba
mailing list