I'm running Samba 3.0.11. Compiled with: ./configure '--with-ads' '--with-pam' '--with-winbind' '--with-smbmount' '--with-shared-modules=idmap_rid' It configured, make and make installed fine. I configured the idmap_rid using the following directives in the smb.conf. ; IDMap Stuff idmap backend = idmap_rid:<DOMAINNAME>=500-100000000 idmap uid = 500-100000000 idmap gid = 500-100000000 ; Winbind Stuff winbind use default domain = yes winbind separator = + winbind enum users = no winbind enum groups = no winbind nested groups = yes template shell = /bin/bash obey pam restrictions = yes Problem is after a few days I get error messages in log.winbind that say the database is corrupt or it couldn't map the SID. [2005/02/22 12:27:53, 0] tdb/tdbutil.c:tdb_log(725) tdb(/usr/local/samba/var/locks/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=12816 [2005/02/22 12:27:53, 0] sam/idmap_tdb.c:db_set_mapping(463) idb_set_mapping: tdb_store 1 error: Corrupt database [2005/02/22 12:27:53, 1] nsswitch/winbindd_user.c:winbindd_getpwuid(238) could not convert uid 783 to SID [2005/02/22 12:27:53, 0] tdb/tdbutil.c:tdb_log(725) tdb(/usr/local/samba/var/locks/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=12816 [2005/02/22 12:27:53, 0] sam/idmap_tdb.c:db_set_mapping(463) idb_set_mapping: tdb_store 1 error: Corrupt database [2005/02/22 12:27:53, 1] nsswitch/winbindd_group.c:winbindd_getgrgid(375) could not convert gid 783 to rid [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 Any help is appreciated !! Josh Konkol, CCSE CNE MCSE Technical Research Specialist .~. GuideOne Insurance /V\ /( )\ ^^-^^ samba@guidemail.com
I'm running Samba 3.0.11. Compiled with: ./configure '--with-ads' '--with-pam' '--with-winbind' '--with-smbmount' '--with-shared-modules=idmap_rid' It configured, make and make installed fine. I configured the idmap_rid using the following directives in the smb.conf. ; IDMap Stuff idmap backend = idmap_rid:<DOMAINNAME>=500-100000000 idmap uid = 500-100000000 idmap gid = 500-100000000 ; Winbind Stuff winbind use default domain = yes winbind separator = + winbind enum users = no winbind enum groups = no winbind nested groups = yes template shell = /bin/bash obey pam restrictions = yes Problem is after a few days I get error messages in log.winbind that say the database is corrupt or it couldn't map the SID. [2005/02/22 12:27:53, 0] tdb/tdbutil.c:tdb_log(725) tdb(/usr/local/samba/var/locks/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=12816 [2005/02/22 12:27:53, 0] sam/idmap_tdb.c:db_set_mapping(463) idb_set_mapping: tdb_store 1 error: Corrupt database [2005/02/22 12:27:53, 1] nsswitch/winbindd_user.c:winbindd_getpwuid(238) could not convert uid 783 to SID [2005/02/22 12:27:53, 0] tdb/tdbutil.c:tdb_log(725) tdb(/usr/local/samba/var/locks/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=12816 [2005/02/22 12:27:53, 0] sam/idmap_tdb.c:db_set_mapping(463) idb_set_mapping: tdb_store 1 error: Corrupt database [2005/02/22 12:27:53, 1] nsswitch/winbindd_group.c:winbindd_getgrgid(375) could not convert gid 783 to rid [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 [2005/02/22 12:30:00, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(475) rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-545 Any help is appreciated !! Josh Konkol, CCSE CNE MCSE Technical Research Specialist .~. GuideOne Insurance /V\ /( )\ ^^-^^ samba@guidemail.com
Gerald (Jerry) Carter
2005-Feb-28 16:56 UTC
[Samba] Corrupt Database and couldn't map SID.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Samba wrote: | The file system is ext3. I'm running SLES8 under z/VM | on the mainframe. This is a kernel issue IIRC. See https://bugzilla.samba.org/show_bug.cgi?id=1032 Try setting 'use mmap = no' as a temporary workaround. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCI00SIR7qMdg1EfYRAmxcAKDG/Bwvll0VEfIJ69UK79fZKQwMkgCg1TAQ RubMJFfUzmz0UWFtJXpfa28=g92k -----END PGP SIGNATURE-----
Maybe Matching Threads
- REPOST: Samba 2.2.5 under Debian 3.0 i386: Still frequent connections.tdb corruption
- Winbind Daemon dying
- Samba 2.2.5 under Debian 3.0 i386: Still frequent connections.tdb corruption
- Auth failing - idmap_rid?
- Not all users correctly winbind-ing on Server 2003 SP1 with 3.0.20b