Re: [Samba] Windows 2008 pdc troubles

2010-04-14 Thread Richard Smits

Richard Smits wrote:

He Markus,

We have this problem on multiple environments.

One of my servers is a Redhat v5 , samba version samba-3.0.28-1.el5_2.1.

But our clients are openSuSe 10.3 and SuSE Enterprise Desktop 11.

Their samba versions are :

Version 3.0.26a-3.7-1787-SUSE-SL10.3

Version 3.2.7-11.9.1-2306-SUSE-CODE11

The 11 clients are also having some issues, but works better then 10.3.

We are hoping a Microsoft patch wil solve some stuff next week that 
enables DES encryption.


See : http://support.microsoft.com/?kbid=978055

But i was hoping also for another way to solve this if the hotfix 
doesn't work correctly.


Greetings .. Richard

Preller, Markus wrote:

Hi Richard,

sounds familiar to me - we had the same trouble when changing our AD 
backend

from w2k3 to w2k8R2 servers.
I fixed the whole thing by using Samba 3.4.7, Kerberos 1.7.1 and 
OpenLDAP 2.4.21
completely build from the scratch on Solaris 10 (Sparc and x64). 
Kerberos 1.6.3

has some issues with upper/lowercase SPNs so I used 1.7.1.
Which platform do you have ?

best regards
Markus 
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org 
[mailto:samba-boun...@lists.samba.org] Im Auftrag von Richard Smits

Gesendet: Donnerstag, 1. April 2010 15:25
An: samba@lists.samba.org
Betreff: [Samba] Windows 2008 pdc troubles

We are in the process of upgading our windows 2003 pdc's to windows 
2008Rr2. No problem there, but our samba/winbind clients are beginning 
to show some strange behaviour.


In the beginning we saw a lot of messages appear in the logfiles.

Example :
--
pr  1 14:07:36 srvxxx winbindd[5148]:   rpc_api_pipe: Remote machine 
pdc.company.net pipe \NETLOGON fnum 0x4003returned critical error. 
Error was NT_STATUS_PIPE_DISCONNECTED

--

The clients who were connected to our 2003 pdc did not have this problem.
Now we are getting reports that some mounts are failing, and joining a 
machine to the domain is also failing with a kerberos error. (ticket 
not valid ?)


Some more messages :


winbindd.log :
[2010/04/01 14:54:10, 1] nsswitch/winbindd_util.c:trustdom_recv(229)
Could not receive trustdoms


[2010/03/31 10:02:25, 1] libsmb/clientgen.c:cli_rpc_pipe_close(386)
cli_rpc_pipe_close: cli_close failed on pipe \NETLOGON, fnum 0x4007 to 
machine pdc.company.net.  Error was SUCCESS - 0


We are using samba version samba-3.0.28-1.el5_2.1 on rhel5.

What can we do to troubleshoot or solve this problem ?

Greetings ... Richard


Well,

The updatepackage from Redhat : samba3x - xxx solves our troubles.
The official rpm's from Redhat 5 do not exceed the 3.0.xx version, so 
they created custom packages for these troubles.


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


[Samba] browsing across subnets/vpn

2010-04-14 Thread David Cake
	I am setting up a client with vpn to access a samba share. 
The samba server (which is both file and WINS server) is also the vpn 
machine, so nothing too complicated as far as routing goes, and the 
vpn stuff (openvpn stuff) all seems to work fine, client can manually 
log into shares by specifying the name and vpn interface address of 
the share.
	I am using layer three bridging (IP over a tun interface), 
not layer two (ethernet over a tap interface)
	But what I would need to do to allow clients to browse shares 
on this one machine.
	Is there a way to configure the Windows client (and samba if 
necessary) to allow browsing of shares, without switching everything 
over to ethernet bridging (which seems a lot to do do for  simple 
task).
	I assume this is, at heart, a fairly simple browsing across 
subnets question. Please forgive my cluelessness.

Regards
David

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


[Samba] ?! Winbind stops (causing troubles with my Boss and customers)

2010-04-14 Thread Mistofeles

If I give command 'locale', I get _14_ lines.

'Winbind -d10' stops after it has written _14_ times this comment to 
/var/log/samba/log.winbindd:


[2010/04/12 14:08:06,  5] lib/charcnv.c:82(charset_name)
  Substituting charset 'UTF-8' for LOCALE

Cursor doesn't appear again but with Ctrl-C.

What is the next step winbind is trying to take after it has gone 
through localizations ?


Is there any way to get more troubleshooting information about winbindd ?

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


Re: [Samba] browsing across subnets/vpn

2010-04-14 Thread David Adam
On Wed, 14 Apr 2010, David Cake wrote:

   I am setting up a client with vpn to access a samba share. The samba
 server (which is both file and WINS server) is also the vpn machine, so
 nothing too complicated as far as routing goes, and the vpn stuff (openvpn
 stuff) all seems to work fine, client can manually log into shares by
 specifying the name and vpn interface address of the share.
   I am using layer three bridging (IP over a tun interface), not layer
 two (ethernet over a tap interface)
   But what I would need to do to allow clients to browse shares on this
 one machine.
   Is there a way to configure the Windows client (and samba if
 necessary) to allow browsing of shares, without switching everything over to
 ethernet bridging (which seems a lot to do do for  simple task).
   I assume this is, at heart, a fairly simple browsing across subnets
 question. Please forgive my cluelessness.

I think the instructions at 
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#DMB
will solve your problem - I assume you are not using a domain? Anyway, set 
your VPN server up to be the domain master browser and you should be 
laughing.

If you are using a VPN configuration interface that lets you hand out 
options as well as addresses, you might consider running a WINS server as 
well.

David Adam
zanc...@ucc.gu.uwa.edu.au
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Prevent smbpasswd lan manager field change

2010-04-14 Thread Jansen Robert
Added note:

The lanmanager smbpasswd filed change seems to happen also with some 
client machines do NOT explicitaly change their password. 
It rather seems that a client seems to enforce a zero LANMAN passwd if a client 
has a higher than LANMAN protocol available.

I have a higher protocol than LANMAN, so forget the LANMAN method 
and scratch the unsafer password 
hash.

A wild guess,...


But the question remains, how to prevent this from happening ?

Running on a Solaris 9 

Ideas welcome.

TIA

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


[Samba] Samba4 and group policy password policy

2010-04-14 Thread Santiago Perez Agra


Hi every one, I'm testing Samba4 with the guide posted on the wiki
http://wiki.samba.org/index.php/Samba4/HOWTO#Step_1:_Download_Samba4, all
our tests results ok but one of them crash:

Group Policy works ok on a new organizational unit in deploy security task
over desktop users but when i create a new user over this ou, with the
dsa.msc group policy  Computer Configuration  Windows Settings  Security
Settings  Account Policies  Password Policy  Password must need
complexity requirement set as Not defined but when dsa.msc asks you about
the new password of the user it answer that you need to meet this
restrictions, this can be avoid with the linux samba command net newuser
... but what does happen when a user is asked about to change your password
because password age is next to expire ...

Our goal is to replace all windows XP desktops to ubuntu desktops but we
have a number of desktops that is not possible to change XP so we need to
implement an AD alternative and Samba 4 is perfect, with group policy
support now.

Thanks a lot in advance to all of you


-- 
Santiago Pérez Agra
Concello de Pontevedra
spe...@pontevedra.eu

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

[Samba] WG: Upgrading 3.2.15 to 3.3.12 sernet package on opensuse 10.2

2010-04-14 Thread Daniel Müller
My Configuration,


On my PDC:
Samba version 3.2.15  /LDAP-Master (slurpd)/SMBD4wins   -- version 3.3.12
not working. Downgrade again

On my BDC:
Samba version 3.3.12 /LDAP-Slave -- version 3.3.12 working


[global] on PDC

[global]
workgroup = tuepdc.local
bind interfaces only = true
interfaces = 192.168.135.143/24 127.0.0.0/8
socket address = 192.168.135.255
profile acls = no
hosts allow = 127.0.0.1  192.168.129.0/24 192.168.133.0/24 192.168.134.0/24
192.168.132.0/24 192.168.135.0/24 10.0.77.0/24
hosts deny = 0.0.0.0/0
server string = tuepdc.local MasterServer %v
admin users = root, administrator,marstaller
ldap passwd sync = Yes
passwd program = /usr/local/sbin/smbldap-passwd -u %u
log level = 0 vfs:[01]
log file = /system/log/%U.%m.log
syslog = 0
max log size = 3000
time server = Yes
read raw = yes
defer sharing violations = no
write raw = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
mangling method = hash2
dos charset = 850
unix charset = ISO8859-15
display charset = ISO8859-15
logon script = logon.bat
logon drive = S:
logon path =
security = user
domain logons = Yes
domain master = Yes
browse list = true
os level = 254
preferred master = Yes
wins support = no
wins server = 192.168.135.150
dns proxy = yes
smb ports = 139 445
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=admin,dc=tuepdc,dc=local
ldap suffix = dc=tuepdc,dc=local
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
add user script = /usr/local/sbin/smbldap-useradd  -A 1 -B 1 -m -k /dummy
%u
delete user script = /usr/local/sbin/smbldap-userdel -r %u
add machine script = /usr/local/sbin/smbldap-useradd  -w %u
add group script = /usr/local/sbin/smbldap-groupadd -p %g
delete group script = /usr/local/sbin/smbldap-groupdel %g
add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g
delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u
%g
set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
client lanman auth = no
client ntlmv2 auth = yes
load printers = Yes
nt acl support = no
printing = cups
printcap name = cups
deadtime = 10
map to guest = Bad User
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
preserve case = yes
case sensitive = no



[global] on smbd4wins/pdc

[globals]
netbios name= tuepdc-wins
workgroup=tuepdc.local
bind interfaces only=yes
interfaces=192.168.135.150
ntpd:disable_broadcast=yes
wins server=192.168.135.150
log level=4
dns proxy=yes



---
[global] on BDC

[global]
workgroup = tuepdc.local
netbios name = tuebdc
enable privileges = yes
interfaces = 192.168.135.144/24  127.0.0.0/8
bind interfaces only=true
profile acls=no
hosts allow=127.0.0.1 192.168.129.0/24  192.168.133.0/24
192.168.134.0/24 192.168.132.0/24 192.168.135.0/24 10.0.77.0/24
hosts deny=0.0.0.0/0
large readwrite=no
max xmit=166644
server string = tuebdc.local BackupServer %v
admin users=root, administrator, marstaller
encrypt passwords = Yes
ldap passwd sync = Yes
passwd program = /usr/local/sbin/smbldap-passwd -u %u
log level = 0 vfs:[01]
log file=/system/log/%U.%m.log
syslog = 0
max log size = 3000
defer sharing violations=no
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
mangling method = hash2
Dos charset = 850
Unix charset = ISO8859-15
display charset=ISO8859-15
logon script = logon.bat
logon drive = S:
logon path=
security=user
domain logons = Yes
domain master=NO
os level = 100
preferred master =Yes
local master =Yes
wins support = no
wins server=192.168.135.150
dns proxy=yes
host msdfs=yes
smb ports=139 445
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=admin,dc=tuepdc,dc=local
ldap suffix = dc=tuepdc,dc=local
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
add user script = /usr/local/sbin/smbldap-useradd  -A 1 -B 1 -m -k
/dummy %u
delete user script = /usr/local/sbin/smbldap-userdel -r %u
add machine script = /usr/local/sbin/smbldap-useradd  -w %u
add group script = /usr/local/sbin/smbldap-groupadd -p %g
delete group script = /usr/local/sbin/smbldap-groupdel %g
add user to group script = /usr/local/sbin/smbldap-groupmod -m %u
%g
delete user from group script = /usr/local/sbin/smbldap-groupmod -x
%u %g
set primary group script = /usr/local/sbin/smbldap-usermod -g '%g'
'%u'
idmap 

Re: [Samba] Samba over VPN

2010-04-14 Thread Mike A. Leonetti
Daniel,

I'm using ipsec for a VPN.  Since all shares are working and name
resolution all netbios packets seem to be traversing the VPN no problem.

Thanks.

Daniel Müller wrote:
 Hello,

 as far I know you need a vpn with netbios  enabled. This can be done witch
 openvpn in briding mode. Or with a router having this option.

 Greetings 
 Daniel 

 ---
 EDV Daniel Müller

 Leitung EDV
 Tropenklinik Paul-Lechler-Krankenhaus
 Paul-Lechler-Str. 24
 72076 Tübingen

 Tel.: 07071/206-463, Fax: 07071/206-499
 eMail: muel...@tropenklinik.de
 Internet: www.tropenklinik.de
 ---

 -Ursprüngliche Nachricht-
 Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
 Auftrag von Mike A. Leonetti
 Gesendet: Dienstag, 13. April 2010 22:27
 An: Samba Mailing
 Betreff: [Samba] Samba over VPN

 Have a 2003 server located outside of the Domain network over a VPN. 
 The server originally existed inside the network (10.1.1.0/24) but now
 exists on 10.10.12.0/24.  I can access shares over the VPN to the domain
 controller, but when I try to log in as a domain user it says the domain
 is unavailable.

 I added the domain controller as a WINS server on the 2003 server. 
 nbtstat -c on the 2003 does list the domain controller and the domain.

 Microsoft Windows [Version 5.2.3790]
 (C) Copyright 1985-2003 Microsoft Corp.

 C:\Documents and Settings\Administratornbtstat -c

 Local Area Connection 2:
 Node IpAddress: [10.10.12.244] Scope Id: []

   NetBIOS Remote Cache Name Table

 Name  Type   Host AddressLife [sec]
 
 CRCOMPUTER 1C  GROUP   10.1.1.1390
 CRCOMPUTER 1B  UNIQUE  10.1.1.1387
 FORTISSIMO 20  UNIQUE  10.1.1.1430

 C:\Documents and Settings\Administrator

 Is there a way I can test the WINS server to definitely make sure it's
 working?  Is it that SAMBA isn't broadcasting itself over the 10.10.12.0
 (VPN) network?
   
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] KVNO keeps getting higher and higher

2010-04-14 Thread Richard Smits

Hello,

We have clients running Fedora 11. They are running samba and winbind 
version 3.4.2.0.42.


samba-winbind-3.4.2-0.42.fc11.x86_64
samba-3.4.2-0.42.fc11.x86_64
samba-common-3.4.2-0.42.fc11.x86_64

Our problem is that the KVNO (Key Version Number) msDS-KeyVersionNumber 
keeps changing in the AD and is getting higher and higher. We are at 16 
now and counting.


The problem is that I have to recreate a new keytab file because our 
clients are also using a nfs4/krb5 mount on another server.


When the version is higher than local in the keytab, the krb5 security 
will not work anymore.


I have talked to the Windows sysadmins and the say that the password for 
a computer object is changed every 30 days, but my experience is that 
the key is increased every couple of days it seems.


But the strange thing is that this is not for every computer object. 
There are also linux servers with AD computer objects that still have 
version 2 ? How is this possible ? This is a mystery for me.


The other servers are using pam_winbind. Could that be the reason why 
the number will not increase in their case ?


I hope to get some hints why this keeps happening.

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


[Samba] Browsing Problem

2010-04-14 Thread zorgman

Hi,

I'm using samba 3.4.7 as a domain controller.

Browsing network works fine, but sometimes ( about one week ), my PC 
can't browse more my Domain (no workstation saw).

If I restart  samba,  all works again.
I have read the samba doc on browsing
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html

My configuration seems ok, local master yes, preferred master yes, 
domain master yes, and an os level to 99.


My samba has Wins support and my dhcp give him to workstations.

Here is some command line that i have done to debug :
nmblookup MYDOMAIN
net lookup HOST
net lookup master MYDOMAIN  (answer is the samba server), but if I look 
/var/cache/samba/browse.dat or make smbclient -L, it's an other computer 
unreacheable which is master(after restart samba smbclient say me that 
it's samba my domain master).







Why net lookup master and the other cmd don't tell me the same thing? is 
it the same thing? ( or lookup show me DMB and smbclient show LMB ?)




Thanks for your help, i'm sorry for my english :-)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Urgent: Samba 3.0.21b on Solaris8

2010-04-14 Thread Kesavan_Prakash
Hi,

I am Planning to install samba (3.0.21b
http://us5.samba.org/samba/ftp/stable/samba-3.0.21b.tar.gz  given in
the below link for Clear Case 7.1.x on Solaris 8)

http://www-01.ibm.com/support/docview.wss?uid=swg21302974#Supported%20SM
B%20Server%20Products

I am getting lots of errors and could not complete.

Any step by step procedures with dependencies will be great for me.

Thanks and Regards
Prakash C kesavan


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


[Samba] winxp + sp3 = samba-shared printer hangs the system

2010-04-14 Thread Simone
hi,

 since I upgraded some winxp-pro sp2 client to sp3, my samba-shared
printers are no-longer usable :-/
With sp3, if I run notepad and choose the menù File-Print, the print
window hangs and does not show any printer for about 1 minute! The
same thing happens when I click on the menù Start-settings-Printer and
faxes.
With sp2, everything works correctly and I can browse all my
configured samba-printers.


This is the way I added printers ...

In my PDC I configued 2 samba-printers( \\mypdc\printer1 and
\\mypdc\printer2), then I logged in as administrator and globally
added printers using,  as suggested in the samba doc, the RunDLL32
PrintUI.DLL,PrintUIEntry command:

:: to delete previously added printers...
RunDLL32 PrintUI.DLL,PrintUIEntry /gd /n \\mypdc\printer1 /q
RunDLL32 PrintUI.DLL,PrintUIEntry /gd /n \\mypdc\printer2 /q
:: to add samba-shared printers GLOBALLY...
Rundll32 printui.dll,PrintUIEntry /ga /n \\mypdc\printer1 /q
Rundll32 printui.dll,PrintUIEntry /ga /n \\mypdc\printer2 /q

Then I rebooted the client once.


Should I disable some strange sort of security feature? And ideas or
useful pointer ?


Thank you in advance,
 Simone
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] scannedonly smbd crash

2010-04-14 Thread Volker Lendecke
On Tue, Apr 13, 2010 at 10:46:22PM +0200, Christophe Deze wrote:
 but i cant install libldap2-dev that seem to be required

 My server is a ubuntu hardy

Ok, then it's a bit difficult. Maybe Olivier can figure it
out without line numbers.

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


Re: [Samba] scannedonly smbd crash

2010-04-14 Thread Christophe Deze

Le 14/04/2010 21:39, Volker Lendecke a écrit :

On Tue, Apr 13, 2010 at 10:46:22PM +0200, Christophe Deze wrote:
   

but i cant install libldap2-dev that seem to be required

My server is a ubuntu hardy
 

Ok, then it's a bit difficult. Maybe Olivier can figure it
out without line numbers.

Volker


   

I m bit lost
in fact i still can't compile samba 3.5.2 sources
same error after having installed libldap2-dev
something else must be missing

Using CFLAGS = -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align 
-Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER 
-Wdeclaration-after-statement -Werror-implicit-function-declaration -I. 
-I/root/samba-3.5.2/source3 -I/root/samba-3.5.2/source3/../lib/popt 
-I/root/samba-3.5.2/source3/iniparser/src -Iinclude -I./include  -I. -I. 
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. 
-I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude 
-I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns 
-I./librpc -I./.. -I./../lib/popt  -I/root/samba-3.5.2/source3/lib -I.. 
-I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3

  PICFLAG= -fPIC
  LIBS   = -lresolv -lresolv -lnsl -ldl
  LDFLAGS= -pie -Wl,-z,relro -Wl,--as-needed -L./bin
  DYNEXP = -Wl,--export-dynamic
  LDSHFLAGS  = -shared -Wl,-Bsymbolic -Wl,-z,relro -Wl,--as-needed 
-L./bin -lc -Wl,-z,defs

  SHLIBEXT   = so
  SONAMEFLAG = -Wl,-soname=
Compiling libsmb/clispnego.c
libsmb/clispnego.c: Dans la fonction «spnego_gen_negTokenTarg» :
libsmb/clispnego.c:391: erreur: déclaration implicite de la fonction « 
«cli_krb5_get_ticket» »

The following command failed:
gcc -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings 
-DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement 
-Werror-implicit-function-declaration -I. -I/root/samba-3.5.2/source3 
-I/root/samba-3.5.2/source3/../lib/popt 
-I/root/samba-3.5.2/source3/iniparser/src -Iinclude -I./include  -I. -I. 
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. 
-I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H  
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude 
-I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns 
-I./librpc -I./.. -I./../lib/popt  -I/root/samba-3.5.2/source3/lib -I.. 
-I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3  -fPIC -c 
libsmb/clispnego.c -o libsmb/clispnego.o

make: *** [libsmb/clispnego.o] Erreur 1



Olivier wrote me :
do you have the option to edit vfs_scannedonly.c and change
#define SCANNEDONLY_DEBUG 9
to
#define SCANNEDONLY_DEBUG 5
and set the samba logging to 5 or higher ?

I hope that will give a little more logging.

regards





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


Re: [Samba] scannedonly smbd crash

2010-04-14 Thread Volker Lendecke
On Wed, Apr 14, 2010 at 10:10:58PM +0200, Christophe Deze wrote:
 I m bit lost
 in fact i still can't compile samba 3.5.2 sources
 same error after having installed libldap2-dev
 something else must be missing

It's the kerberos development libs you're missing, or
alternatively the bug fix for bug 7327,
http://git.samba.org/?p=samba.git;a=commitdiff;h=7ccd68073dd

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


[Samba] Windows 7 Policies????

2010-04-14 Thread Timothy Johnson
I am hoping someone can point me in the right direction. I just started
adding windows 7 to my domain, and my logon scripts are not running. They
arent even trying to run. How do you enforce policies on windows 7?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] WG: Upgrading 3.2.15 to 3.3.12 sernet package on opensuse 10.2

2010-04-14 Thread Stan Hoeppner
Daniel Müller put forth on 4/14/2010 9:27 AM:

 EXT oid=1.3.6.1.4.1.1466.20037
 Apr  8 09:22:20 tuepdc slapd[7693]: do_extended: unsupported operation
 1.3.6.1.4.1.1466.20037
 Apr  8 09:22:20 tuepdc slapd[7693]: conn=441 op=0 RESULT tag=120 err=2
 text=unsupported extended operation

This is an OpenLDAP problem, not a Samba problem.  I have zero experience
with LDAP but I know how to Google and read.

Please paste all the relevant log entries from the PDC.  There should be a
few more than what you pasted, such as these posted back in July 2008 to
another help forum:

Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 fd=23 ACCEPT from
IP=127.0.0.1:15332 (IP=0.0.0.0:389)
Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 op=0 EXT
oid=1.3.6.1.4.1.1466.20037
Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 op=0 do_extended: unsupported
operation 1.3.6.1.4.1.1466.20037
Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 op=0 RESULT tag=120 err=2
text=unsupported extended operation
Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 op=1 UNBIND
Jul  9 07:32:26 xdaolin slapd[2241]: conn=702 fd=23 closed
Jul  9 07:32:26 xdaolin slapd[2241]: conn=703 fd=23 ACCEPT from
IP=127.0.0.1:15333 (IP=0.0.0.0:389)
Jul  9 07:32:26 xdaolin slapd[2241]: conn=703 op=0 EXT
oid=1.3.6.1.4.1.1466.20037
Jul  9 07:32:26 xdaolin slapd[2241]: conn=703 op=0 do_extended: unsupported
operation 1.3.6.1.4.1.1466.20037
Jul  9 07:32:26 xdaolin slapd[2241]: conn=703 op=0 RESULT tag=120 err=2
text=unsupported extended operation
Jul  9 07:32:26 xdaolin slapd[2241]: conn=703 op=1 UNBIND
Jul  9 07:32:27 xdaolin slapd[2241]: conn=703 fd=23 closed
Jul  9 07:32:27 xdaolin getent: nss_ldap: could not search LDAP server -
Server is unavailable


Note that 1.3.6.1.4.1.1466.20037 exists in both help requests, and that
the other OP is not having problems with Samba but some other application,
_two years ago_.  I've found examples of the same error going back to 2006.
 I have yet to find via Google any document with this 1.3.6.1.4.1.1466.20037
error string having anything to do with Samba.  Your problem is with your
platform/OpenLDAP configuration.

Have you upgraded OpenLDAP?  Have you upgraded all your libraries to the
latest versions?  What operating system are you using?  What version?

Forget the fact that everything works on the BDC.  That is not a factor
here because the machines are NOT identical.  One is a PDC, the other a BDC.
 Just because the BDC works after the Samba upgrade doesn't automatically
mean the PDC should work, given that the problem isn't with Samba, but with
OpenLDAP.

Google for EXT oid=1.3.6.1.4.1.1466.20037 and read every article in the
first 3 pages.  That should help you find your answer.  Save yourself some
time by upgrading all packages and libraries first to see if that fixes the
problem, starting with OpenLDAP.

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


Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'

2010-04-14 Thread Nico Kadel-Garcia
On Sun, Apr 11, 2010 at 4:42 AM, Nico Kadel-Garcia nka...@gmail.com wrote:
 On Sun, Apr 11, 2010 at 2:41 AM, Volker Lendecke
 volker.lende...@sernet.de wrote:

 http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm

 Odd name to build on CentOS, but we build all RPMs from a
 single source RPM and pick one to upload.

 Volker

Volker, this SRPM does *not* compile on clean RHEL 5.4 x86_64, neither
from my command line nor in a mock configuration. It seems to rely
on interpreting various config files to decide whether it is RHEL, and
then to decide whether to build debuginfo as a separate component, and
it fails on the resulting duplicate debuginfo compilation.

Given that you haven't published the actual SRPM used referred to by
your RPM's, and that I can't compile the SRPM you did publish, I don't
feel I can use this package. Moreover, if this isn't actually the SRPM
you used, you may be in violation of the GPL. (Not deliberately, of
course!!!)

Can you publish the actual SRPM built for RHEL 5, or explain how you
were able to compile this package for RHEL 5?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] (no subject)

2010-04-14 Thread Jeffrin Thalakkottoor
http://DerrickVoisinet0470.co.cc
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] transfer to Microsoft Distributed File Service

2010-04-14 Thread Xu, Qiang (FXSGSC)
Hi, list: 

Usually, //server_name/share is passed to smbclient to do a transfer. 
However, in case of filing repositores using MS DFS, can smbclient be passed 
//domain_name/dfs_share/share_link? I guess not.

Looking forward to clarification,
Xu Qiang
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'

2010-04-14 Thread Volker Lendecke
On Wed, Apr 14, 2010 at 06:48:09PM -0400, Nico Kadel-Garcia wrote:
 On Sun, Apr 11, 2010 at 4:42 AM, Nico Kadel-Garcia nka...@gmail.com wrote:
  On Sun, Apr 11, 2010 at 2:41 AM, Volker Lendecke
  volker.lende...@sernet.de wrote:
 
  http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm
 
  Odd name to build on CentOS, but we build all RPMs from a
  single source RPM and pick one to upload.
 
  Volker
 
 Volker, this SRPM does *not* compile on clean RHEL 5.4 x86_64, neither
 from my command line nor in a mock configuration. It seems to rely
 on interpreting various config files to decide whether it is RHEL, and
 then to decide whether to build debuginfo as a separate component, and
 it fails on the resulting duplicate debuginfo compilation.
 
 Given that you haven't published the actual SRPM used referred to by
 your RPM's, and that I can't compile the SRPM you did publish, I don't
 feel I can use this package. Moreover, if this isn't actually the SRPM
 you used, you may be in violation of the GPL. (Not deliberately, of
 course!!!)
 
 Can you publish the actual SRPM built for RHEL 5, or explain how you
 were able to compile this package for RHEL 5?

All I can say at this moment is that according to our
internal procedures, the source RPM I referred you to is the
one we are building from. I will investigate if something
went wrong in posting this to the ftp server. We will
certainly do everything necessary to ship the source code
for the binaries you can download from our website to comply
with the GPL.

Can you please post the specific error message you are
getting? It might be that our BuildRequires: line in the
specfile is not correct or something else in our build
environment is different than your host.

Thanks,

Volker


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

Re: [Samba] Samba 4 smb.conf parameters

2010-04-14 Thread Andreas Moroder

The Samba4 fileserver code doesn't have the same parameters
as the Samba3 fileserver code. Hopefully this will be fixed
when the merge of the Samba3 fileserver code into Samba4
happens. See here:

http://news.samba.org/developers/Samba_Team_Blog_3/

for details on the plan.

Jeremy.

Hello Jeremy,

according to the blog
we believe this may be possible to achieve in 2010..

Is this target still achievable ?
It is important for us, because we are one of the few places that did 
not migrate to AD.


Thanks
Andreas

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


Build status as of Wed Apr 14 06:00:03 2010

2010-04-14 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2010-04-13 
00:00:21.0 -0600
+++ /home/build/master/cache/broken_results.txt 2010-04-14 00:00:04.0 
-0600
@@ -1,9 +1,9 @@
-Build status as of Tue Apr 13 06:00:03 2010
+Build status as of Wed Apr 14 06:00:03 2010
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
-ccache   29 12 0 
+ccache   29 11 0 
 ldb  29 29 0 
 libreplace   29 10 0 
 lorikeet 0  0  0 
@@ -14,9 +14,9 @@
 samba-web0  0  0 
 samba_3_current 27 25 1 
 samba_3_master 27 27 1 
-samba_3_next 27 25 3 
-samba_4_0_test 29 29 1 
-samba_4_0_waf 27 27 3 
+samba_3_next 27 24 3 
+samba_4_0_test 29 29 0 
+samba_4_0_waf 27 27 5 
 talloc   29 10 0 
 tdb  27 17 0 
 


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Stefan Metzmacher
The branch, master has been updated
   via  bc6a43a... s4:torture/rpc/winreg: fix compiler warnings
   via  d018057... s4:torture/rpc/dsgetinfo: first check the rpc layer 
status before looking at the application result
  from  74c4c7f... Don't set requested_posix_capabilities in the sync 
code, already done in the async.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit bc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 13 17:36:51 2010 +0200

s4:torture/rpc/winreg: fix compiler warnings

metze

commit d0180570b3e1d0a4aa9c7a55af9fd3b4c925ec77
Author: Stefan Metzmacher me...@samba.org
Date:   Mon Apr 12 14:13:08 2010 +0200

s4:torture/rpc/dsgetinfo: first check the rpc layer status before looking 
at the application result

metze

---

Summary of changes:
 source4/torture/rpc/dsgetinfo.c |   21 +
 source4/torture/rpc/winreg.c|6 +++---
 2 files changed, 16 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/dsgetinfo.c b/source4/torture/rpc/dsgetinfo.c
index b01dd77..acf93e8 100644
--- a/source4/torture/rpc/dsgetinfo.c
+++ b/source4/torture/rpc/dsgetinfo.c
@@ -345,20 +345,25 @@ static bool test_getinfo(struct torture_context *tctx,
r.out.info_type = info_type;
 
status = dcerpc_drsuapi_DsReplicaGetInfo_r(b, tctx, r);
-
+   if (!NT_STATUS_IS_OK(status)  p-last_fault_code == 
DCERPC_FAULT_INVALID_TAG) {
+   torture_comment(tctx,
+   DsReplicaGetInfo level %d and/or 
infotype %d not supported by server\n,
+   array[i].level, array[i].infotype);
+   continue;
+   }
+   torture_assert_ntstatus_ok(tctx, status, talloc_asprintf(tctx,
+   DsReplicaGetInfo level %d and/or 
infotype %d failed\n,
+   array[i].level, array[i].infotype));
if (W_ERROR_EQUAL(r.out.result, WERR_INVALID_LEVEL)) {
/* this is a not yet supported level */
torture_comment(tctx,
DsReplicaGetInfo level %d and/or 
infotype %d not yet supported by server\n,
array[i].level, array[i].infotype);
invalid_levels++;
-   } else if (!NT_STATUS_IS_OK(status)  p-last_fault_code == 
DCERPC_FAULT_INVALID_TAG) {
-   torture_comment(tctx,
-   DsReplicaGetInfo level %d and/or 
infotype %d not supported by server\n,
-   array[i].level, array[i].infotype);
-   }/* else {
-   torture_drsuapi_assert_call(tctx, p, status, r, 
dcerpc_drsuapi_DsReplicaGetInfo);
-   }*/
+   continue;
+   }
+
+   torture_drsuapi_assert_call(tctx, p, status, r, 
dcerpc_drsuapi_DsReplicaGetInfo);
}
 
if (invalid_levels  0) {
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index d7e1247..461deff 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2437,7 +2437,7 @@ static bool test_Open(struct torture_context *tctx, 
struct dcerpc_pipe *p,
struct winreg_OpenHKLM r;
struct dcerpc_binding_handle *b = p-binding_handle;
 
-   winreg_open_fn open_fn = userdata;
+   winreg_open_fn open_fn = (winreg_open_fn)userdata;
 
r.in.system_name = 0;
r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
@@ -2451,7 +2451,7 @@ static bool test_Open(struct torture_context *tctx, 
struct dcerpc_pipe *p,
ret = false;
}
 
-   if (open_fn == (void *)dcerpc_winreg_OpenHKLM_r) {
+   if (open_fn == (winreg_open_fn)dcerpc_winreg_OpenHKLM_r) {
torture_assert(tctx,
test_HKLM_wellknown(tctx, b, handle),
failed to test HKLM wellknown keys);
@@ -2468,7 +2468,7 @@ static bool test_Open(struct torture_context *tctx, 
struct dcerpc_pipe *p,
}
 
/* The HKCR hive has a very large fanout */
-   if (open_fn == (void *)dcerpc_winreg_OpenHKCR_r) {
+   if (open_fn == (winreg_open_fn)dcerpc_winreg_OpenHKCR_r) {
if(!test_key(p, tctx, handle, MAX_DEPTH - 1, false)) {
ret = false;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Andrew Tridgell
The branch, master has been updated
   via  bcd647f... Merge branch 'master' of 
ssh://git.samba.org/data/git/samba
   via  e81e057... build: try to honor MAKEFLAGS from make
  from  bc6a43a... s4:torture/rpc/winreg: fix compiler warnings

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit bcd647f943e391bdb98233c168d2b35e244e2bf4
Merge: e81e057b6d70d70616132593dc2acbfe77cb459c 
bc6a43aeb41fc5ccf3a34f2ec91e1328ae82d90e
Author: Andrew Tridgell tri...@samba.org
Date:   Wed Apr 14 23:38:05 2010 +1000

Merge branch 'master' of ssh://git.samba.org/data/git/samba

commit e81e057b6d70d70616132593dc2acbfe77cb459c
Author: Andrew Tridgell tri...@samba.org
Date:   Wed Apr 14 23:37:47 2010 +1000

build: try to honor MAKEFLAGS from make

This means make -j and make -k now do roughly what is expected

make -j will use the number of CPUs on the system, regardless of the
number after the -j (as MAKEFLAGS doesn't contain that value).

make -k will will continue on errors

---

Summary of changes:
 buildtools/scripts/Makefile.waf|7 +--
 buildtools/wafsamba/samba_utils.py |   26 ++
 buildtools/wafsamba/wscript|1 +
 3 files changed, 28 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/scripts/Makefile.waf b/buildtools/scripts/Makefile.waf
index a1c4b69..ac5c013 100644
--- a/buildtools/scripts/Makefile.waf
+++ b/buildtools/scripts/Makefile.waf
@@ -1,11 +1,6 @@
 # simple makefile wrapper to run waf
 
-# default to using only 1 cpu, to be friendly to build
-# farm machines. I wonder how we get at the -jN option
-# from make to pass it to waf?
-JOBS=1
-
-WAF=JOBS=$(JOBS) BUILDTOOLS/bin/waf
+WAF=WAF_MAKE=1 BUILDTOOLS/bin/waf
 
 all:
$(WAF) build
diff --git a/buildtools/wafsamba/samba_utils.py 
b/buildtools/wafsamba/samba_utils.py
index 7ee1663..bf051af 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -438,3 +438,29 @@ def RECURSE(ctx, directory):
 raise
 Options.Handler.RECURSE = RECURSE
 Build.BuildContext.RECURSE = RECURSE
+
+
+def CHECK_MAKEFLAGS(bld):
+'''check for MAKEFLAGS environment variable in case we are being
+called from a Makefile try to honor a few make command line flags'''
+if not 'WAF_MAKE' in os.environ:
+return
+makeflags = os.environ.get('MAKEFLAGS')
+jobs_set = False
+for opt in makeflags.split():
+# options can come either as -x or as x
+if opt[0] != '-':
+for v in opt:
+if v == 'j':
+jobs_set = True
+elif v == 'k':
+Options.options.keep = True
+elif opt == '-j':
+jobs_set = True
+elif opt == '-k':
+Options.options.keep = True
+if not jobs_set:
+# default to one job
+Options.options.jobs = 1
+
+Build.BuildContext.CHECK_MAKEFLAGS = CHECK_MAKEFLAGS
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index a395bfe..b4fcb99 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -226,6 +226,7 @@ def configure(conf):
 
 
 def build(bld):
+bld.CHECK_MAKEFLAGS()
 bld.SETUP_BUILD_GROUPS()
 bld.ENFORCE_GROUP_ORDERING()
 bld.CHECK_PROJECT_RULES()


-- 
Samba Shared Repository


Re: [SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread tridge
  Author: Andrew Tridgell tri...@samba.org
  Date:   Wed Apr 14 23:38:05 2010 +1000
  
  Merge branch 'master' of ssh://git.samba.org/data/git/samba

sorry, I forgot a --rebase on a git pull


Re: [SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Stefan (metze) Metzmacher
tri...@samba.org schrieb:
   Author: Andrew Tridgell tri...@samba.org
   Date:   Wed Apr 14 23:38:05 2010 +1000
   
   Merge branch 'master' of ssh://git.samba.org/data/git/samba
 
 sorry, I forgot a --rebase on a git pull

git config --help tells you how to make that the default for a branch...:-)

metze



signature.asc
Description: OpenPGP digital signature


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Stefan Metzmacher
The branch, master has been updated
   via  e1e2195... s4:torture/rpc: rename rpc.h = torture_rpc.h
  from  bcd647f... Merge branch 'master' of 
ssh://git.samba.org/data/git/samba

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit e1e2195a4ab60a74ca0a11f8eeb0ba1abfbb37a7
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 13 22:06:51 2010 +0200

s4:torture/rpc: rename rpc.h = torture_rpc.h

The reason for this is that some systems include
rpc/rpc.h from within system headers. HP-UX 11.00
does so somewhere deep inside of shadow.h.

For torture/winbind/struct_based.c rpc/rpc.h resolves
to torture/rpc/rpc.h and breaks the build.

metze

---

Summary of changes:
 source4/torture/libnet/domain.c  |2 +-
 source4/torture/libnet/groupinfo.c   |2 +-
 source4/torture/libnet/groupman.c|2 +-
 source4/torture/libnet/libnet_BecomeDC.c |2 +-
 source4/torture/libnet/libnet_domain.c   |2 +-
 source4/torture/libnet/libnet_group.c|2 +-
 source4/torture/libnet/libnet_lookup.c   |2 +-
 source4/torture/libnet/libnet_rpc.c  |2 +-
 source4/torture/libnet/libnet_share.c|2 +-
 source4/torture/libnet/libnet_user.c |2 +-
 source4/torture/libnet/userinfo.c|2 +-
 source4/torture/libnet/userman.c |2 +-
 source4/torture/libnet/utils.c   |2 +-
 source4/torture/nbt/dgram.c  |2 +-
 source4/torture/ntp/ntp_signd.c  |2 +-
 source4/torture/rap/rpc.c|2 +-
 source4/torture/raw/qfileinfo.c  |2 +-
 source4/torture/rpc/alter_context.c  |2 +-
 source4/torture/rpc/async_bind.c |2 +-
 source4/torture/rpc/atsvc.c  |2 +-
 source4/torture/rpc/autoidl.c|2 +-
 source4/torture/rpc/bench.c  |2 +-
 source4/torture/rpc/bind.c   |2 +-
 source4/torture/rpc/browser.c|2 +-
 source4/torture/rpc/countcalls.c |2 +-
 source4/torture/rpc/dfs.c|2 +-
 source4/torture/rpc/drsuapi.c|2 +-
 source4/torture/rpc/drsuapi_cracknames.c |2 +-
 source4/torture/rpc/dsgetinfo.c  |2 +-
 source4/torture/rpc/dssetup.c|2 +-
 source4/torture/rpc/dssync.c |2 +-
 source4/torture/rpc/echo.c   |2 +-
 source4/torture/rpc/epmapper.c   |2 +-
 source4/torture/rpc/eventlog.c   |2 +-
 source4/torture/rpc/frsapi.c |2 +-
 source4/torture/rpc/handles.c|2 +-
 source4/torture/rpc/initshutdown.c   |2 +-
 source4/torture/rpc/join.c   |2 +-
 source4/torture/rpc/lsa.c|2 +-
 source4/torture/rpc/lsa_lookup.c |2 +-
 source4/torture/rpc/mgmt.c   |2 +-
 source4/torture/rpc/netlogon.c   |2 +-
 source4/torture/rpc/ntsvcs.c |2 +-
 source4/torture/rpc/object_uuid.c|2 +-
 source4/torture/rpc/oxidresolve.c|2 +-
 source4/torture/rpc/remact.c |2 +-
 source4/torture/rpc/remote_pac.c |2 +-
 source4/torture/rpc/rpc.c|2 +-
 source4/torture/rpc/samba3rpc.c  |2 +-
 source4/torture/rpc/samlogon.c   |2 +-
 source4/torture/rpc/samr.c   |2 +-
 source4/torture/rpc/samr_accessmask.c|2 +-
 source4/torture/rpc/samsync.c|2 +-
 source4/torture/rpc/scanner.c|2 +-
 source4/torture/rpc/schannel.c   |2 +-
 source4/torture/rpc/session_key.c|2 +-
 source4/torture/rpc/spoolss.c|2 +-
 source4/torture/rpc/spoolss_notify.c |2 +-
 source4/torture/rpc/spoolss_win.c|2 +-
 source4/torture/rpc/srvsvc.c |2 +-
 source4/torture/rpc/svcctl.c |2 +-
 source4/torture/rpc/testjoin.c   |2 +-
 source4/torture/rpc/{rpc.h = torture_rpc.h} |0 
 source4/torture/rpc/unixinfo.c   |2 +-
 source4/torture/rpc/winreg.c |2 +-
 source4/torture/rpc/wkssvc.c |2 +-
 66 files changed, 65 insertions(+), 65 deletions(-)
 rename source4/torture/rpc/{rpc.h = torture_rpc.h} (100%)


Changeset truncated at 500 lines:

diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c
index 110a2e8..11a006e 100644
--- a/source4/torture/libnet/domain.c
+++ b/source4/torture/libnet/domain.c
@@ -19,7 +19,7 @@
 */
 
 #include includes.h
-#include torture/rpc/rpc.h
+#include 

[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Volker Lendecke
The branch, master has been updated
   via  8693ae7... s3: Fix a typo
  from  e1e2195... s4:torture/rpc: rename rpc.h = torture_rpc.h

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 8693ae741c98b42a900d1f3b529326cca56297c9
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 14 21:48:38 2010 +0200

s3: Fix a typo

---

Summary of changes:
 source3/groupdb/mapping_tdb.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index ee8d752..896ad45 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -968,7 +968,7 @@ static bool mapping_switch(const char *ldb_path)
return True;
 
 failed:
-   DEBUG(0,(Failed to swith to tdb group mapping database\n));
+   DEBUG(0, (Failed to switch to tdb group mapping database\n));
if (ltdb) tdb_close(ltdb);
TALLOC_FREE(frame);
return False;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Andrew Tridgell
The branch, master has been updated
   via  208eb74... build: check that the user is not using an old 
/usr/bin/waf
  from  8693ae7... s3: Fix a typo

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Apr 15 08:55:26 2010 +1000

build: check that the user is not using an old /usr/bin/waf

some systems have /usr/bin/waf installed, and its quite old

---

Summary of changes:
 buildtools/wafsamba/wafsamba.py |   12 +++-
 1 files changed, 11 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 386ed3c..de244e1 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -1,7 +1,7 @@
 # a waf tool to add autoconf-like macros to the configure section
 # and for SAMBA_ macros for building libraries, binaries etc
 
-import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs
+import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, 
Logs, Constants
 from Configure import conf
 from Logs import debug
 from samba_utils import SUBST_VARS_RECURSIVE
@@ -35,6 +35,16 @@ LIB_PATH=shared
 
 os.putenv('PYTHONUNBUFFERED', '1')
 
+
+if Constants.HEXVERSION  0x105016:
+Logs.error('''
+Please use the version of waf that comes with Samba, not
+a system installed version. See http://wiki.samba.org/index.php/Waf
+for details
+''')
+sys.exit(1)
+
+
 @conf
 def SAMBA_BUILD_ENV(conf):
 '''create the samba build environment'''


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Andrew Tridgell
The branch, master has been updated
   via  167ba0e... build: make the 'wrong version of waf' message even 
clearer
  from  208eb74... build: check that the user is not using an old 
/usr/bin/waf

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 167ba0eac902238d970b8312a6cbc87cf48af91a
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Apr 15 09:14:10 2010 +1000

build: make the 'wrong version of waf' message even clearer

suggest ./autogen-waf.sh

---

Summary of changes:
 buildtools/wafsamba/wafsamba.py |5 -
 1 files changed, 4 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index de244e1..dd9cbd6 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -40,7 +40,10 @@ if Constants.HEXVERSION  0x105016:
 Logs.error('''
 Please use the version of waf that comes with Samba, not
 a system installed version. See http://wiki.samba.org/index.php/Waf
-for details
+for details.
+
+Alternatively, please use ./autogen-waf.sh, and then
+run ./configure and make as usual. That will call the right version of waf.
 ''')
 sys.exit(1)
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Andrew Tridgell
The branch, master has been updated
   via  34887de... build: ensure we don't recreate library loops in 
expansions
  from  167ba0e... build: make the 'wrong version of waf' message even 
clearer

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 34887de6b0615f0f63f497f9020d1c059643f8ec
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Apr 15 13:59:51 2010 +1000

build: ensure we don't recreate library loops in expansions

after removing library loops from the dependeny graph, we re-add
parent dependencies. We need to ensure that we don't re-add a
dependency which re-creates the loop we so carefully removed.

This also adds a final check for library dependency loops, and shows
an appropriate error if one is found.

---

Summary of changes:
 buildtools/wafsamba/samba_deps.py |   27 ++-
 1 files changed, 26 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_deps.py 
b/buildtools/wafsamba/samba_deps.py
index fbc3223..7beec29 100644
--- a/buildtools/wafsamba/samba_deps.py
+++ b/buildtools/wafsamba/samba_deps.py
@@ -605,6 +605,8 @@ def reduce_objects(bld, tgt_list):
 t2 = bld.name_to_obj(l, bld.env)
 t2_obj = extended_objects(bld, t2, set())
 dup = new.intersection(t2_obj)
+if t.sname in rely_on:
+dup = dup.difference(rely_on[t.sname])
 if dup:
 debug('deps: removing dups from %s of type %s: %s also in 
%s %s',
   t.sname, t.samba_type, dup, t2.samba_type, l)
@@ -669,8 +671,18 @@ def calculate_final_deps(bld, tgt_list, loops):
 diff = loops[loop].difference(t.final_libs)
 if t.sname in diff:
 diff.remove(t.sname)
+if t.sname in diff:
+diff.remove(t.sname)
+# make sure we don't recreate the loop again!
+for d in diff.copy():
+t2 = bld.name_to_obj(d, bld.env)
+if t2.samba_type == 'LIBRARY':
+if t.sname in t2.final_libs:
+debug('deps: removing expansion %s from %s', 
d, t.sname)
+diff.remove(d)
 if diff:
-debug('deps: Expanded target %s by loop %s libraries 
%s', t.sname, loop, diff)
+debug('deps: Expanded target %s by loop %s libraries 
(loop %s) %s', t.sname, loop,
+  loops[loop], diff)
 t.final_libs = t.final_libs.union(diff)
 
 # remove objects that are also available in linked libs
@@ -697,6 +709,19 @@ def calculate_final_deps(bld, tgt_list, loops):
 syslibs = syslibs.union(t2.direct_syslibs)
 t.final_syslibs = syslibs
 
+
+# find any unresolved library loops
+lib_loop_error = False
+for t in tgt_list:
+if t.samba_type in ['LIBRARY', 'PYTHON']:
+for l in t.final_libs.copy():
+t2 = bld.name_to_obj(l, bld.env)
+if t.sname in t2.final_libs:
+Logs.error('ERROR: Unresolved library loop %s from %s' % 
(t.sname, t2.sname))
+lib_loop_error = True
+if lib_loop_error:
+sys.exit(1)
+
 debug('deps: removed duplicate dependencies')
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-04-14 Thread Andrew Tridgell
The branch, master has been updated
   via  0bda3ba... build: throw a fatal error for duplicate target 
declarations
   via  daf4ad5... s4-waf: removed a duplicate declaration of python_netbios
  from  34887de... build: ensure we don't recreate library loops in 
expansions

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 0bda3bae4cd68285e106261ffe79a1da1f778861
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Apr 15 14:43:43 2010 +1000

build: throw a fatal error for duplicate target declarations

We don't want someone to declare two subsystems of the same name but
with different source files

Pair-Programmed-With: Andrew Bartlett abart...@samba.org

commit daf4ad59057d9a7970393d94a4f1c3dfd1e77d21
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Apr 15 14:42:13 2010 +1000

s4-waf: removed a duplicate declaration of python_netbios

---

Summary of changes:
 buildtools/wafsamba/samba_autoproto.py |5 -
 buildtools/wafsamba/samba_utils.py |8 
 buildtools/wafsamba/wafsamba.py|   10 --
 source4/libcli/wscript_build   |7 ---
 4 files changed, 8 insertions(+), 22 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_autoproto.py 
b/buildtools/wafsamba/samba_autoproto.py
index 2a903d9..edabc7e 100644
--- a/buildtools/wafsamba/samba_autoproto.py
+++ b/buildtools/wafsamba/samba_autoproto.py
@@ -29,8 +29,11 @@ Build.BuildContext.HEIMDAL_AUTOPROTO_PRIVATE = 
HEIMDAL_AUTOPROTO_PRIVATE
 def SAMBA_AUTOPROTO(bld, header, source):
 '''rule for samba prototype generation'''
 bld.SET_BUILD_GROUP('prototypes')
-SET_TARGET_TYPE(bld, header, 'PROTOTYPE')
+relpath = os_path_relpath(bld.curdir, bld.srcnode.abspath())
+name = os.path.join(relpath, header)
+SET_TARGET_TYPE(bld, name, 'PROTOTYPE')
 t = bld(
+name = name,
 source = source,
 target = header,
 on_results=True,
diff --git a/buildtools/wafsamba/samba_utils.py 
b/buildtools/wafsamba/samba_utils.py
index bf051af..94975c6 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -16,10 +16,10 @@ def SET_TARGET_TYPE(ctx, target, value):
 '''set the target type of a target'''
 cache = LOCAL_CACHE(ctx, 'TARGET_TYPE')
 if target in cache and cache[target] != 'EMPTY':
-ASSERT(ctx, cache[target] == value,
-   Target '%s' re-defined as %s - was %s % (target, value, 
cache[target]))
-debug(task_gen: Skipping duplicate target %s (curdir=%s) % (target, 
ctx.curdir))
-return False
+Logs.error(ERROR: Target '%s' in directory %s re-defined as %s - was 
%s % (target,
+   
  ctx.curdir,
+   
  value, cache[target]))
+sys.exit(1)
 LOCAL_CACHE_SET(ctx, 'TARGET_TYPE', target, value)
 debug(task_gen: Target '%s' created of type '%s' in %s % (target, value, 
ctx.curdir))
 return True
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index dd9cbd6..633484b 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -187,12 +187,6 @@ def SAMBA_LIBRARY(bld, libname, source,
 if link_name:
 t.link_name = link_name
 
-if autoproto is not None:
-bld.SAMBA_AUTOPROTO(autoproto, source)
-
-if public_headers is not None:
-bld.PUBLIC_HEADERS(public_headers, header_path=header_path)
-
 if pc_files is not None:
 bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
 
@@ -278,10 +272,6 @@ def SAMBA_BINARY(bld, binname, source,
 if subsystem_name is not None:
 bld.TARGET_ALIAS(subsystem_name, binname)
 
-if autoproto is not None:
-bld.SAMBA_AUTOPROTO(autoproto, source)
-if public_headers is not None:
-bld.PUBLIC_HEADERS(public_headers, header_path=header_path)
 Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY
 
 
diff --git a/source4/libcli/wscript_build b/source4/libcli/wscript_build
index d46fed7..82f0253 100644
--- a/source4/libcli/wscript_build
+++ b/source4/libcli/wscript_build
@@ -41,13 +41,6 @@ bld.SAMBA_SUBSYSTEM('LIBCLI_SMB_COMPOSITE',
)
 
 
-bld.SAMBA_PYTHON('python_netbios',
-   source='../../libcli/nbt/pynbt.c',
-   public_deps='LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG',
-   realname='samba/netbios.so'
-   )
-
-
 bld.SAMBA_SUBSYSTEM('LIBCLI_DGRAM',
source='dgram/dgramsocket.c dgram/mailslot.c dgram/netlogon.c 
dgram/browse.c',
public_deps='LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON'


-- 
Samba Shared Repository