[Samba] RH9 compile problems AND WinXP netlogon script

Khanh Tran khanh at slc.edu
Thu Jun 26 17:27:11 GMT 2003


Because of the original issue below, it dawned on me to re-compile Samba
after the RH9 upgrade from RH7.1.  The make fails, and I was hoping someone
could shed some light on either/both issues.  I'm compiling Samba 2.2.8a
with:

./configure --with-smbwrapper --with-pam --with-syslog --with-netatalk
--prefix=/var/samba --with-quotas --with-smbmount --with-shadow

No errors there, but make fails with:

Compiling passdb/passdb.c
Compiling passdb/secrets.c
passdb/secrets.c: In function `secrets_fetch':
passdb/secrets.c:59: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_store':
passdb/secrets.c:74: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c:76: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_delete':
passdb/secrets.c:89: warning: assignment discards qualifiers from pointer
target type
Compiling passdb/pass_check.c
Compiling passdb/smbpassfile.c
Compiling passdb/machine_sid.c
Compiling passdb/pdb_smbpasswd.c
Compiling passdb/pampass.c
passdb/pampass.c: In function `make_pw_chat':
passdb/pampass.c:220: warning: passing arg 1 of `next_token' from
incompatible pointer type
passdb/pampass.c:231: warning: passing arg 1 of `next_token' from
incompatible pointer type
Compiling passdb/pdb_tdb.c
Compiling passdb/pdb_ldap.c
Compiling passdb/pdb_nisplus.c

Compiling lib/wins_srv.c
Compiling lib/util_str.c
lib/util_str.c: In function `toktocliplist':
lib/util_str.c:104: warning: assignment discards qualifiers from pointer
target type
Compiling lib/util_sid.c
Compiling lib/util_unistr.c
Compiling lib/util_file.c
Compiling lib/util.c
Compiling lib/util_sock.c
Compiling lib/util_sec.c
Compiling smbd/ssl.c
Compiling lib/talloc.c

Compiling tdb/spinlock.c
Compiling tdb/tdbutil.c
tdb/tdbutil.c: In function `tdb_chainlock_with_timeout':
tdb/tdbutil.c:46: warning: passing arg 1 of `tdb_set_lock_alarm' discards
qualifiers from pointer target type
tdb/tdbutil.c: In function `tdb_lock_bystring':
tdb/tdbutil.c:73: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_unlock_bystring':
tdb/tdbutil.c:87: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_fetch_int32_byblob':
tdb/tdbutil.c:103: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_store_int32_byblob':
tdb/tdbutil.c:134: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_fetch_uint32_byblob':
tdb/tdbutil.c:162: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_store_uint32_byblob':
tdb/tdbutil.c:194: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_store_by_string':
tdb/tdbutil.c:224: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_fetch_by_string':
tdb/tdbutil.c:242: warning: assignment discards qualifiers from pointer
target type
Compiling printing/printing.c
Compiling printing/nt_printing.c

Compiling smbwrapper/smbw.c with -fPIC
smbwrapper/smbw.c: In function `smbw_parse_path':
smbwrapper/smbw.c:331: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:339: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:346: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c: In function `smbw_lseek':
smbwrapper/smbw.c:1258: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type
smbwrapper/smbw.c: At top level:
smbwrapper/smbw.c:1523: warning: no semicolon at end of struct or union
smbwrapper/smbw.c:1523: parse error before '.' token
smbwrapper/smbw.c:1525: parse error before '.' token
smbwrapper/smbw.c:1527: parse error before '.' token
smbwrapper/smbw.c:1531: parse error before '}' token
smbwrapper/smbw.c: In function `xstat_convert':
smbwrapper/smbw.c:1548: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1549: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1550: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1551: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1552: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1553: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1554: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1555: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1556: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1557: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1558: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1559: dereferencing pointer to incomplete type
smbwrapper/smbw.c:1560: dereferencing pointer to incomplete type
make: *** [smbwrapper/smbw.po] Error 1

Thanks in advance...


Khanh Tran
Network Operations
Sarah Lawrence College


-----Original Message-----
From: Khanh Tran [mailto:khanh at slc.edu] 
Sent: Tuesday, June 24, 2003 8:44 AM
To: 'John H Terpstra'
Cc: 'samba at lists.samba.org'
Subject: RE: [Samba] Winxp netlogon script


Ok, so now I've upgraded to RedHat Linux 9, Kernel 2.4.20-18.9,
glibc-2.3.2-27.9, samba 2.2.8a.  My XP workstations still aren't even trying
to run the login script.  Any more ideas?


smb.conf:

[global]
        workgroup = ACADEMIC
        netbios name = SLC3
        interfaces = 172.16.0.3 127.0.0.1
        bind interfaces only = Yes
        hosts allow = 172.16. 10.
        encrypt passwords = Yes
        name resolve order = wins lmhosts hosts
        domain admin group = @admin
        add user script = /usr/sbin/adduser -n -g machines -c Machine -d
/dev/null -s /bin/false %m$
        unix password sync = yes
        smb passwd file = /var/samba/private/smbpasswd
        log level = 1
        debug timestamp = yes
        password level = 1
        passwd program = /var/samba/bin/syncpass.sh %u %n
        passwd chat = *Password* *changed*
        logon script = scripts\%g.bat
        logon drive = H:
        logon home = \\SLC3\%u
        domain logons = Yes
        os level = 65
        preferred master = True
        domain master = True
        wins support = Yes
        time server = True
        guest account = ftp

[netlogon]
        path = /var/samba/netlogon
        browseable = no

[homes]
        comment = home directory support
        read only = No
        inherit permissions=yes
        browseable = no

[data]
        comment = Data Resources
        path = /var/data
        admin users = @admin
        read only = No 
        create mask = 0775   
        directory mask = 0775
        browseable = no

-----Original Message-----
From: John H Terpstra [mailto:jht at samba.org] 
Sent: Friday, June 20, 2003 3:42 PM
To: Khanh Tran
Cc: 'tlackey at dmsidaho.com'; 'samba at lists.samba.org'
Subject: RE: [Samba] Winxp netlogon script


Folks,

For what it is worth, in my testing of samba-3 domain logon behaviour I have
found logon script processing totally reliable. The only instance of trouble
that I have come across so far was with sites running RedHat 7.3 that did
NOT have the glibc and kernel updates. In every case where the updates have
been applied there has been no pleoblem.

If you want your problems resolved then a little more detail might help.

What version of samba?
What platform (OS version and updates)?
What smb.conf info?

How are clients configured?

- John T.

On Fri, 20 Jun 2003, Khanh Tran wrote:

> I have been experiencing the exact same issue as you, and I was
> wondering if you ever came to a resolution?  I didn't see a response 
> on the Samba list!
>
> Thanks!
>
> List:     samba
> Subject:  RE: [Samba] Winxp netlogon script
> From:     "Truman" <tlackey () dmsidaho ! com>
> Date:     2003-05-16 20:31:28
> [Download message RAW]
>
> I am adding more information on my status:
> The question that I need to find is why Win98 client have no problem
> running the logon script and WinXp clients do not even appear to try.
>
> When I log onto the domain from a WinXp pro client the home share is
> getting mapped but the logon script is not getting executed.  I have 
> checked the log files and I am in the domain.
>
> Initially I had 2 WinXp client using roaming profiles just to test but
> I decided against using this feature.  This may somehow caused WinXp 
> clients to not run the logon script but I am not sure.  I have the 
> same symptoms on 4 WinXp clients, and 1 win2000 client.
>
> Truman
>
>
> Khanh Tran
> Network Operations
> Sarah Lawrence College
>
>

-- 
John H Terpstra
Email: jht at samba.org

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




More information about the samba mailing list