Visit The New, Modern Unix Linux Community


Hpux and samba4 ad


 
Thread Tools Search this Thread
Operating Systems HP-UX Hpux and samba4 ad
# 1  
Hpux and samba4 ad

I'm tryng to setup hpux samba,i use this smb.conf

Code:
    [global]
            workgroup = DOMINIO
        realm = DOMINIO.COM
        server string = ""
        netbios name = HPUX2
            security = ads
            hosts allow = 192.168.0.0/24 127.0.0.1
            debug level = 10
            log file = /var/opt/samba4/log/%m.log
            max log size = 50
            log level = 1
            syslog = 0
            template shell = /usr/local/bin/bash
            template homedir = /home/%U
            winbind separator = /
            winbind enum users = yes
            winbind enum groups = yes
            winbind use default domain = yes
            encrypt passwords = yes
            invalid users = root
            local master = yes
            domain master = no
            preserve case = yes
            short preserve case = no
            default case = lower
            case sensitive = no
          map to guest = never
           restrict anonymous = 2
        hide dot files = yes
        guest account = smbnull
    
    
    [Pubblica]
       comment = Dir pubblica
       browseable = yes
       guest ok = yes
       guest only = no
       public = yes
       path = /var/pubblica
       writable = yes

When i try to join AD(samba4) it create the hpux computer on computers ou
of AD,but fail with this error

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

Kinit works fine,and krb5.conf are ok
I see also spn entries were created
but wbinfo -g and wbinfo -u report fail
On server log i see
Code:
      receive_smb_raw_talloc failed for client ipv4:192.168.0.16:51845 read error = NT_STATUS_END_OF_FILE.

I try both samba4 compiled by me and cifs-server of hpux

For help this is the krb5.conf
Code:
    [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
    
    [realms]
     DOMINIO.COM = {
     }
    
    [domain_realm]
     .dominio.com = DOMINIO.COM
     dominio.com = DOMINIO.COM

Someone can help?Thanks

---------- Post updated 25-12-14 at 07:53 PM ---------- Previous update was 24-12-14 at 08:09 PM ----------

Solution found,compiled krb5 mit and samba3
now join the ads and show winbind users
Only one problem

If i try to load winbind

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

I have copied nss_winbind.so from source in
/usr/lib/hpux32/libnss_winbind.so.1
# 2  
Solution found for missing symbol,must modify configure of samba hpux line must be

Code:
        *hpux11*)
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
                    ../nsswitch/winbind_nss_linux.o"

instead of
Code:
        *hpux11*)
                NSSSONAMEVERSIONSUFFIX=".1"
                WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o"


Compile fine,launch winbindd ok,but id doensn't report the user (same thing for pwget),i have configured good nsswitch.conf probably something bad in nsswitch wrapper code.
I will wait next release..
Smilie
# 3  
Solution found: work fine (the official hp cifs server)
only on 11.23,probably kerberos of 11.31 doesn't like
samba4 kerberos server.
This User Gave Thanks to Linusolaradm1 For This Post:

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #632
Difficulty: Easy
Apple development of what would become the iPhone began in 2004.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hpux

Hello All Why is hpux is not much spoken in the unix/Linux platform. what is the disadvantes in HPUX Thanks, VJ (1 Reply)
Discussion started by: Vijaykannan T
1 Replies

2. HP-UX

HPux 11.23: packages?

This site,with good packages drop support for 11.23 HP-UX Porting and Archiving Centre | What´s New? Someone know a good site with packages? Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

3. Solaris

Solaris11 and samba4 dc

Simple question. I have a solaris11 test machine When i try to join a samba4 domain give me this error "kinit succeeded but ads_sasl_spnego_krb5_bind failed: invalid credentials" When i join a w2003r2 AD..works perfect I check network ok,dig,reverse ok.. my conf file is ... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

4. HP-UX

How swap used in HPUX ?

Please clarify Version: HP-UX <hostname> B.11.31 U ia64 unlimited-user license Physical Configured is 36 GB CPU info: 4 Intel(R) Itanium 2 9000 series processors (1.6 GHz, 24 MB) 533 MT/s bus, CPU version C2 12 logical processors Memory: 36813 MB (35.95 GB)... (10 Replies)
Discussion started by: sidharthmellam
10 Replies

5. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

6. Shell Programming and Scripting

hpux vi

Hello. I cant figure out how can i move entire row up , so it pasted on the one above at the end , or to do that for one character. In notepads,word, or some other text editors we would do that with backspace button. Example. Content of my text file is this : I am trying to do that. And... (2 Replies)
Discussion started by: tonijel
2 Replies

7. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

8. UNIX for Dummies Questions & Answers

New to HPUX

Hi, I am a SAP Basis admin recentely been asked to administer a HPUX server. Could someone recommend some good study material to learn with the Sap prespective. -carry (1 Reply)
Discussion started by: carryclare
1 Replies

9. HP-UX

HPUX any help

:( i got couple of weeks ago a : HP Visualize workstation , model B100. everithing is ok in the box the only problem is that i 'am not familiar with this operational sys, and i try to uninstall and see if i can get on it windows net server 64 bit. or any other 64 bit operational sys that i'll... (1 Reply)
Discussion started by: newbird
1 Replies

10. UNIX for Dummies Questions & Answers

HPUX 10.20 et HPUX 11

Is there any problems of binaries compatibility between HPUX 10.20 et 11 ? (2 Replies)
Discussion started by: Olivier
2 Replies

Featured Tech Videos