[Samba] Unable to load modules for /usr/local/samba/private/sam.ldb

Kelvin Yip kelvin at icshk.com
Wed Nov 12 18:24:15 MST 2014


Hi Rowland,

Thanks. The pdbedit is working before samba-rc1. So, I think it is a bug.
So, is there any method to make pdbedit working ? We have any jobs depends
on it.
Is there any method to unlock users using command line in samba V4.2 rc2?

Best,
Kelvin Yip

-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]
On Behalf Of Rowland Penny
Sent: Wednesday, November 12, 2014 7:03 PM
To: samba at lists.samba.org
Subject: Re: [Samba] Unable to load modules for
/usr/local/samba/private/sam.ldb

On 12/11/14 08:11, Kelvin Yip wrote:
> Hi all,
>
>   
>
> Finally, I have upgrade to Samba4.2 rc2 and run samba-tool dbcheck 
> -fix. The problem seems go away.
>
> However, a new problem created. I cannot use pdbedit anymore.
>
>   
>
> Here is the output when I run the command.
>
> [root at linux01 samba-4.2.0rc2]# pdbedit -Lv kelvinyip
>
> pdb_set_pw_history: data_blob_talloc() failed!
>
> Username not found!
>
>   
>
> From: Kelvin Yip [mailto:kelvin at icshk.com]
> Sent: Wednesday, November 12, 2014 3:26 PM
> To: 'samba at lists.samba.org'
> Subject: Unable to load modules for /usr/local/samba/private/sam.ldb
>
>   
>
> Hi all,
>
>   
>
> My samba 4.2 server sudden display the following error message after I 
> issue the command 
> <https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ca
> d=rja& 
> uact=8&ved=0CCcQrAIoAjAA&url=https%3A%2F%2Flists.samba.org%2Farchive%2
> Fsamba 
> %2F2013-November%2F176857.html&ei=BQFjVK3PMoPTmgWbxYHAAw&usg=AFQjCNGDX
> vPcdfZ
> a4EkBK2usWnKGv-A6JA> samba_upgradedns --dns-backend=BIND9_DLZ to sync 
> a4EkBK2usWnKGv-A6JA> the
> hardlinks. Now I am not able to open "Active Directory Users and
Computers".
> Please help.
>
>   
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383294,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module subtree_delete 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383328,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module operational 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383774,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module aclread 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.384298,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module acl initialization 
> failed
> : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.384799,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module descriptor 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.385318,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module objectclass 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.385832,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module asq initialization 
> failed
> : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.386339,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module server_sort 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.386762,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module paged_results 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.387242,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module dirsync 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.387682,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module schema_load 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388109,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module rootdse 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388493,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module samba_dsdb 
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388899,  0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: Unable to load modules for
> /usr/local/samba/private/sam.ldb: Failed to search for partition base 
> DC=ICSHK,DC=LOCAL in new partition at
> /usr/local/samba/private/sam.ldb.d/DC=ICSHK,DC=LOCAL.ldb: ldb_wait:
> Operations error (1)
>
>   
>
> The following is the hard link info of both directories:
>
> [root at linux01 local]# ls -ali /usr/local/samba/private/dns/sam.ldb.d
>
> total 25132
>
> 28205291 drwxrwx--- 2 root named    4096 Nov 12 15:15 .
>
> 28205290 drwxrwx--- 3 root named    4096 Nov 12 15:15 ..
>
> 28188902 -rw-rw---- 1 root named 7024640 Nov 12 15:15 
> CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28187196 -rw-rw---- 1 root named 8499200 Nov 12 15:15 
> CN=SCHEMA,CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188938 -rw-rw---- 2 root named 4247552 Nov 12 15:18 
> DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188939 -rw-rw---- 2 root named 4247552 Oct 12 17:25 
> DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28186740 -rw-rw---- 1 root named 1286144 Nov 12 15:15 
> DC=ICSHK,DC=LOCAL.ldb
>
> 28187344 -rw-rw---- 2 root named  421888 Nov 12 15:18 metadata.tdb
>
> [root at linux01 local]# ls -ali /usr/local/samba/private/sam.ldb.d
>
> total 39576
>
> 28205293 drwxr-x--- 2 root named     4096 Nov 12 15:15 .
>
> 28197006 drwxr-xr-x 7 root wheel     4096 Nov 12 15:20 ..
>
> 28188936 -rw------- 1 root wheel 14307328 Oct 12 17:25 
> CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188937 -rw------- 1 root wheel 10383360 Oct 12 17:25 
> CN=SCHEMA,CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188938 -rw-rw---- 2 root named  4247552 Nov 12 15:18 
> DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188939 -rw-rw---- 2 root named  4247552 Oct 12 17:25 
> DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188930 -rw------- 1 root wheel  6909952 Nov 12 15:21 
> DC=ICSHK,DC=LOCAL.ldb
>
> 28187344 -rw-rw---- 2 root named   421888 Nov 12 15:18 metadata.tdb
>
>   
>
> Best,
>
> Kelvin Yip
>
Hi, pdbedit works on a local database, not AD, so if your users haven't
logged into the machine their details won't be in the database.

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list