Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: gabor.strama on March 09, 2023, 09:22:40 pm

Title: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: gabor.strama on March 09, 2023, 09:22:40 pm
Hi!

Somebody can help?
It is looks like the ldbsearch has been changed and a newer version is not working properly:
This command has been failed:
 ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr

If I modified the --debug-stderr to --debug-stdout in that case the command is running smoothly.

PLS Some body help because the server what I used is not started.

BR,
GáborS
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: gabor.strama on March 09, 2023, 09:25:08 pm
This is the output with the --debug-stdout:

lpcfg_do_global_parameter: WARNING: The "lanman auth" option is deprecated
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
# record 1

PLS I need a help

BR,
GáborS
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: javieroa on March 10, 2023, 11:11:16 am
Hi, i´m in the same situation since yesterday. Exactly the same error in my DNS Zntyal Server
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: markus.neubauer on March 10, 2023, 12:10:36 pm
This is a duplicate from https://forum.zentyal.org/index.php/topic,35559.msg115472.html#msg115472

English transcript:
With a security update of SAMBA (2:4.15.13+dfsg-0ubuntu0.20.04.1) a change occured. You may see some entries like:
Code: [Select]
root command ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr 2>/dev/null ... failed.
You can solve it in /usr/share/perl5/EBox/Ldap.pm, lines 250 and 466:
within the line my $cmd remove the entries '--debug-stderr ', these are not supported any more. After the change restart the server.
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: Deslack on March 10, 2023, 01:04:44 pm
https://github.com/zentyal/zentyal/compare/master...Deslack:zentyal:patch-1#diff-ff17a008852abbbb52bac92e18e00a344324e3dd95f7778f5d2173bae417e44b
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: dzidek23 on March 10, 2023, 01:11:06 pm
https://github.com/zentyal/zentyal/compare/master...Deslack:zentyal:patch-1#diff-ff17a008852abbbb52bac92e18e00a344324e3dd95f7778f5d2173bae417e44b

Great idea Deslack however, I suspect this will never get merged.. Look at https://github.com/zentyal/zentyal/pulls?q=is%3Apr+is%3Aclosed

Last accepted PR was late 2020 so we are now waiting for Zentyal 8 (supposedly to be released around May)

More importantly, Thank you @markus.neubauer and @Deslack
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: gabor.strama on March 10, 2023, 01:15:25 pm
Dear All!

Thank you for your quick help!

You save my days!

The solution is worked for me!

THX again!

BR,
GáborS
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: Deslack on March 10, 2023, 01:19:00 pm
https://github.com/zentyal/zentyal/compare/master...Deslack:zentyal:patch-1#diff-ff17a008852abbbb52bac92e18e00a344324e3dd95f7778f5d2173bae417e44b

Great idea Deslack however, I suspect this will never get merged.. Look at https://github.com/zentyal/zentyal/pulls?q=is%3Apr+is%3Aclosed

Last accepted PR was late 2020 so we are now waiting for Zentyal 8 (supposedly to be released around May)

Well at least it's out there.
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: javieroa on March 10, 2023, 01:31:30 pm
One hundred million of thanks. You have saved many people  ;D ;D ;D ;D
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: Daniel Joven on March 10, 2023, 07:40:53 pm
Hi,

The bug has been solved as the below link explains, tomorrow morning a 'zentyal-samba' package will be released.

* https://github.com/zentyal/zentyal/issues/2121#issuecomment-1464197003

We are sorry for the inconvenience.

Best regards, Daniel Joven.
Title: Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
Post by: Deslack on March 12, 2023, 12:49:09 am

Thank you all for working to fix this issue promptly.