Author Topic: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr  (Read 1386 times)

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
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

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
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

javieroa

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi, i´m in the same situation since yesterday. Exactly the same error in my DNS Zntyal Server

markus.neubauer

  • Zen Monk
  • **
  • Posts: 54
  • Karma: +8/-0
    • View Profile
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.
« Last Edit: March 10, 2023, 12:20:37 pm by markus.neubauer »


dzidek23

  • Zen Apprentice
  • *
  • Posts: 45
  • Karma: +1/-0
    • View Profile
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
« Last Edit: March 10, 2023, 02:40:35 pm by dzidek23 »

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
Dear All!

Thank you for your quick help!

You save my days!

The solution is worked for me!

THX again!

BR,
GáborS

Deslack

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +4/-0
    • View Profile
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.

javieroa

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
One hundred million of thanks. You have saved many people  ;D ;D ;D ;D

Daniel Joven

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 43
  • Karma: +21/-0
    • View Profile
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.

Deslack

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +4/-0
    • View Profile
Re: ldbsearch -H /var/lib/samba/private/sam.ldb -s base 'dn' --debug-stderr
« Reply #10 on: March 12, 2023, 12:49:09 am »

Thank you all for working to fix this issue promptly.