+ Post New Thread
Results 1 to 7 of 7
*nix Thread, Ubuntu 6.06 and winbind/getent in Technical; We have a couple of Ubuntu 6.06 servers here, both set up very similar to this . On only one ...
  1. #1

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Ubuntu 6.06 and winbind/getent

    We have a couple of Ubuntu 6.06 servers here, both set up very similar to this.

    On only one of our servers, getent passwd isn't pulling across all of the domain accounts; but wbinfo -u is.

    Code:
    admin@bbs-ftp-001:/$ wbinfo -u|grep craig.rodway
    craig.rodway
    admin@bbs-ftp-001:/$ getent passwd|grep craig.rodway
    admin@bbs-ftp-001:/$
    Here's part of the /var/log/samba/log.winbindd file after running getent passwd:

    Code:
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_read bad magic 0x42424242 at offset=290584
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=290836
    [2007/09/21 14:40:12, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(85)
      error getting user id for sid S-1-5-21-1614895754-1060284298-839522115-2607
    [2007/09/21 14:40:12, 1] nsswitch/winbindd_user.c:winbindd_getpwent(715)
      could not lookup domain user BBS-TSS-001$
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=290836
    [2007/09/21 14:40:12, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(85)
      error getting user id for sid S-1-5-21-1614895754-1060284298-839522115-6107
    
    .....
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_read bad magic 0x42424242 at offset=290248
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_read bad magic 0x42424242 at offset=290164
    [2007/09/21 14:40:12, 0] tdb/tdbutil.c:tdb_log(772)
      tdb(/var/lib/samba/winbindd_idmap.tdb): rec_free_read bad magic 0x42424242 at offset=290836
    [2007/09/21 14:40:12, 1] nsswitch/winbindd_user.c:winbindd_fill_pwent(85)
      error getting user id for sid S-1-5-21-1614895754-1060284298-839522115-3439
    [2007/09/21 14:40:12, 1] nsswitch/winbindd_user.c:winbindd_getpwent(715)
      could not lookup domain user primary108
    It's a bit of a problem as I have a script that sets permission on directories and need to use winbind for PAM authentication.

    Samba version is 3.0.22 on both Ubuntu 6.06 servers. We also have 2 other CentOS boxes with similar Samba/AD integration and their getent passwd is working fine (eg. returning the same domain users as wbinfo -u does)

    Anybody had similar problems or know where I can start to diagnose this?

    Cheers

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Ubuntu 6.06 and winbind/getent

    the idmap database is corrupt. Restore the file from backup.

  3. #3

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Ubuntu 6.06 and winbind/getent

    Ok, hypothetically speaking, say I'd forgotten to include tdbbackup in my backup script... would it be possible to re-generate the TDB file?

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Ubuntu 6.06 and winbind/getent

    No, your only other option is to delete it. Then if you restart samba, it'll generate a fresh, empty one. However you'll then lose your unix id <-> NT SSID mappings. Which could be tedious.

  5. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Ubuntu 6.06 and winbind/getent

    Okay. That shouldn't be too much of a problem I don't think. My current cron script that creates home directories recursively chmod/chowns the home directories to their username. That should work with a new idmap DB shouldn't it?

    Thanks Geoff.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Ubuntu 6.06 and winbind/getent

    yes, that should be fine

  7. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Ubuntu 6.06 and winbind/getent

    Cool. Cheers Geoff

    EDIT: It's now worked, all permissions/ownerships have been reset using newly-generated uids



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 70
    Last Post: 13th November 2009, 02:51 PM
  2. Apache with Winbind Authentication
    By Ric_ in forum *nix
    Replies: 36
    Last Post: 22nd March 2008, 07:56 PM
  3. WPA/PSK and Ubuntu
    By richard in forum *nix
    Replies: 12
    Last Post: 17th May 2007, 10:44 AM
  4. Ubuntu Help Please.
    By tickmike in forum *nix
    Replies: 15
    Last Post: 4th January 2007, 02:55 PM
  5. Replies: 4
    Last Post: 14th November 2005, 06:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •