Anoop T S
2018-Aug-22 10:41 UTC
[Samba] ERROR: Initialization failed for alloc backend tdb, deferred!
Hi, I tired to add second AD domain to provide access to my samba share from RHEL5u3 server. Share access is working for primary domain and still users from second domain doesn't have access to shares. wbinfo -u shows user details from both domain. I could see below errors popped up in logs. Updated krb5.conf with both domians realms. do we need to update any additional steps in smb.conf for second domain? Aug 16 18:39:33 enebrisftp01 smbd[26235]: read_data: read failure for 4 bytes to client 10.250.5.107. Error = Connection reset by peer Aug 16 18:41:47 enebrisftp01 smbd[26470]: [2018/08/16 18:41:47, 0] lib/util_sock.c:read_data(534) Aug 16 18:41:47 enebrisftp01 smbd[26470]: read_data: read failure for 4 bytes to client 10.250.5.107. Error = Connection reset by peer Aug 16 18:49:01 enebrisftp01 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory Aug 16 18:49:48 enebrisftp01 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory Aug 16 18:51:32 enebrisftp01 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory Aug 16 19:07:07 enebrisftp01 winbindd[28351]: [2018/08/16 19:07:07, 0] nsswitch/winbindd_cache.c:initialize_winbindd_cache(2229) Aug 16 19:07:07 enebrisftp01 winbindd[28351]: initialize_winbindd_cache: clearing cache and re-creating with version number 1 Aug 16 19:31:09 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:09, 0] nsswitch/idmap.c:idmap_init(772) Aug 16 19:31:09 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend tdb, deferred! Aug 16 19:31:10 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:10, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:31:10 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:31:10 enebrisftp01 smbd[30055]: [2018/08/16 19:31:10, 0] auth/auth_util.c:create_builtin_administrators(844) Aug 16 19:31:10 enebrisftp01 smbd[30055]: create_builtin_administrators: Failed to create Administrators Aug 16 19:31:10 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:10, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:31:10 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:31:10 enebrisftp01 smbd[30055]: [2018/08/16 19:31:10, 0] auth/auth_util.c:create_builtin_users(810) Aug 16 19:31:10 enebrisftp01 smbd[30055]: create_builtin_users: Failed to create Users Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:31:22 enebrisftp01 smbd[30055]: [2018/08/16 19:31:22, 0] auth/auth_util.c:create_builtin_administrators(844) Aug 16 19:31:22 enebrisftp01 smbd[30055]: create_builtin_administrators: Failed to create Administrators Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:31:22 enebrisftp01 smbd[30055]: [2018/08/16 19:31:22, 0] auth/auth_util.c:create_builtin_users(810) Aug 16 19:31:22 enebrisftp01 smbd[30055]: create_builtin_users: Failed to create Users Aug 16 19:31:33 enebrisftp01 smbd[29801]: [2018/08/16 19:31:33, 0] lib/util_sock.c:read_data(534) Aug 16 19:31:33 enebrisftp01 smbd[29801]: read_data: read failure for 4 bytes to client 10.250.4.107. Error = Connection reset by peer Aug 16 19:32:32 enebrisftp01 smbd[30055]: [2018/08/16 19:32:32, 0] lib/util_sock.c:read_data(534) Aug 16 19:32:32 enebrisftp01 smbd[30055]: read_data: read failure for 4 bytes to client 10.250.4.108. Error = Connection reset by peer Aug 16 19:37:21 enebrisftp01 winbindd[30056]: [2018/08/16 19:37:21, 0] nsswitch/idmap.c:idmap_alloc_init(820) Aug 16 19:37:21 enebrisftp01 winbindd[30056]: ERROR: Initialization failed for alloc backend, deferred! Aug 16 19:37:21 enebrisftp01 winbindd[30056]: [2018/08/16 19:37:21, 0] nsswitch/idmap.c:idmap_alloc_init(820) On Wed, Aug 22, 2018 at 4:04 PM Anoop T S <anoop.ts.2005 at gmail.com> wrote:> Hi, > I tired to add second AD domain to provide access to my samba share from > RHEL5u3 server. Share access is working for primary domain and still users > from second domain doesn't have access to shares. wbinfo -u shows user > details from both domain. I could see below errors popped up in logs. > Updated krb5.conf with both domians realms. do we need to update any > additional steps in smb.conf for second domain? > > Aug 16 18:39:33 enebrisftp01 smbd[26235]: read_data: read failure for 4 > bytes to client 10.250.5.107. Error = Connection reset by peer > Aug 16 18:41:47 enebrisftp01 smbd[26470]: [2018/08/16 18:41:47, 0] > lib/util_sock.c:read_data(534) > Aug 16 18:41:47 enebrisftp01 smbd[26470]: read_data: read failure for 4 > bytes to client 10.250.5.107. Error = Connection reset by peer > Aug 16 18:49:01 enebrisftp01 restorecond: Will not restore a file with > more than one hard link (/etc/resolv.conf) No such file or directory > Aug 16 18:49:48 enebrisftp01 restorecond: Will not restore a file with > more than one hard link (/etc/resolv.conf) No such file or directory > Aug 16 18:51:32 enebrisftp01 restorecond: Will not restore a file with > more than one hard link (/etc/resolv.conf) No such file or directory > Aug 16 19:07:07 enebrisftp01 winbindd[28351]: [2018/08/16 19:07:07, 0] > nsswitch/winbindd_cache.c:initialize_winbindd_cache(2229) > Aug 16 19:07:07 enebrisftp01 winbindd[28351]: initialize_winbindd_cache: > clearing cache and re-creating with version number 1 > Aug 16 19:31:09 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:09, 0] > nsswitch/idmap.c:idmap_init(772) > Aug 16 19:31:09 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend tdb, deferred! > Aug 16 19:31:10 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:10, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:31:10 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:31:10 enebrisftp01 smbd[30055]: [2018/08/16 19:31:10, 0] > auth/auth_util.c:create_builtin_administrators(844) > Aug 16 19:31:10 enebrisftp01 smbd[30055]: create_builtin_administrators: > Failed to create Administrators > Aug 16 19:31:10 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:10, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:31:10 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:31:10 enebrisftp01 smbd[30055]: [2018/08/16 19:31:10, 0] > auth/auth_util.c:create_builtin_users(810) > Aug 16 19:31:10 enebrisftp01 smbd[30055]: create_builtin_users: Failed > to create Users > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:31:22 enebrisftp01 smbd[30055]: [2018/08/16 19:31:22, 0] > auth/auth_util.c:create_builtin_administrators(844) > Aug 16 19:31:22 enebrisftp01 smbd[30055]: create_builtin_administrators: > Failed to create Administrators > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: [2018/08/16 19:31:22, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:31:22 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:31:22 enebrisftp01 smbd[30055]: [2018/08/16 19:31:22, 0] > auth/auth_util.c:create_builtin_users(810) > Aug 16 19:31:22 enebrisftp01 smbd[30055]: create_builtin_users: Failed > to create Users > Aug 16 19:31:33 enebrisftp01 smbd[29801]: [2018/08/16 19:31:33, 0] > lib/util_sock.c:read_data(534) > Aug 16 19:31:33 enebrisftp01 smbd[29801]: read_data: read failure for 4 > bytes to client 10.250.4.107. Error = Connection reset by peer > Aug 16 19:32:32 enebrisftp01 smbd[30055]: [2018/08/16 19:32:32, 0] > lib/util_sock.c:read_data(534) > Aug 16 19:32:32 enebrisftp01 smbd[30055]: read_data: read failure for 4 > bytes to client 10.250.4.108. Error = Connection reset by peer > Aug 16 19:37:21 enebrisftp01 winbindd[30056]: [2018/08/16 19:37:21, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > Aug 16 19:37:21 enebrisftp01 winbindd[30056]: ERROR: Initialization > failed for alloc backend, deferred! > Aug 16 19:37:21 enebrisftp01 winbindd[30056]: [2018/08/16 19:37:21, 0] > nsswitch/idmap.c:idmap_alloc_init(820) > -- > Anoop.T S > >-- Anoop.T S
Rowland Penny
2018-Aug-22 11:15 UTC
[Samba] ERROR: Initialization failed for alloc backend tdb, deferred!
On Wed, 22 Aug 2018 16:11:22 +0530 Anoop T S via samba <samba at lists.samba.org> wrote:> Hi, > I tired to add second AD domain to provide access to my samba share > from RHEL5u3 server. Share access is working for primary domain and > still users from second domain doesn't have access to shares. wbinfo > -u shows user details from both domain. I could see below errors > popped up in logs. Updated krb5.conf with both domians realms. do we > need to update any additional steps in smb.conf for second domain? >Well, if this was a Debian based machine, I would run 'dist-upgrade' ;-) Unless you missed it, RHEL5 is dead and should no longer be used, unless you have installed the last red-hat Samba packages, you will be using Samba 3.0.x packages (which again are dead). If you have installed the last available red-hat RHEL5 Samba packages, then it will be a 3.6.x version and guess what, this version is dead as well. So, as both your distro and Samba version are dead, you don't really have any other option, you will have to upgrade. If your problem is a bug (it may not be, it could be a lack of a feature or features), you have absolutely no chance of getting anybody to fix it, partially because it will probably have been fixed in a later version, but mainly because your distro and Samba version are dead. Sorry if this upsets you, but it is better to tell the truth at the start. Rowland