Hi Quanah,
Thank you for your response. I figured what you said in your
response, and I have another question about the SASL. I have a ldap testing
server, let's say the url is test.sample.net, and when I run the following
command:
ldapsearch -H ldap://test.sample.net:389 -x -b "" -s base -LLL
supportedSASLMechanisms
it returned:
dn:
supportedSASLMechanisms: DIGEST-MD5
supportedSASLMechanisms: CRAM-MD5
supportedSASLMechanisms: NTLM
then I run the command:
ldapsearch -H ldap://test.sample.net:389 -Y DIGEST-MD5
then it prompt:
SASL/DIGEST-MD5 authentication started
Please enter your password:
I give a password, then it prompt:
ldap_sasl_interactive_bind_s: Invalid credentials (49)
additional info: SASL(-13): user not found: no secret in database
so question here, what password it asked here? since it's not asking for a
DN. There could be many credentials here, will the server figure out the
user by the password input?
Thank you!
Peter
On Mon, Jan 6, 2020 at 8:17 PM Quanah Gibson-Mount <quanah(a)symas.com> wrote:
>
>
> --On Tuesday, December 31, 2019 10:44 AM -0500 Peter Sui <peters(a)qnext.com>
>
> wrote:
>
> > if I run:
> > ldapsearch -h ldap.forumsys.com -p 636 -b "" -s base "(objectClass=*)"
> -D
> > "cn=read-only-admin,dc=example,dc=com" -w password -Z
>
> It is not valid to combine startTLS with port 636. Also, you should
> update
> your options to match modern standards.
>
>
> Example against ldaps:///
>
> ldapsearch -H ldaps://ldap.forumsys.com:636
>
> as opposed to
>
> ldapsearch -h ldap.forumsys.com -p 636
>
> Example against ldap:///
>
> ldapsearch -H ldap://ldap.forumsys.com:389
>
> as opposed to
>
> ldapsearch -h ldap.forumsys.com -p 389
>
>
> I would note that the -Z(Z) options are for startTLS (generally against
> port 389). It is not valid to mix startTLS with ldaps:// URIs. You've
> not
> provided any useful information about your setup, so it's not possible to
> give you much help past that.
>
> As for your SASL question, as documented in the ldapsearch man page, you
> provide the SASL Mech as a parameter to the -Y option. For example:
>
> ldapsearch -Y GSSAPI -H ldap://ldap.forumsys.com:389
>
> Regards,
> Quanah
>
> --
>
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>
>
Hi,
I'm trying to use ldapsearch to do some tests, lets say the testing
ldap server host is: ldap.forumsys.com ,
test 1:
if I run:
ldapsearch -h ldap.forumsys.com -p 389 -b "" -s base "(objectClass=*)" -D
"cn=read-only-admin,dc=example,dc=com" -w password
it seems successful, but if I add ssl flag, like run:
ldapsearch -h ldap.forumsys.com -p 389 -b "" -s base "(objectClass=*)" -D
"cn=read-only-admin,dc=example,dc=com" -w password -Z
I got error:
ldap_start_tls: Connect error (-11)
additional info: (unknown error code)
ldap_result: Can't contact LDAP server (-1)
if I run:
ldapsearch -h ldap.forumsys.com -p 636 -b "" -s base "(objectClass=*)" -D
"cn=read-only-admin,dc=example,dc=com" -w password -Z
I got error:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
so how can I do a search with ssl?
test 2:
this is about SASL authentication. Lets say the SASL mech is DIGEST-MD5,
or EXTERNAL, or GSSAPI, what ldapsearch command
should I run? I tried many, it did not work.
Thanks!
Peter Sui
Hi, Quanah
Thanks for your info. I am forwarding my info to the mailing-list.
Cheers,
Peter
From: Quanah Gibson-Mount <quanah.gibsonmount(a)gmail.com>
Sent: Thursday, January 2, 2020 12:18 PM
To: Peter Zhu (pezhu) <pezhu(a)cisco.com>
Subject: Re: mdb_stat() crashes under DB_STALE
I would advise you use the correct methods for asking for assistance. I would start with the openldap-technical mailing list (https://www.openldap.org/lists/)
Regards,
Quanah
On Mon, Dec 23, 2019 at 3:18 PM Peter Zhu (pezhu) <pezhu(a)cisco.com<mailto:pezhu@cisco.com>> wrote:
Hi, Folks
I am using LMDB 9.24, and have experienced the following crashes:
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `/ngfw/usr/local/sf/bin/sfhassd -c /etc/sf/sfhassd.conf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 mdb_node_search (mc=mc@entry=0x2b794dbf7320, key=0x560ed4785f30, exactp=exactp@entry=0x2b794dbf730c) at mdb.c:5322
5322 mdb.c: No such file or directory.
[Current thread is 1 (LWP 12824)]
(gdb)
(gdb) bt
#0 mdb_node_search (mc=mc@entry=0x2b794dbf7320, key=0x560ed4785f30, exactp=exactp@entry=0x2b794dbf730c) at mdb.c:5322
#1 0x00002b792c57c79f in mdb_page_search (mc=0x2b794dbf74e0, key=key@entry=0x0, flags=flags@entry=2) at mdb.c:5617
#2 0x00002b792c57c960 in mdb_cursor_init (mc=mc@entry=0x2b794dbf74e0, txn=txn@entry=0x2b79600332c0, dbi=dbi@entry=5, mx=mx@entry=0x2b794dbf7670) at mdb.c:7623
#3 0x00002b792c58713d in mdb_stat (txn=0x2b79600332c0, dbi=5, arg=0x2b794dbf7a10) at mdb.c:9856
#4 0x00002b792c798c17 in LMDBCache::GetMstByType (this=0x560ed4782fb0, type=SSL_CACHE_ORIG_CERT, mst=0x2b794dbf7a10, idx=CACHE_TABLE_FIFO) at lmdbCache.cpp:1408
#5 0x00002b792c7946df in LMDBCache::InsertKeyValuePair (this=0x560ed4782fb0, type=SSL_CACHE_ORIG_CERT, key=0x2b794dbf7b60, data=0x2b794dbf7d00, idx=CACHE_TABLE_FIFO, asyncWrite=0) at lmdbCache.cpp:820
#6 0x00002b792c795aae in LMDBCache::InsertFiFoKeyValue (this=0x560ed4782fb0, type=SSL_CACHE_ORIG_CERT, appKey=0x2b794dbf7d00) at lmdbCache.cpp:1007
#7 0x00002b792c795143 in LMDBCache::InsertKeyValuePair (this=0x560ed4782fb0, type=SSL_CACHE_ORIG_CERT, key=0x2b794dbf7d00, data=0x2b794dbf7cf0) at lmdbCache.cpp:907
#8 0x00002b792c7957c4 in LMDBCache::InsertKeyValuePair (this=0x560ed4782fb0, type=SSL_CACHE_ORIG_CERT, key_=0x2b7960033abe "37364826527",
value=0x2b7960033ada "moredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredead"...) at lmdbCache.cpp:953
#9 0x00002b792c79a228 in lmdb_insert_to_cache (type=3, key=0x2b7960033abe "37364826527",
value=0x2b7960033ada "moredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredeadbeefmoremoredead"...) at lmdbCacheCWrapper.cpp:38
#10 0x0000560ed2c37155 in LocalInputThread (thread_handle=thread_handle@entry=0x2b79600008c0, arg=arg@entry=0x2b7950000b40) at local.c:473
#11 0x0000560ed2c38aa2 in _threadlist_create_stub (arg=0x2b794d3f3cc0) at ThreadList.c:174
#12 0x00002b792b8243d4 in ?? () from /lib64/libpthread.so.0
#13 0x00002b792ca8791d in clone () from /lib64/libc.so.6
Can you folks let me know if you can help. Or please forward my email to Howard Chu.
Thanks and have Happy Holidays.
Peter