HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

samba net ads status coredump

 
VINCENT_58
Occasional Visitor

samba net ads status coredump

Hello,


This command coredump :

/opt/samba/bin/net ads status
/usr/lib/dld.sl: Unresolved symbol: krb5_cc_close (code) from /opt/samba/bin/net
Abort(coredump)


but this command is ok :

/opt/samba/bin/net ads info
LDAP server: A.B.C.D
LDAP server name: host.domain.fr
Realm: DOMAIN.FR Bind Path: dc=DOMAIN,dc=FR
LDAP port: 389
Server time: Wed, 10 Feb 2010 10:40:30 MET
KDC server: A.B.C.D
Server time offset: 0


any idea please ?


9 REPLIES
smatador
Honored Contributor

Re: samba net ads status coredump

Bonjour,
One idea is
$ what /usr/lib/dld.sl
$ what /opt/samba/bin/net
$ ldd -v /opt/samba/bin/net
perhaps you have a link failure with krb5-client, so
$ nm /usr/lib/hpux32/libkrb5.so| grep krb5_cc_close
better to see where is the code
for i in $(ldd /opt/samba/bin/net | awk '{print $3 }')
do
echo $i;
nm $i| grep krb5_cc_close
done
If you have it, check for updating perhaps krb5, if no install it
HTH
VINCENT_58
Occasional Visitor

Re: samba net ads status coredump

hi thank you, here are the results :


what /usr/lib/dld.sl
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.63 071126

what /opt/samba/bin/net
/opt/samba/bin/net:
$Revision: 92453-07 linker linker crt0.o B.11.45 050727 $
HP CIFS Server: A.02.04a based on Samba 3.0.30


ldd -v /opt/samba/bin/net

find library=/usr/lib/libc.2; required by /opt/samba/bin/net
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libldap.sl; required by /opt/samba/bin/net
/usr/lib/libldap.sl => /usr/lib/libldap.sl

find library=/opt/ldapux/lib/libssl3.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libssl3.sl => /opt/ldapux/lib/libssl3.sl

find library=/usr/lib/librt.2; required by /opt/ldapux/lib/libssl3.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libm.2; required by /opt/ldapux/lib/libssl3.sl
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libpthread.1; required by /opt/ldapux/lib/libssl3.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/opt/ldapux/lib/libnspr4.sl; required by /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/usr/lib/libc.2; required by /opt/ldapux/lib/libnspr4.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libm.2; required by /opt/ldapux/lib/libnspr4.sl
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libdld.2; required by /opt/ldapux/lib/libnspr4.sl
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/librt.2; required by /opt/ldapux/lib/libnspr4.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libpthread.1; required by /opt/ldapux/lib/libnspr4.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/opt/ldapux/lib/libplds4.sl; required by /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl

find library=/opt/ldapux/lib/libnspr4.sl; required by /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/opt/ldapux/lib/libplc4.sl; required by /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl

find library=/opt/ldapux/lib/libnspr4.sl; required by /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/opt/ldapux/lib/libnss3.sl; required by /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl

find library=/usr/lib/librt.2; required by /opt/ldapux/lib/libnss3.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libm.2; required by /opt/ldapux/lib/libnss3.sl
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libpthread.1; required by /opt/ldapux/lib/libnss3.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/opt/ldapux/lib/libnspr4.sl; required by /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/opt/ldapux/lib/libplds4.sl; required by /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl

find library=/opt/ldapux/lib/libplc4.sl; required by /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl

find library=/opt/ldapux/lib/libsoftokn3.sl; required by /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl

find library=/usr/lib/librt.2; required by /opt/ldapux/lib/libsoftokn3.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libm.2; required by /opt/ldapux/lib/libsoftokn3.sl
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libpthread.1; required by /opt/ldapux/lib/libsoftokn3.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/opt/ldapux/lib/libnspr4.sl; required by /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/opt/ldapux/lib/libplds4.sl; required by /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl

find library=/opt/ldapux/lib/libplc4.sl; required by /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl

find library=/opt/ldapux/lib/libsoftokn3.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl

find library=/opt/ldapux/lib/libplds4.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl

find library=/opt/ldapux/lib/libplc4.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl

find library=/opt/ldapux/lib/libnss3.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl

find library=/opt/ldapux/lib/libnspr4.sl; required by /usr/lib/libldap.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl

find library=/usr/lib/libc.2; required by /usr/lib/libldap.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libm.2; required by /usr/lib/libldap.sl
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libdld.2; required by /usr/lib/libldap.sl
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/librt.2; required by /usr/lib/libldap.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libk5crypto.sl; required by /opt/samba/bin/net
/usr/lib/libk5crypto.sl => /usr/lib/libk5crypto.sl

find library=/usr/lib/libkrb5.sl; required by /opt/samba/bin/net
/usr/lib/libkrb5.sl => /usr/lib/libkrb5.sl

find library=/usr/lib/libcom_err.sl; required by /usr/lib/libkrb5.sl
/usr/lib/libcom_err.sl => /usr/lib/libcom_err.sl

find library=/usr/lib/libk5crypto.sl; required by /usr/lib/libkrb5.sl
/usr/lib/libk5crypto.sl => /usr/lib/libk5crypto.sl

find library=/usr/lib/libgssapi_krb5.sl; required by /opt/samba/bin/net
/usr/lib/libgssapi_krb5.sl => /usr/lib/libgssapi_krb5.sl

find library=/usr/lib/libcom_err.sl; required by /usr/lib/libgssapi_krb5.sl
/usr/lib/libcom_err.sl => /usr/lib/libcom_err.sl

find library=/usr/lib/libk5crypto.sl; required by /usr/lib/libgssapi_krb5.sl
/usr/lib/libk5crypto.sl => /usr/lib/libk5crypto.sl

find library=/usr/lib/libkrb5.sl; required by /usr/lib/libgssapi_krb5.sl
/usr/lib/libkrb5.sl => /usr/lib/libkrb5.sl

find library=/cifsdep/lib/libcharset.sl; required by /opt/samba/bin/net
/cifsdep/lib/libcharset.sl => /opt/samba/lib/libcharset.sl

find library=/usr/lib/libc.2; required by /opt/samba/lib/libcharset.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/cifsdep/lib/libiconv.sl; required by /opt/samba/bin/net
/cifsdep/lib/libiconv.sl => /opt/samba/lib/libiconv.sl

find library=/usr/lib/libc.2; required by /opt/samba/lib/libiconv.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libnsl.1; required by /opt/samba/bin/net
/usr/lib/libnsl.1 => /usr/lib/libnsl.1

find library=/usr/lib/libxti.2; required by /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2

find library=/usr/lib/libsec.2; required by /opt/samba/bin/net
/usr/lib/libsec.2 => /usr/lib/libsec.2

find library=/usr/lib/libm.2; required by /usr/lib/libsec.2
/usr/lib/libm.2 => /usr/lib/libm.2



and :

nm /usr/lib/hpux32/libkrb5.so| grep krb5_cc_close
nm: /usr/lib/hpux32/libkrb5.so: cannot open


and :

swlist -l product | grep -i krb
KRB-Support B.11.11 Kerberos Support for HP-UX and DCE
KRB5-Client B.11.11 Kerberos V5 Client Version 1.0
PHSS_39774 1.0 KRB5-Client Version 1.0 cumulative patch
smatador
Honored Contributor

Re: samba net ads status coredump

Hi,
You have an 11.11... my
As I saw, all lib is find and you have the last patch for 11.11. The lib /usr/lib/hpux32/libkrb5.so is for 11.23 and 11.31. Check with the output of ldd the nm of krb5_cc_close for the other lib
Another idea with this thread http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1292531
Test the command with tusc and swverify all.
HTH
VINCENT_58
Occasional Visitor

Re: samba net ads status coredump

I'am not sure to understand your response :

nm /opt/samba/bin/net | grep -i krb5_cc_close
krb5_cc_close | |undef |code |
krb5_cc_close | 782644|uext |stub |
krb5_cc_close | 1754684|uext |stub |
krb5_cc_close | 2586720|uext |stub |


Re: samba net ads status coredump

>I'm not sure to understand your response:
nm /opt/samba/bin/net | grep -i krb5_cc_close

This just says that krb5_cc_close is an unsat in that shlib and you need to look elsewhere.

You can use this to search mass quantities:
nm -xAN /opt/samba/lib/* ... | grep krb5_cc_close

>smatador: Another idea with this thread http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1292531

This doesn't look related. That one has a software error. This one has a misconfigured or missing shlib.
VINCENT_58
Occasional Visitor

Re: samba net ads status coredump



nm -xAN /opt/samba/lib/* | grep krb5_cc_close
nm: /opt/samba/lib/charset.alias: bad magic
/opt/samba/lib/libnss_wins.sl:krb5_cc_close|0x000610d8|uext |stub |
/opt/samba/lib/libnss_wins.sl:krb5_cc_close|0x00106f38|uext |stub |
/opt/samba/lib/libnss_wins.sl:krb5_cc_close| |undef |code |

ll /opt/samba/lib/ | more
total 5634
-rwxr-xr-x 1 root sys 638 May 14 2009 charset.alias
-rwxr-xr-x 1 root sys 12288 May 14 2009 libcharset.sl
-rwxr-xr-x 1 root sys 991232 May 14 2009 libiconv.sl
-rwxr-xr-x 1 root sys 81920 May 14 2009 libnss_winbind.sl
-rwxr-xr-x 1 root sys 1777664 May 14 2009 libnss_wins.sl
-rwxr-xr-x 1 root sys 20480 May 14 2009 rid.sl

Re: samba net ads status coredump

>/opt/samba/lib/libnss_wins.sl:krb5_cc_close|0x000610d8|uext |stub

This shlib also has unsats but no definitions.
VINCENT_58
Occasional Visitor

Re: samba net ads status coredump

i'am sorry but what can i do ?

Re: samba net ads status coredump

>I'm sorry but what can i do?

Search more shlibs. Make sure you have a correct and consistent set of samba products.