1832367 Members
3020 Online
110041 Solutions
New Discussion

Re: Samba4: no way?

 
SOLVED
Go to solution
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

i found the library with undefined symbol

 

[27]     |            0|       0|FUNC |GLOB |0|   UNDEF|./winbind_nss_solaris.o:_nss_winbind_initgroups_dyn
[185]    |            0|       0|FUNC |GLOB |0|   UNDEF|./libnss_winbind.so:_nss_winbind_initgroups_dyn

 

I don't understand why link a solaris call

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

I have removed from configure the line

 

 WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o"

 Compile OK

 winbindd -D OK

 wbinfo -g ,-u  -i OK

 wbinfo -i userofsamba OK

 id userofsamba...NO :(

 

Of course i have set nsswitch for winbind

Dennis Handly
Acclaimed Contributor

Re: Samba4: no way?

>I found the library with undefined symbol

 

These are references not definitions.  But winbind_nss_solaris.c is the file with the problem.

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Found a solution for missed link

 

 nm -n /usr/lib/hpux32/libnss_winbind.so.1*|grep _nss_winbind_initgroups_dyn
[217]    |     67179808|     752|FUNC |GLOB |0|   .text|_nss_winbind_initgroups_dyn

 On configure script of samba i have put the same line of solaris

 

     *solaris*)
                # Solaris winbind client is implemented as a wrapper around
                # the Linux version.
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
                    ../nsswitch/winbind_nss_linux.o"
                ;;
        *hpux11*)
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
                    ../nsswitch/winbind_nss_linux.o"

 

 

But nsswitch still doesn't see the winbind users,lsof report library is loaded

 

 

lsof |grep libnss_winbind
smbd      29677    root  mem    REG            128,0x5    148984  82433 /opt/samba3/lib/libnss_winbind.so
smbd      29678    root  mem    REG            128,0x5    148984  82433 /opt/samba3/lib/libnss_winbind.so
winbindd  29822    root  mem    REG            128,0x7    148984  43195 /usr/lib/hpux32/libnss_winbind.so.1
winbindd  29823    root  mem    REG            128,0x7    148984  43195 /usr/lib/hpux32/libnss_winbind.so.1

 

 

passwd:       files winbind ldap 
group:        files winbind ldap 
hosts:        dns files wins
networks:     files ldap
protocols:    files ldap
rpc:          files ldap
publickey:    ldap [NOTFOUND=return] files
netgroup:     files ldap
automount:    files ldap
aliases:      files
services:     files ldap
[root@hpux2 /]# /opt/samba3/bin/wbinfo -i giuseppe
giuseppe:*:10000:10000:giuseppe:/home/giuseppe:/usr/local/bin/bash
[root@hpux2 /]# id giuseppe
Impossibile trovare l'utente giuseppe

 

uxbeginner22
Trusted Contributor
Solution

Re: Samba4: no way?

Finally i found the "true" solution

I try hp cifs server in a clean 11.23(the other was 11.31)

machine..and work perfect.

Id,wbinfo,all without recompiling nothing

On 11.31 only old cifs-server A.03.02.00

works with samba4 server ad

 

uxbeginner22
Trusted Contributor

Re: Samba4: no way?

If someone interested i found a solution for some bad problems of

conversion(winbind error convert_string_talloc: Conversion error: Illegal multibyte sequence,etc) 

,export LANG=C (you can put on init script) before run samba solve all.

I was using utf8 before.