Hi All, Can someone point me to a good reference on how to configure "tdbsam" ? Many thanks, -T
John H Terpstra - Samba Team wrote:> MargoAndTodd wrote: >> Hi All, >> >> Can someone point me to a good reference on how to >> configure "tdbsam" ? >> >> Many thanks, >> -T > In your smb.conf [global] > > passdb backend = tdbsam > > > Done! It's in my example in Chapter 3 of Samba3-ByExample. The default > is: passdb backend = smbpasswd > > > So how do you find the default settings? > > a) smb.conf has jsut the following: > > [global] > comment = Something > > > b) Execute: testparm -sv | less > > > _OR_ > > Check the man page for smb.conf: > > man smb.conf > > Then type: "/passdb backend" <enter>I keep feeling like I am missing something. Like 1) how do I populate passdb.tdb with my old smbpasswd and 2) where is passdb.tdb located, so I can back it up? Many thanks, -T
MargoAndTodd wrote:> I keep feeling like I am missing something. LikeThis too: I think I failed to set up the database that winbindd and wins wants to read. /var/log/messages: Mar 27 22:12:03 rn1 winbindd[6580]: [2009/03/27 22:12:03, 0] nsswitch/idmap.c:idmap_alloc_init(820) Mar 27 22:12:03 rn1 winbindd[6580]: ERROR: Initialization failed for alloc backend, deferred! and Mar 27 22:12:03 rn1 nss_wins[6589]: [2009/03/27 22:12:03, 0] auth/auth_util.c:create_builtin_administrators(792) Mar 27 22:12:03 rn1 nss_wins[6589]: create_builtin_administrators: Failed to create Administrators
MargoAndTodd wrote:> I keep feeling like I am missing something. LikeThis too: I think I failed to set up the database that winbindd and wins wants to read. /var/log/messages: Mar 27 22:12:03 rn1 winbindd[6580]: [2009/03/27 22:12:03, 0] nsswitch/idmap.c:idmap_alloc_init(820) Mar 27 22:12:03 rn1 winbindd[6580]: ERROR: Initialization failed for alloc backend, deferred! and Mar 27 22:12:03 rn1 nss_wins[6589]: [2009/03/27 22:12:03, 0] auth/auth_util.c:create_builtin_administrators(792) Mar 27 22:12:03 rn1 nss_wins[6589]: create_builtin_administrators: Failed to create Administrators
MargoAndTodd wrote:> 1) how do I populate passdb.tdb with my old smbpasswd > and > 2) where is passdb.tdb located, so I can back it up?To answer question #2: /etc/samba/passdb.tdb And it is full of "B"'s. See no sign of a user name. It appeared after I had my first successful user log in as a domain member (the user did not exist on the Virtual XP machine). Still do not know how to populate the darned thing (question 1)! -T
John H Terpstra - Samba Team wrote:> MargoAndTodd wrote: >> Hi All, >> >> Can someone point me to a good reference on how to >> configure "tdbsam" ? >> >> Many thanks, >> -T > In your smb.conf [global] > > passdb backend = tdbsam > > > Done! It's in my example in Chapter 3 of Samba3-ByExample. The default > is: passdb backend = smbpasswd > > > So how do you find the default settings? > > a) smb.conf has jsut the following: > > [global] > comment = Something > > > b) Execute: testparm -sv | less > > > _OR_ > > Check the man page for smb.conf: > > man smb.conf > > Then type: "/passdb backend" <enter>I keep feeling like I am missing something. Like 1) how do I populate passdb.tdb with my old smbpasswd and 2) where is passdb.tdb located, so I can back it up? Many thanks, -T
John H Terpstra - Samba Team wrote:> MargoAndTodd wrote: >> MargoAndTodd wrote: >> >>> I keep feeling like I am missing something. Like >> This too: I think I failed to set up the database >> that winbindd and wins wants to read. >> >> /var/log/messages: >> >> Mar 27 22:12:03 rn1 winbindd[6580]: [2009/03/27 22:12:03, 0] >> nsswitch/idmap.c:idmap_alloc_init(820) >> Mar 27 22:12:03 rn1 winbindd[6580]: ERROR: Initialization failed for >> alloc backend, deferred! >> >> and >> >> Mar 27 22:12:03 rn1 nss_wins[6589]: [2009/03/27 22:12:03, 0] >> auth/auth_util.c:create_builtin_administrators(792) >> Mar 27 22:12:03 rn1 nss_wins[6589]: create_builtin_administrators: >> Failed to create Administrators >> > > Read: > man smb.conf > then type: > /idmap <enter> > > You need modern examples. The docs are out of date on this. On the samba > mailing list you may find lots of folk-lore that is meaningless info. > But it's the best you will get until one of the samba core team members > jumps in to assist. IDMAP is poorly documented. > > > - John T.Hi John, From the man page: Default: idmap backend = tdb I also have a "man idmap_tdb", but it says nothing about manually creating a database. What is the relationship with "idmap" and "ERROR: Initialization failed for alloc backend, deferred!"? What am I missing? -T
John H Terpstra - Samba Team wrote:>> Mar 27 22:12:03 rn1 nss_wins[6589]: [2009/03/27 22:12:03, 0] >> auth/auth_util.c:create_builtin_administrators(792) >> Mar 27 22:12:03 rn1 nss_wins[6589]: create_builtin_administrators: >> Failed to create AdministratorsBy any chance does this mean someone tried to log in as "administrators", which I do remember doing, and "administrators" (with an "s") does not have an account? -T