[Samba] AIX 7.1 Winbind Module Problems

Peter Waeckerle peter.waeckerle at ch.ibm.com
Fri Feb 28 08:06:02 MST 2014


Hi Greg

> I managed to compile 4.14 but the smbd daemon dies without errors in the
samba logs....

If there are any printers defined on your system you could check
https://bugzilla.samba.org/show_bug.cgi?id=9126

Our last successful builds with gcc were 3.6.5 and 4.0.3 on AIX 5.3 about
one year ago.

On AIX 7.1 I spent a lot of time trying to build with gcc, but was not
successful. But I'm mainly a sysadmin, not a programmer (yet ;- ).

If you don't need AD support I suggest you try with xlc. You can download a
3-month trial for free. You probably will get better results with it. Be
sure to apply patches for bugs 9557 and 9911.


Regards
Peter




From:	Greg Cushing <Greg_Cushing at nrfdist.com>
To:	samba at lists.samba.org
Date:	28.02.2014 01:12
Subject:	[Samba] AIX 7.1 Winbind Module Problems
Sent by:	samba-bounces at lists.samba.org



All,

I am having a winbind module load error on aix 7.1 trying to load
winbind module for 3.6.0.

methods.cfg
WINBIND:
         program_64 = /usr/lib/security/WINBIND_64
         (have tried authonly here)
NIS:
         program = /usr/lib/security/NIS
         program_64 = /usr/lib/security/NIS_64

DCE:
         program = /usr/lib/security/DCE

[root] on [barrow] on [/rehash/samba-3.6.0] {932} /security | grep
WINBIND   <
lrwxrwxrwx    1 root     staff            33 Feb 19 14:34 WINBIND_64 ->
/opt/pware64/lib/security/WINBIND


lsuser -R WINBIND ALL  lists nothing

smb.conf

[root] on [barrow] on [/opt/pware64/lib/security] {938} cat
/opt/pware64/lib/smb.conf
# Samba config file created using SWAT
# from UNKNOWN (192.168.4.22)
# Date: 2014/02/10 15:13:18

[global]
         workgroup = NRFDIST
         realm = nrfdist.local
         netbios name = BARROW
         server string = Barrow Samba Server
         interfaces = en0, en1, lo0
         security = domain
         map to guest = Bad User
         log level = 10
         log file = /opt/pware64/var/samba.log.%m
         max log size = 50
         read raw = No
         write raw = No
         name resolve order = wins lmhosts hosts bcast
         server signing = auto
         socket options = TCP_NODELAY SO_SNDBUF=16384 IPTOS_LOWDELAY
         load printers = No
         os level = 0
         local master = No
         dns proxy = No
         bind interfaces only = yes
         interfaces = 10.10.10.122/255.255.0.0 127.0.0.1
         template homedir = /home/%U
         template shell = /usr/bin/ksh
         # winbind separator = "\"
         winbind cache time = 30
         winbind enum users = Yes
         winbind enum groups = Yes
         winbind use default domain = No
         winbind refresh tickets = Yes
         winbind offline logon = Yes
         encrypt passwords = Yes
         password server = NRFDC1
         idmap config *:backend = tdb
         idmap config *:range = 11000-20000
         idmap config NRFDIST:backend = rid
         idmap config NRFDIST:range=10000000-19000000

/etc/security/user default:
default:
         admin = false
         login = true
         su = true
         daemon = true
         rlogin = true
         sugroups = ALL
         admgroups =
         ttys = ALL
         auth1 = SYSTEM
         auth2 = NONE
         tpath = nosak
         umask = 022
         expires = 0
         registry = WINBIND or compat
         SYSTEM = "WINBIND or compat"
         logintimes =
         pwdwarntime = 0
         account_locked = false
         loginretries = 0
         histexpire = 0
         histsize = 0
         minage = 0
         maxage = 0
         maxexpired = -1
         minalpha = 0
         minother = 0
         minlen = 0
         mindiff = 0
         maxrepeats = 8
         dictionlist =
         pwdchecks =




Daemon.log in /var/log shows that it is missing a shared object. I could
not compile 3.6.0 manually to get this shared object

Feb 24 16:42:38 bonnie daemon:err|error telnetd[7995602]: dlopen of user
option: winbind failed:        0509-022 Cannot load module
/usr/lib/netsvc/dynload/winbind.so.         0509-026 System error: A
file or directory in the path name does not exist.


I managed to compile 4.14 but the smbd daemon dies without errors in the
samba logs..... it did generate a so... which i did try and place in
that directory.

If i try and make 3.6.0 using gcc or python it will fail miserably..
this is the logs from 3.6.0 build with make

[root] on [barrow] on [/rehash/samba-3.6.0/source3] {948} make
         WAF_MAKE=1 ../buildtools/bin/waf build
/rehash/samba-3.6.0/buildtools/bin/.waf-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Utils.py:89:

DeprecationWarning: the md5 module is deprecated; use hashlib instead
   from md5 import md5
../buildtools/wafsamba/samba_utils.py:392: DeprecationWarning: the md5
module is deprecated; use hashlib instead
   import md5
Waf: Entering directory `/rehash/samba-3.6.0/source3/bin'
[   8/1242] Generating VERSION
[  12/1242] Compiling IDL ../librpc/idl/atsvc.idl
sem_trywait: Permission denied
sem_post: Permission denied
sem_destroy: Permission denied
[  13/1242] Compiling IDL ../librpc/idl/auth.idl
sem_trywait: Permission denied
sem_post: Permission denied
sem_destroy: Permission denied
/rehash/samba-3.6.0/librpc/idl/atsvc.idl:5: error: expected identifier
or '(' before '[' token
/rehash/samba-3.6.0/librpc/idl/auth.idl:7: error: expected '=', ',',
';', 'asm' or '__attribute__' before string constant
/rehash/samba-3.6.0/librpc/idl/auth.idl:9: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'auth'
Failed to parse /rehash/samba-3.6.0/librpc/idl/atsvc.idl at
/rehash/samba-3.6.0/pidl/pidl line 608.
Failed to parse /rehash/samba-3.6.0/librpc/idl/auth.idl at
/rehash/samba-3.6.0/pidl/pidl line 608.
Waf: Leaving directory `/rehash/samba-3.6.0/source3/bin'
Build failed:
  -> task failed (err #1):
         {task: PIDL_ATSVC
atsvc.idl,CUtil.pm,Compat.pm,Dump.pm,Expr.pm,IDL.pm,NDR.pm,ODL.pm,ClientNDR.pm,ServerNDR.pm,Header.pm,Proxy.pm,Stub.pm,Header.pm,Client.pm,Parser.pm,Server.pm,Python.pm,TDR.pm,Template.pm,Samba4.pm,Typelist.pm,Util.pm,Conformance.pm,NDR.pm,Pidl.pm,Driver.pm

->
atsvc.h,ndr_atsvc.c,ndr_atsvc.h,srv_atsvc.c,srv_atsvc.h,ndr_atsvc_s.c,ndr_atsvc_c.c,ndr_atsvc_c.h,py_atsvc.c}

  -> task failed (err #1):
         {task: PIDL_AUTH
auth.idl,CUtil.pm,Compat.pm,Dump.pm,Expr.pm,IDL.pm,NDR.pm,ODL.pm,ClientNDR.pm,ServerNDR.pm,Header.pm,Proxy.pm,Stub.pm,Header.pm,Client.pm,Parser.pm,Server.pm,Python.pm,TDR.pm,Template.pm,Samba4.pm,Typelist.pm,Util.pm,Conformance.pm,NDR.pm,Pidl.pm,Driver.pm

->
auth.h,ndr_auth.c,ndr_auth.h,srv_auth.c,srv_auth.h,ndr_auth_s.c,ndr_auth_c.c,ndr_auth_c.h,py_auth.c}

make: 1254-004 The error code from the last command is 1.




Any help would be appreciated.

--
---
Greg Cushing
Programmer/Analyst
Web Administrator
NRF Distributors Inc.
Phone: (800) 673-3478 ext. 2185
Our website can be found at
http://www.nrfdist.com/

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba





More information about the samba mailing list