cancel
Showing results for 
Search instead for 
Did you mean: 

Samba4: no way?

 
SOLVED
Go to solution
Highlighted
uxbeginner22
Trusted Contributor

Samba4: no way?

i compile fine samba 4.0.5 and 4.1.5

on hpux 11v3

But when i try to join a domain give this error

 

 

ads_krb5_mk_req: krb5_cc_get_principal failed (No such file or directory)

 Anyone got success on samba4 in hpux?

Thanks

 

 

P.S. This thread has been moved from General to HP-UX > languages. - Hp Forum Moderator

30 REPLIES 30
Highlighted
likid0
Honored Contributor

Re: Samba4: no way?

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Thanks,now another problem wont compile

 

./configure[13]: 8212 Errore del bus(coredump)
 gdb configure core
HP gdb 6.3 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.
Copyright 1986 - 2011 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
.."/usr/local/src/samba-4.1.6/configure": not in executable format: File format not recognized


warning: Unknown symbols for 'core'; use the 'symbol-file' command.
Core was generated by `python2.7'.
Program terminated with signal 10, Bus error.
BUS_ADRALN - Invalid address alignment. Please refer to the following link that helps in handling unaligned data: http://docs.hp.com/en/7730/newhelp0610/pragmas.htm#pragma-pack-ex3
#0  0x60000000c3073811 in <unknown_procedure> ()

 

Highlighted
Dennis Handly
Acclaimed Contributor

Re: Samba4: no way?

>gdb configure core

>Core was generated by 'python2.7'.

 

You need to find where python2.7 was installed and add that on the gdb command line:

gdb .../python2.7 core

 

>BUS_ADRALN - Invalid address alignment. Please refer to the following link that helps in handling unaligned data

 

This indicates an alignment trap.  All data must be on their natural alignment.

Unless steps taken on that URL are used.

 

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Is possible to solve?

 

Highlighted
Dennis Handly
Acclaimed Contributor

Re: Samba4: no way?

>Is possible to solve?

 

Well, do you really want to debug python problems?  If you want to pursue this, you need to invoke gdb correctly and get a better stack trace.

You may want to try another version?

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Solution found for python: now two problems

If i use samba4 compiled with hpux krb5-client official give me this error

 

 

Failed to join domain: failed to connect to AD: Cannot contact any KDC for requested realm

 

So i try to compile samba3 or 4 with mit kerberos

 

Samba4 give this error

 

 

Waf: Entering directory `/usr/local/src/samba-4.0.23/bin'
    Selected system MIT krb5 libraries, Heimdal use is disabled
[   8/2596] Generating VERSION
[ 531/2596] Compiling source4/dsdb/samdb/cracknames.c
In file included from ../source4/auth/kerberos/kerberos.h:29,
                 from ../source4/dsdb/samdb/cracknames.c:30:
../lib/krb5_wrap/krb5_samba.h:64:1: warning: "AP_OPTS_USE_SUBKEY" redefined
In file included from /opt/krb5/include/krb5.h:8,
                 from ../lib/replace/system/kerberos.h:33,
                 from ../source4/auth/kerberos/kerberos.h:26,
                 from ../source4/dsdb/samdb/cracknames.c:30:
/opt/krb5/include/krb5/krb5.h:1657:1: warning: this is the location of the previous definition
In file included from ../source4/auth/kerberos/kerberos.h:29,
                 from ../source4/dsdb/samdb/cracknames.c:30:
../lib/krb5_wrap/krb5_samba.h:73:2: error: #error UNKNOWN_KRB5_ADDRESS_TYPE
Waf: Leaving directory `/usr/local/src/samba-4.0.23/bin'
Build failed:  -> task failed (err #1):
        {task: cc cracknames.c -> cracknames_1.o}
Makefile:8: recipe for target 'all' failed
gmake: *** [all] Error 1

 

and samba3 this other

 

"checking configure summary... configure: error: summary failure. Aborting config"

 I use for all this line

 

 

 ./configure --prefix=/opt/samba3 --with-lockdir=/var/opt/samba3/locks --with-privatedir=/var/opt/samba3/private --sysconfdir=/etc/opt/samba3 --localstatedir=/var/opt/samba3 --with-krb5=/opt/krb5 

 

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

Solution found at least for samba3

a)Compile by yourself latest mit-krb5(i have installed it in /opt/krb5

b)configure samba(samba4 give error,samba3 is better)

use gcc from gnu and make from gnu

 

 

 ./configure --prefix=/opt/samba3 --with-lockdir=/var/opt/samba3/locks --with-privatedir=/var/opt/samba3/private --sysconfdir=/etc/opt/samba3 --localstatedir=/var/opt/samba3 --with-krb5=/opt/krb5  CPPFLAGS='-I/opt/krb5/include' LDFLAGS=' -L/opt/krb5/lib -Wl,+b,/opt/krb5/lib -lkrb5 -lk5crypto -lcom_err'

 

c)Install samba3 and configure as usual for AD

you have to edit krb5.conf and smb.conf like this

 

 

[libdefaults]
 default_realm = DOMINIO.COM
 dns_lookup_realm = true
 dns_lookup_kdc = true
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true
 allow_weak_crypto = true
 default_tgs_enctypes = rc4-hmac des-cbc-crc des-cbc-md5
 default_tkt_enctypes = rc4-hmac des-cbc-crc des-cbc-md5
 permitted_enctypes = rc4-hmac des-cbc-crc des-cbc-md5

[realms]
 =DOMINIO.COM {
 }

[domain_realm]
 .dominio.com =  DOMINIO.COM
 dominio.com = DOMINIO.COM

 

 

 

Then run smbd nmbd winbindd and join ad with net ads join,works fine.

Thanks all for help

 

 

 

 

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

I need a last little help.

How to "show" to hpux my nss library?

I use

ln -s /opt/samba3/lib/libnss_winbind.so /usr/lib/libnss_winbind.so.1

 but pwget and id don't show winbind users

Highlighted
uxbeginner22
Trusted Contributor

Re: Samba4: no way?

I make correct link but i have some problems

/usr/lib/hpux32/dld.so: Unsatisfied code symbol '_nss_winbind_initgroups_dyn' in load module '/usr/lib/hpux32/libnss_winbind.so.1'.
Killed