[Samba] Assigning Permissions on Member Server

2006-03-07 Thread mallapadi niranjan
Dear all

I have a samba PDC (3.0.21c) with openldap (2.3.19) with 2 domain Member
Servers(samba 3.0.21c) with ACL support
i use domain member servers as  file servers . all my clients are windows
2000 professional.
i have the following scenario at my
I have created 3 groups, prj1team, prj1mgr, prj1engg.

i have created folder called myproject in a samba share called projects.
myproject has a subdirectory called alldepts.
now,  no one can create files/folder in myproject directory  but they can
create a files and folder in alldepts folder.
but i don't want anybody to delete the folder alldepts.

myproject\alldepts

i have set like this

setfacl -m g:prj1team:rx myproject
setfacl -m g:prj1mgr:rx myproject
setfacl -m g:prj1engg:rx myrproject
setfacl -m g:prj1mgr:rwx myproject/alldepts
setfacl -m g:prj1engg:rwx myrproject/alldeps

in the above permissions, people in group prj1mgrand prj1engg are able
to creat files/folders in alldepts.
and when they are in myproject directory and  try to delete folder
alldepts, it gives error access denied .
so far so good, this is what i want.
but when the user of group prj1mgr and prj1engg
delete folder alldepts, it says access denied  but it deletes all the
files and folder inside the alldepts directory .
ie it denies the user to delete alldepts directory but it does not deny
the user to delete
all the files and folders inside the alldepts..


Actually what i need is the folder alldepts  is used by both groups
prj1mgr and prj1engg to create files and folder
and both these groups can delete each other files. but i want them to delete
file after changing to that directory (alldepts) , not from outside.

since i have mentioned
setfacl -m g:prj1mgr:rx myproject
setfacl -m g:prj1engg:rx myrproject
it does not allow to delete folder alldepts, but it deletes all files in
alldepts, that i don't want to happen.

Please guide me, i have tried to express my scenario , in best possible
way,  hope every body understands.

Regards
Niranjan




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


RE: [Samba] connecting to samba from 2003 sbs domain client runningxpprofi

2006-03-07 Thread Martijn Hazenberg
Nobody any idea on where to start looking for this ??

Thanks 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Martijn
Hazenberg
Verzonden: maandag 6 maart 2006 14:57
Aan: samba@lists.samba.org
Onderwerp: RE: [Samba] connecting to samba from 2003 sbs domain client
runningxpprofi

Hi,

Addition to my message below..
Computers which doesnt login to the domain controller at startup like
windows xp home ed. , dont seem to have this effect. It seems that you
have to keep the connection up and running on the xp profi pc's to stop
this problem from happening. ???

Regards,

Martijn


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Martijn
Hazenberg
Verzonden: maandag 6 maart 2006 14:50
Aan: samba@lists.samba.org
Onderwerp: [Samba] connecting to samba from 2003 sbs domain client
running xpprofi

Hi everybody,
 
I have a network which consists of a linux data server, running Samba, a
windows 2003 sbs, and a few xp professional clients which login to the
domain server (2003 sbs).
On the linux box, samba is running, this pc is always on. When i start
the client pc (xp profi) and login to the domain, i can access the samba
shares at full speed. 
Now the problem: When the xp profi client is left alone, for about 15 to
30 mins, something happens to the network. When i then try to access the
shares, browsing is slow as H**L.
Sometimes coming with screens like : enter user/passwd.
The only remedy is to logout the user on the xp terminal, log back in,
and everything is fine again. I have samba running in the most simple
sharing system.
This is the samba config file.. : 
 
 
DATASVR ~ # cat /etc/samba/smb.conf
[global]
netbios name = DATASVR
server string = DATASVR
socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
workgroup = GOVALOKAAL
socket address = 10.0.0.200
max log size = 1000
log file = /var/log/samba/log.%m
security = share
guest ok = yes
guest account = samba
encrypt passwords = true
 
[stuff]
comment = All stuff
path = /raid/stuff
writable = yes
browsable = yes
read only = no
guest ok = yes
public = yes

 
I once, tried to let the sbs figure out who could access the linux box,
but that didnt seem handy to me. To do this i had to add the linux box
to the sbs domain. The account for the linux box on the sbs is currently
disabled. Ive also tested it with this account enabled and this didnt
seem to make much of a difference.
 
Does anyone have any idea on where to start looking, or what to do ?
 
Best regards,
 
Martijn
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Cannot join domain: The user name could not be found

2006-03-07 Thread Schoenfeld
Hello,
which username do you use to join the Domain.  ??
Please send a slapcat !!

Ingo

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


[Samba] winbind -r group enumeration

2006-03-07 Thread Robert Fischer
i've a strange problem with samba-3.0.10 (Redhat Enterprise 4 PPC Version) in 
an ActiveDirectory Environment.

After setting up Kerberos and the winbindd configuration i was able to join a 
Windows 2003 Server ADS structure and enumerate groups with winbind -g and do 
different kind of ADS-Unix mappings (winbind -G gid, wbinfo -n 
ADS-group etc...). To make it short: it seems like the ADS connectivity is 
working.
However wbinfo -r domain\user lists only _global_ ADS groups not local ones, 
although i'm able to map even local ADS groups from Windows SIDs to 
Unix-gids.

The manual page for wbinfo -r tells me: This only works for users defined on 
a Domain Controller. Actually i'm not sure if this statement relates to my 
problem, so i'd like to know if this behavior is a known bug and if yes, if 
that issue was adressed in a newer samba version

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


[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share

2006-03-07 Thread Björn Mayer

Hello mailing-list,

this is my first post and i hope that you enjoy my very bad but 
sometimes funny english.


My Problem is the following:

First of all, my server-config:
Samba Version 3.0.20b-3.4-SUSE
on a
SUSE Linux Enterprise Server 9
with Kernel 2.6.5-7.252-smp


Now the problem is, that samba generally works fine, but it doesn't work
to work with a special application directly on a samba-share.
This app is EPLAN, who is configured to save his project-data on the 
servershare, because of the fact that there everything will be backuped 
regularly.


All this worked prior with a Windows Server 2003, which now should be 
replaced with the linux samba-server.


Now when we switched to Samba for testing purposes the error occured, 
that Windows throws the following Error while working with EPLAN on the 
networkshare:


---
Windows - Datenverlust beim schreiben

Es konnten nicht alle Daten für die Datei \\UNC-Path-to-share\file.ext 
gespeichert werden. Die Daten gingen verloren. Mögliche Ursache könnten 
Computerhardware oder Netzwerkverbindung sein. Versuchen Sie, die Dateien...

---

which in english means something like
---
Windows - data loss at writing

It was not possible to save all data for the file 
\\UNC-Path-to-share\file.ext. The data was lossed. Possible reasons can 
be the Hardware or networkconnection. ...

---

Copying data on the share while using copy ans paste with the explorer 
seems to be working fine.


I have no idea which reason this can have. Maybe some pro here outside 
has an idea.

Of course there can be recognized something in the /var/log/messages:

Mar  7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] 
lib/util_sock.c:write_data(554)
Mar  7 11:14:47 mve-server2 smbd[8195]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Mar  7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] 
lib/util_sock.c:send_smb(762)
Mar  7 11:14:47 mve-server2 smbd[8195]:   Error writing 5 bytes to 
client. -1. (Connection reset by peer)
Mar  7 11:18:55 mve-server2 smbd[8244]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8244]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/access.c:check_access(328)
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected

Mar  7 11:18:55 mve-server2 smbd[8250]:   Denied connection from  (0.0.0.0)
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected

Mar  7 11:18:55 mve-server2 smbd[8250]:   Connection denied from 0.0.0.0
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:write_data(554)
Mar  7 11:18:55 mve-server2 smbd[8250]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:send_smb(762)
Mar  7 11:18:55 mve-server2 smbd[8250]:   Error writing 5 bytes to 
client. -1. (Connection reset by peer)



After some search i put the following params into my smb.conf, but this 
didn't help:


use sendfile = no
large readwrite = no
max xmit = 16644


Of course i will show you my complete smb.conf:

[global]
workgroup = mve
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
encrypt passwords = yes
unix extensions = yes
create mask = 0777
directory mask = 0777
username map = /etc/samba/smbusers
wins server = 172.20.6.104
wins support = no
domain logons = No
domain master 

Re: [Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share

2006-03-07 Thread Robert Schetterer

Hi Bjoern,
in general there is no problem with suse samba etc
ich have very large samba domains up and running, but dont forget
samba 3 is acting like win nt 4 server ( pdc )
its not an active dir controller as win 2003 server
if you need acitve dir for i.e exchange version higher than 5.5
you have to wait until samba 4 gets released, so think about that before 
your migration.


at a look at your logs this seems a network problem
have you any firewalls enabled on the suse or/and on the win client?
-Transport endpoint is not connected
for testing do not use this parameters

use sendfile =
large readwrite =
max xmit =
hosts allow =

your conf does  not look very logical to me
 why dont try edit the suse default conf

create mask = 0777
directory mask = 0777
dont do this in global

perhaps you should study more in the smb faqs which are online in german 
 too, ther are easy examples in it for testing

and migration examples.
dont mess around with groups etc at starting with samba

Best Regards

Björn Mayer schrieb:

Hello mailing-list,

this is my first post and i hope that you enjoy my very bad but 
sometimes funny english.


My Problem is the following:

First of all, my server-config:
Samba Version 3.0.20b-3.4-SUSE
on a
SUSE Linux Enterprise Server 9
with Kernel 2.6.5-7.252-smp


Now the problem is, that samba generally works fine, but it doesn't work
to work with a special application directly on a samba-share.
This app is EPLAN, who is configured to save his project-data on the 
servershare, because of the fact that there everything will be backuped 
regularly.


All this worked prior with a Windows Server 2003, which now should be 
replaced with the linux samba-server.


Now when we switched to Samba for testing purposes the error occured, 
that Windows throws the following Error while working with EPLAN on the 
networkshare:


---
Windows - Datenverlust beim schreiben

Es konnten nicht alle Daten für die Datei \\UNC-Path-to-share\file.ext 
gespeichert werden. Die Daten gingen verloren. Mögliche Ursache könnten 
Computerhardware oder Netzwerkverbindung sein. Versuchen Sie, die 
Dateien...

---

which in english means something like
---
Windows - data loss at writing

It was not possible to save all data for the file 
\\UNC-Path-to-share\file.ext. The data was lossed. Possible reasons can 
be the Hardware or networkconnection. ...

---

Copying data on the share while using copy ans paste with the explorer 
seems to be working fine.


I have no idea which reason this can have. Maybe some pro here outside 
has an idea.

Of course there can be recognized something in the /var/log/messages:

Mar  7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] 
lib/util_sock.c:write_data(554)
Mar  7 11:14:47 mve-server2 smbd[8195]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Mar  7 11:14:47 mve-server2 smbd[8195]: [2006/03/07 11:14:47, 0] 
lib/util_sock.c:send_smb(762)
Mar  7 11:14:47 mve-server2 smbd[8195]:   Error writing 5 bytes to 
client. -1. (Connection reset by peer)
Mar  7 11:18:55 mve-server2 smbd[8244]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8244]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/access.c:check_access(328)
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected

Mar  7 11:18:55 mve-server2 smbd[8250]:   Denied connection from  (0.0.0.0)
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:get_peer_addr(1222)
Mar  7 11:18:55 mve-server2 smbd[8250]:   getpeername failed. Error was 
Transport endpoint is not connected

Mar  7 11:18:55 mve-server2 smbd[8250]:   Connection denied from 0.0.0.0
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 11:18:55, 0] 
lib/util_sock.c:write_data(554)
Mar  7 11:18:55 mve-server2 smbd[8250]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Mar  7 11:18:55 mve-server2 smbd[8250]: [2006/03/07 

Re: [Samba] getting rid of lmhashes?

2006-03-07 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew Bartlett wrote:

 The only thing about the original patch that made me go
 ughh was the new parameter.  Can we piggy back this off
 an existing setting somehow?  Perhaps 'lanman auth = no'?
 
 That would be reasonable, and has pro's and cons:

  - The admin probably expects that 'lanman auth = no' 
 prevents any work (storage and authentication) with
 the LM hash

  - But this prevents the admin from storing the hash 
 for the future, in case he has to back out of the
 security upgrade (finds win9X machines back on
 the network).

Since it would only affect users who had changed their
password, I think that's ok.  Unless anyone has violent
objections I'll make the smake change to Mark's patch
and get it in for 3.0.22.






cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEDYQEIR7qMdg1EfYRAszqAJ97E6TmVbzxRXiftmp6xisYt8KApwCdHUPn
KFsv+iCIvdHVnRdBxhN5xxA=
=01Fo
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 6 ( Manager - sambaadmin)

2006-03-07 Thread Natxo Asenjo
On 3/4/06, John H Terpstra [EMAIL PROTECTED] wrote:


 I'd be delighted if someone steps forward with an offer to take over
 responsibility for maintenance and improvement of the documentation. Its
 about time for a more capable and more enthusiastic person to have a go.
 Please allow me rush to step aside. :-)


for what it's worth: THANKS!!! for all your efforts with this documentation.
I bought the book, I know of lots of people who have working samba domains
thanks to your work.

Will you write such a piece for the new samba version? I truly hope so,
although if you do not I will certainly understand and respect your
decision.

And again: thanks a lot for your work.
--
Groeten,
J.Asenjo
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share

2006-03-07 Thread Beschorner Daniel
We have a similar or same problem with one of our servers after upgrade from
3.0.14 to 3.0.21x (incidentally??).

The log shows things like:

write_data: write failure in writing to client 192.168.17.249. Error Broken
pipe

[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
[2006/03/06 20:46:47, 0] lib/access.c:check_access(328)
[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from  (0.0.0.0)
[2006/03/06 20:46:47, 1] smbd/process.c:process_smb(1187)
[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2006/03/06 20:46:47, 0] lib/util_sock.c:write_data(557)
  write_data: write failure in writing to client 192.168.17.250. Error
Connection reset by peer
[2006/03/06 20:46:47, 0] lib/util_sock.c:send_smb(765)
  Error writing 5 bytes to client. -1. (Connection reset by peer)

Clients are XP x64.

When saving fails the Windows log reports mrxsmb - delayed write failed.

I still suspect the network hardware (switch? NICs?) to do something wrong,
but can't Samba take out yet.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3 by Example - chapter 5 6 ( Manager - sambaadmin)

2006-03-07 Thread Eric J. Feldhusen

Natxo Asenjo wrote:

On 3/4/06, John H Terpstra [EMAIL PROTECTED] wrote:

I'd be delighted if someone steps forward with an offer to take over
responsibility for maintenance and improvement of the documentation. Its
about time for a more capable and more enthusiastic person to have a go.
Please allow me rush to step aside. :-)


for what it's worth: THANKS!!! for all your efforts with this documentation.
I bought the book, I know of lots of people who have working samba domains
thanks to your work.

Will you write such a piece for the new samba version? I truly hope so,
although if you do not I will certainly understand and respect your
decision.

And again: thanks a lot for your work.


Agreed, I can't say thanks enough. I've purchased both editions of the 
How-To and By-Example to support your efforts.  Both books match up with 
Samba for quality, and I'll continue to point people at both volumes for 
any Samba questions that come up.


Eric
--
Eric Feldhusen
System Administrator http://www.remc1.org
[EMAIL PROTECTED]
PO Box 270  (906) 482-4520  x239
809 Hecla St(906) 482-5031 fax
Hancock, MI  49930  (906) 370 6202 mobile
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba + cups = raw postscript output

2006-03-07 Thread Chris
On Tuesday 07 March 2006 05:58, David Smith wrote:
  -Original Message-
  From: Chris [mailto:[EMAIL PROTECTED]
  Is it possible that you set up a raw printer in CUPS instead of
  associating the proper PPD with it?

 No, it does have the right PPD file, but the filter doesn't get
 called as it being passed through as RAW.

  It is a PS printer, right?

 Yep, well, sorta... Postscript level2. This is why I'm wanting to
 filter through the foomatic rip to a PCL output (or postscript level
 2 will do). I've got the a PPD file from linuxprinting.org which has
 the correct filters for converting to PCL.

You might try using the printers official PS PPD for NT4 when you set it 
up in CUPS, then update your Samba/Windows installations.

  Did you use cupsaddsmb? If so, it would have needed to have
  been patched
  for the CUPS version 6 driver to properly set the printer up in
  Samba.

 No. That didn't appear to work too well... Perhaps I'm wanting the
 patch... I added it using the windows install driver method in the
 samba docs, then assigned it to each printer using the rpcclient
 method.

Right, without the patch cupsaddsmb will not setup the version 6 drivers 
properly. It is the easiest way but the others should work.

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


[Samba] Michael Weiss ist außer Haus.

2006-03-07 Thread Michael Weiss/Denic

Ich werde ab  07.03.2006 nicht im Büro sein. Ich kehre zurück am  12.03.2006.

Bitte wenden Sie sich mit wichtigen Angelegenheiten an [EMAIL PROTECTED] Danke.

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


[Samba] How can I prevent deleting of primary directory while allowing full privileges to subdirectories

2006-03-07 Thread Jeff Boyce

Greetings -

In general terms I would like to prevent users from deleting or moving a
primary directory within a share, but allow users to create / delete / move
subdirectories and files that reside under these directories.  My reason for
needing this type of setup is to prevent an accidental deletion of a common
directory and to maintain a planned directory structure at the top level of
the share.  My system information is listed below.

Linux RHES 3
Samba 3.0.9-1.3
File Server for 8 Windows boxes (2000 and XP)

The share and directory structure that explains what I would like to do is
listed below.  We have a small open office where everyone works together on
multiple projects and proposals.  The permissions currently set for the
ECOSYSTEM share are read/write/execute (0777) for the entire share, with all
subdirectories inheriting permissions.  I would like to be able to allow all
users (or a specified group) to create/delete/move directories such as
Project1, or any files under Project1, as they wish.  I would like to
prevent anyone but the administrator with root privileges from accidentally
deleting or moving the Archive, Admin, Marketing, Projects, and Reference
directories.  The pertinent details of my smb.conf are also listed below.

ECOSYSTEM
  |-Archive
  |-Admin
  |-Marketing
   |-Proposal1
   |-Proposal2
  |-Projects
   |-Project1
   |-Project2
  |-Reference


smb.conf
#== Global Settings
[global]
server string = Bison samba server
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/%m.log
max log size = 50
unix password sync = yes
pam password change = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 33
preferred master = yes
password server = None
guest ok = yes
security = SHARE
dns proxy = no

# Share Definitions
[homes]
comment = Home Directories
browseable = no
writeable = yes
hide dot files = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

[ecosystem]
path = /ecosystem
writeable = yes
create mask = 0777
directory mask = 0777
inherit permissions = yes

I have searched through the list archives and found discussion of a similar
issue at  http://marc.theaimsgroup.com/?l=sambam=110746845920890w=2 , but
the solution of the issue is not clearly identified.  I have read and
re-read the 'Definitive Guide to Samba 3' without success at understanding
if this is possible or not.  If anyone has implemented this type of
permissions setup, can you provide some guidance and details.  Thanks for
your assistance.

Jeff Boyce
Meridian Environmental
www.meridianenv.com 


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


Re: [Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share

2006-03-07 Thread Jeremy Allison
On Tue, Mar 07, 2006 at 03:51:34PM +0100, Beschorner Daniel wrote:
 We have a similar or same problem with one of our servers after upgrade from
 3.0.14 to 3.0.21x (incidentally??).
 
 The log shows things like:
 
 write_data: write failure in writing to client 192.168.17.249. Error Broken
 pipe
 Clients are XP x64.
 
 When saving fails the Windows log reports mrxsmb - delayed write failed.
 
 I still suspect the network hardware (switch? NICs?) to do something wrong,
 but can't Samba take out yet.

My money is on the switch :-). This is a classic my tcp connection
went away and I don't know why error message.

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


Re: [Samba] [Samba Version 3.0.20b-3.4-SUSE]: WinXP-Error writing to share

2006-03-07 Thread Robert Schetterer

Hi, if it is a bug it is relate to winxp 64 versions,
i had never such problems with suse/samba during all upgrades from first 
samba 3 release up to now

on different servers 32/64 intel  /amd  with mutliple nics
perhaps somthing is allready in bugzilla about win xp 64?
Regards
Beschorner Daniel schrieb:

We have a similar or same problem with one of our servers after upgrade from
3.0.14 to 3.0.21x (incidentally??).

The log shows things like:

write_data: write failure in writing to client 192.168.17.249. Error Broken
pipe

[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
[2006/03/06 20:46:47, 0] lib/access.c:check_access(328)
[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from  (0.0.0.0)
[2006/03/06 20:46:47, 1] smbd/process.c:process_smb(1187)
[2006/03/06 20:46:47, 0] lib/util_sock.c:get_peer_addr(1225)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2006/03/06 20:46:47, 0] lib/util_sock.c:write_data(557)
  write_data: write failure in writing to client 192.168.17.250. Error
Connection reset by peer
[2006/03/06 20:46:47, 0] lib/util_sock.c:send_smb(765)
  Error writing 5 bytes to client. -1. (Connection reset by peer)

Clients are XP x64.

When saving fails the Windows log reports mrxsmb - delayed write failed.

I still suspect the network hardware (switch? NICs?) to do something wrong,
but can't Samba take out yet.
  


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


[Samba] preexec and client timeout when script long to execute

2006-03-07 Thread Tomasz Chmielewski
I wrote a script which downloads user profile from a remote server if 
the profile doesn't exist on a local server - and executes it via 
preexec in [profiles] share.


It works fine, however, there is a major glitch with it.

After 3 minutes or so, the client times out, and says that that the 
server-side profile cannot be found, contact your administrator etc.


The script is still running and downloads the profile from the remote 
server, which will take few more minutes.


Is there a way to tell the client not to time-out during logon, when 
the script is being executed?



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


Re: [Samba] Dos client samba

2006-03-07 Thread Maurizio Faccio
I change the use sendfile=no, but I still obtain the same error
And the log.smbd only says. As I tell in a previous mail, sometimes the
connection was reset by the client, but more often it is only disconnect. I
guess that there is a trouble in the client but I cannot guess what.

[2006/03/07 13:45:44, 1] smbd/service.c:close_cnum(836)
  desc2 (192.168.0.18) closed connection to service datos


I will try the same process to run in the DOS box  over a win98 share, to
see if it is a trouble with the client soft.

Thank you

Maurizio

- Original Message - 
From: Jeremy Allison [EMAIL PROTECTED]
To: Maurizio Faccio [EMAIL PROTECTED]
Cc: Jeremy Allison [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, March 06, 2006 6:51 PM
Subject: Re: [Samba] Dos client samba


 On Mon, Mar 06, 2006 at 07:06:55PM -0300, Maurizio Faccio wrote:
  I run an application made in Clipper. The program says Write error, or
  things like that.
  In the logs
  Here I post some of the log errors . Desc2 is the DOS client.
  [2006/03/06 15:52:10, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
  [2006/03/06 15:52:10, 1] smbd/service.c:close_cnum(836)
desc2 (192.168.0.18) closed connection to service datos

 That's the server noticing the client has closed the connection
 on us (Error = Connection reset by peer - peer == client).

 We need to know why the client is doing this. Try setting sendfile
 to no, as DOS clients might not be able to cope with the data
 rate from a modern kernel.

 Jeremy.


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


Re: [Samba] preexec and client timeout when script long to execute

2006-03-07 Thread Robert Schetterer

Tomasz Chmielewski schrieb:
I wrote a script which downloads user profile from a remote server if 
the profile doesn't exist on a local server - and executes it via 
preexec in [profiles] share.


It works fine, however, there is a major glitch with it.

After 3 minutes or so, the client times out, and says that that the 
server-side profile cannot be found, contact your administrator etc.


The script is still running and downloads the profile from the remote 
server, which will take few more minutes.


Is there a way to tell the client not to time-out during logon, when 
the script is being executed?




Hi  i also tested such stuff,
and failed ,it maybe possible if you are increasing the time value with 
poldedit.exe Ntconfig.pol for profile logon waiting time to this user 
and/or machine

Best Regards

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


[Samba] Samba port required

2006-03-07 Thread Andrew Nash
I know it’s a dirty word around here, and I apologise in advance, but I need a 
version of Samba later than the version 3.0.10 that I’m currently running on a 
SCO UnixWare 7.1.4 box.
   
  Does anyone have a working port that I could purchase?
   
  Failing that, does anyone know what I’d need to do to be able to compile and 
link the source for myself.  I’ve installed the SCO UDK and GNU tools.  I 
downloaded the latest Samba source, and ran the configure script.  However, the 
Make process failed – I don’t have a note of any error messages with me at 
present.  Do you know if any modifications to the source are required for 
UnixWare, or if any special compiler switches are required.  I’ve never used a 
Unix compiler before, so I’m pretty much in the dark.
   
  I’d really appreciate some help with this.  And please don’t forget - I’m 
only a SCO-user!
   
  David
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT

2006-03-07 Thread Raj Talwar
Hi, I am using winbindd to authenticate a computer. The computer account exists 
in the W2K domain controller. The authentication comes back with the error 
NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT. No session key is returned. 
   
  Looking at the samba code it seems this error means that the account is a 
workstation account (which is correct). In samba 4 code base there is a flag 
(MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT) which if set allows workstations to 
authenticate. 
   
  My question is if there is any config change that can be done on W2K to allow 
workstation authentication. Any other way of getting this done are also 
welcome. 
   
  Any help would be greatly appreciated. 
   
  Thank you. 
   
  Raj. 


-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] preexec and client timeout when script long to execute

2006-03-07 Thread Tomasz Chmielewski

Robert Schetterer wrote:

Tomasz Chmielewski schrieb:
I wrote a script which downloads user profile from a remote server if 
the profile doesn't exist on a local server - and executes it via 
preexec in [profiles] share.


It works fine, however, there is a major glitch with it.

After 3 minutes or so, the client times out, and says that that the 
server-side profile cannot be found, contact your administrator etc.


The script is still running and downloads the profile from the remote 
server, which will take few more minutes.


Is there a way to tell the client not to time-out during logon, when 
the script is being executed?




Hi  i also tested such stuff,
and failed ,it maybe possible if you are increasing the time value with 
poldedit.exe Ntconfig.pol for profile logon waiting time to this user 
and/or machine


If such a value exists.
Anyone knows?


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


[Samba] utility of winbind on a pdc ?

2006-03-07 Thread Stephane Durieux

Hi

I can t see the utility of winbind on a PDC
if the ldap backend contains users accounts belongs to  sambasamaccount, 
posix and shadowaccount classes


Can someone tell me more about this ?

Thanks

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


[Samba] profile and home share on a remote server

2006-03-07 Thread Stephane Durieux

Hello

Is it possible to configure profile and home share on a remote server in 
smb.conf of a PDC (a NAS server member of the domain for example)


thanks for reply

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


[Samba] Samba Errors with 3.0.21b on AIX -- please help

2006-03-07 Thread Ray Gebbie

I have been trying for 3 weeks to get 3.0.21b to work on AIX 5.2.  I am
currently running 3.0.4, which has no problems.  I am getting very
frustrated, and am about to give up entirely on Samba.

Here are some of the errors I am getting:

[root mcom4:/opt/Samba/3.0.21b/bin]  ./smbclient -L ccasemcom4 -d 3 -N
-Ub06reg%Becky1208
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file /opt/Samba/3.0.21
b/lib/smb.conf
Processing section [global]
added interface ip=11.16.153.89 bcast=11.16.155.255 nmask=255.255.252.0
Client started (version 3.0.21b).
Connecting to 11.16.153.89 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x60890235
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
SPNEGO login failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
session setup failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

After setting client schannel = no
[root mcom4:/opt/Samba/3.0.21b/bin]  ./smbclient -L ccasemcom4 -d 3 -N
-Ub06reg%Becky1208
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file /opt/Samba/3.0.21
b/lib/smb.conf
Processing section [global]
added interface ip=11.16.153.89 bcast=11.16.155.255 nmask=255.255.252.0
Client started (version 3.0.21b).
resolve_lmhosts: Attempting lmhosts lookup for name ccasemcom40x20
resolve_wins: Attempting wins lookup for name ccasemcom40x20
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name ccasemcom40x20
name_resolve_bcast: Attempting broadcast lookup for name ccasemcom40x20
Got a positive name query response from 11.16.153.89 ( 11.16.153.89 )
Connecting to 11.16.153.89 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x60890235
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
SPNEGO login failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
session setup failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

[root mcom4:/opt/Samba/3.0.21b/bin]  ./smbclient -L ccasemcom4 -d 3
-Ub06reg%Becky1208
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file /opt/Samba/3.0.21
b/lib/smb.conf
Processing section [global]
added interface ip=11.16.153.89 bcast=11.16.155.255 nmask=255.255.252.0
Client started (version 3.0.21b).
Connecting to 11.16.153.89 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x60890235
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
SPNEGO login failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
session setup failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

testparm does not show any problems with smb.conf.  Here is the Global
section of smb.conf:

workgroup = FEDERATED
netbios name = CCASEMCOM4
server string = MCOM4 Samba Server
security = DOMAIN
update encrypted = Yes
password server = fd000xsfed01
smb passwd file = /var/samba/private/smbpasswd
passwd program = /usr/bin/passwd
log file = /opt/Samba/30.0.21b/var/log.%m
large readwrite = No
max xmit = 65535
time server = Yes
unix extensions = No
deadtime = 30
max open files = 15000
dns proxy = No
kernel oplocks = No
ldap ssl = no
create mask = 0775
directory mask = 0775
map archive = No
oplocks = No
level2 oplocks = No
strict locking = No
client schannel = no

If I need to provide more info, please let me know.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662

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


[Samba] load printers = Yes produces working but invisible printers

2006-03-07 Thread Wolfgang Ratzka

Hi,
I am running samba 3.0.21c (Sernet packages on Debian Sarge) and trying
to automatically share cups printers via load printers = Yes

- Printing seems to work if you install the printers on the client by
  calling con2prt.exe, but
- the printers do not appear as shares when   browsing the network
  neighbourhood or calling net view \\servername on the client.
- They do appear, if I include an explicit section for each printer
  in smb.conf

Bug or feature?

My configuration options:
[global]
  ...
  printcap name = cups
  cups server = localhost
  printing = CUPS
  load printers = Yes
  ...
[printers]
  comment = SMB print spool
  path = /var/spool/samba
  guest ok = yes
  printable = yes
  browseable= yes
  use client driver = no


Kind regards,
Wolfgang Ratzka
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] getlocalsid error

2006-03-07 Thread Mont Rothstein
Thanks for the slap upside the head, my ability to query via the command
line is definitely broken.  I'd gotten console access working and forgotten
to check that.

Also, just so you don't think I'm a complete fool, the root share was only
in there because I'm testing (this is all in a VM).

Off to figure out why ldapsearch isn't working.

Thanks,
-Mont


On 3/6/06, Craig White [EMAIL PROTECTED] wrote:

 On Mon, 2006-03-06 at 17:13 -0800, Mont Rothstein wrote:
  I am trying to integrate Samba version is 3.0.10 with Fedora Directory
  Server (1.0.1) on RHEL 4.
 
  I am attempting to follow:
  http://directory.fedora.redhat.com/wiki/Howto:Samba
 
  but I am getting an error with net getlocalsid.  The output is:
 
  [2006/03/06 10:00:21, 0] lib/smbldap.c:smbldap_connect_system(850)
failed to bind to server with dn= cn=Directory Manager Error: Can't
  contact LDAP server
  (unknown)
  [2006/03/06 10:00:21, 0] lib/smbldap.c:smbldap_search_suffix(1155)
smbldap_search_suffix: Problem during the LDAP search: (unknown)
 (Timed
  out)
  SID for domain RHELES4RS1 is: S-1-5-21-807157010-1821471989-4121009367
 
  While I get a SID I assume I should not proceed with these errors.
 
  I've gone over my config I can't find my error.  I've searched online
 and
  can't find anything.
 
  The full ouput of testparm is below.
 
  Any ideas as to what I've done wrong?
 
 
 We're sort of lacking confirmation that you can actually query the LDAP
 server including binding as cn=Directory Manager from the command line.
 There's no reason to believe at this point that the problem is Samba

 Craig

 ps - I would heavily recommend against sharing your /root directory via
 samba

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

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


RE: [Samba] Unable to join to domain: The username could not be found.

2006-03-07 Thread James Taylor
Common issue I am seeing, are you using the smbldap-useradd script?  If so
you need to modify the script so that when the machine account is created in
ldap that the sambaSAMAccount information is added to the machine account
that you are joining to the Samba Domain.  

JT

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Hakan BAYINDIR
Sent: Monday, March 06, 2006 9:43 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Unable to join to domain: The username could not be
found.

I'm using the root account, the root. I think the accounts are enabled
and I used smbpasswd to set the paswd. I also want to mention that I'm
using idealx scripts to maintain smb and ldap at the same time.

Mark Rutherford wrote:
 You need to use the superuser account, root to join a domain.
 Are you using 'root' or 'administrator' to do this?

 Also, is your root account enabled and has a password set using
 smbpasswd?

 Hakan BAYINDIR wrote:
 Hi,

 This is my first post here, so if I make any mistakes, warnings are
 always welcome. I'm working in an organization and we are migrating are
 domain controllers from windows to linux. I'm trying to deploy a working
 configuration of samba. Using openSuSE 10.0. I was following the Keith
 Robertson's how-to from IBM-Developerworks but in the end; the finished
 installation fails to work as expected.

 I can see the shares, log in with correct id's which are saved in
 ldap, transfer files, share the same workgroup with supplying correct
 username and password which is saved in ldap again. But when I try to
 join the domain, windows system wants username and password. It refuses
 it if I give wrong creds and if I give the true ones, refuses again with
 the user name could not be found

 I've tried signorseal patch, configured local policy but no hopes.
 Also samba config test and slaptest returns OK. Any help will be highly
 appreciated. Thanks in advance.

 Hakan BAYINDIR
   




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

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


Re: [Samba] [Repost] Offline Files No Go

2006-03-07 Thread pfb4212

Robert,
 I understand about the configuration options on the Windows side, but what
my problem is that no matter what I setup on the windows side, the clients
do not behave properly with offline files from my Samba server.  If I set
them offline from a windows server, there is no problem.  I only have
issues when I make a samba share available offline.   I need to make every
user's home directory available offline for laptop travel, but I can't get
the system to work.
I am really starting to think this is a bug in my version of Samba.

Thanks!  -Cheers, Peter.



 In specification, Murphy's
Law supersedes Ohm's Law.
   --Unknown



   
 Robert Schetterer 
 [EMAIL PROTECTED] 
 r.org To 
   [EMAIL PROTECTED] 
 03.03.2006 12:42   cc 
   samba@lists.samba.org   
   Subject 
   Re: [Samba] [Repost] Offline Files  
   No Go   
   
   
   
   
   
   




Hi Peter,
there is only one parameter in smb.conf
with offline files to a share

from man smb.conf
csc policy (S)

 This stands for client-side caching policy, and specifies how
clients capable of offline caching will cache the files in the share.
The valid values are: manual, documents, programs, disable.

 These values correspond to those used on Windows servers.

 For example, shares containing roaming profiles can have offline
caching disabled using csc policy = disable.

 Default: csc policy = manual

 Example: csc policy = programs

but if you wanna fine tune i.e by users/groups/host etc you have
to do this with NTconfig.pol in the netlogon share created by
poledit.exe which is more flexible
so would say use csc policy = manual in your conf so it depends to users
entries when or what offline sync in a share, but i dont think this is a
good idea at the profiles share ( as i saw it in your conf ,i use
disable here )

Best Regards

[EMAIL PROTECTED] schrieb:
 Robert,
Ah, I now see what you are meaning...  I have used the Active
Directory
 policy manager to create the policies that I want and have successfully
run
 offline files from a Windows server, my trouble is that when I move to a
 Samba server, the Windows PCs have improper behavior.  (i.e. files can
not
 be accessed even with proper permissions, applications report the files
as
 non-existant, etc.)I am thinking that my problem is either related to
 my Samba configuration or my Samba version.  How does my configuration
file
 compare to your configuration?

 Thanks so much!  -Cheers, Peter.


 
  In specification, Murphy's
 Law supersedes Ohm's Law.
--Unknown





  Robert Schetterer

  [EMAIL PROTECTED]

  r.org
To


  03/02/2006 05:26  [EMAIL PROTECTED]

  PM
cc
samba@lists.samba.org










Subject
Re: [Samba] [Repost] Offline Files

No Go

















 hi, sorry that i wrote this like missunderstanding,
 what i mean you can fully control offline file/directory behavior
 with NTconfig.pol for user ,groups ,client machines
 so this is the tool/function you need
 i use it to disable offline files on workstations and have it possible
 with laptop with different samba shares.
 there are a lot of ohter features possible, so exclude filestypes etc..
 Regards
 [EMAIL PROTECTED] schrieb:
 Robert,
I don't want to disable this... I want to make it work.  That is what
 I
 am looking for help with.
 Thanks. -Cheers, Peter.


 
  In specification, Murphy's
 Law supersedes Ohm's Law.
--Unknown





  Robert Schetterer

  [EMAIL PROTECTED]

  r.org
 To
[EMAIL PROTECTED]

  02.03.2006 04:09
 cc
samba@lists.samba.org

 Subject
Re: [Samba] [Repost] Offline
Files

 

Re: [Samba] preexec and client timeout when script long to execute

2006-03-07 Thread Robert Schetterer

Tomasz Chmielewski schrieb:

Robert Schetterer wrote:

Tomasz Chmielewski schrieb:
I wrote a script which downloads user profile from a remote server 
if the profile doesn't exist on a local server - and executes it via 
preexec in [profiles] share.


It works fine, however, there is a major glitch with it.

After 3 minutes or so, the client times out, and says that that the 
server-side profile cannot be found, contact your administrator etc.


The script is still running and downloads the profile from the 
remote server, which will take few more minutes.


Is there a way to tell the client not to time-out during logon, 
when the script is being executed?




Hi  i also tested such stuff,
and failed ,it maybe possible if you are increasing the time value 
with poldedit.exe Ntconfig.pol for profile logon waiting time to this 
user and/or machine


If such a value exists.
Anyone knows?


for sure this value exists ( and many tuning stuff about logins and time 
), its special made for low traffic conections,which are typical for vpn 
or modem cons , but it musnt solve your problem

cause login is very complex

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


Re: [Samba] [Repost] Offline Files No Go

2006-03-07 Thread Robert Schetterer

Hi Peter,
i dont know any bugs with samba and offline files, sync is a complex 
stuff on native windows servers too,
on the samba side there is only this parameter to controll them, so 
other stuff is client related

which can be very fine controlled by adms or/and local machine policies.
for sure you should have the latest samba version , and a brand new win 
client for testing with all patches  installed.

i recommend study tech net working with offline files.
As i did synced homes  for laptops  last time i had no problem with it, 
but i was not

very lucky about the gereral  implementation  of this feature in windows.
so i did it with rsync wich works more nice.
theres only one good stuff and this is the general controll of this 
behavior  in a domain

from NTconfig.pol which i like very much
Best Regards

[EMAIL PROTECTED] schrieb:

Robert,
 I understand about the configuration options on the Windows side, but what
my problem is that no matter what I setup on the windows side, the clients
do not behave properly with offline files from my Samba server.  If I set
them offline from a windows server, there is no problem.  I only have
issues when I make a samba share available offline.   I need to make every
user's home directory available offline for laptop travel, but I can't get
the system to work.
I am really starting to think this is a bug in my version of Samba.

Thanks!  -Cheers, Peter.



 In specification, Murphy's
Law supersedes Ohm's Law.
   --Unknown



   
 Robert Schetterer 
 [EMAIL PROTECTED] 
 r.org To 
   [EMAIL PROTECTED] 
 03.03.2006 12:42   cc 
   samba@lists.samba.org   
   Subject 
   Re: [Samba] [Repost] Offline Files  
   No Go   
   
   
   
   
   
   





Hi Peter,
there is only one parameter in smb.conf
with offline files to a share

from man smb.conf
csc policy (S)

 This stands for client-side caching policy, and specifies how
clients capable of offline caching will cache the files in the share.
The valid values are: manual, documents, programs, disable.

 These values correspond to those used on Windows servers.

 For example, shares containing roaming profiles can have offline
caching disabled using csc policy = disable.

 Default: csc policy = manual

 Example: csc policy = programs

but if you wanna fine tune i.e by users/groups/host etc you have
to do this with NTconfig.pol in the netlogon share created by
poledit.exe which is more flexible
so would say use csc policy = manual in your conf so it depends to users
entries when or what offline sync in a share, but i dont think this is a
good idea at the profiles share ( as i saw it in your conf ,i use
disable here )

Best Regards

[EMAIL PROTECTED] schrieb:
  

Robert,
   Ah, I now see what you are meaning...  I have used the Active


Directory
  

policy manager to create the policies that I want and have successfully


run
  

offline files from a Windows server, my trouble is that when I move to a
Samba server, the Windows PCs have improper behavior.  (i.e. files can


not
  

be accessed even with proper permissions, applications report the files


as
  

non-existant, etc.)I am thinking that my problem is either related to
my Samba configuration or my Samba version.  How does my configuration


file
  

compare to your configuration?

Thanks so much!  -Cheers, Peter.



 In specification, Murphy's
Law supersedes Ohm's Law.
   --Unknown







  

 Robert Schetterer



  

 [EMAIL PROTECTED]



  

 r.org


To
  

  

 03/02/2006 05:26  [EMAIL PROTECTED]



  

 PM


cc
  

   samba@lists.samba.org



  

  

  

  

  
Subject
  

   Re: [Samba] [Repost] Offline Files



  

   No Go



  

  

  

  

  

  

  



hi, sorry that i wrote 

[Samba] samba on active Directory domain issues

2006-03-07 Thread Guillermo Gutierrez
 Hi all,
 I have rebuilt the gentoo linux samba server that I was having trouble with 
 and I'm trying to again add the samba server to a windows 2003 active 
 directory but I am still running into all of the same symptoms.
 
 I am able to see the machine in NetBeui/NetBios (My network Places on 
 2000/XP) and I can navigate inside the server to the public folder thatI have 
 set up but I can not get into the home directory for the for my domain 
 profile (/home/DOMAINNAME/USERNAME).
 
 Looking at the log.machinename log file from samba, I see this from trying 
 to connect to the public folder:
 
   init msg_type=0x81 msg_flags=0x0
 [2006/03/07 13:08:07, 0] lib/util_sock.c:write_data(557)
   write_data: write failure in writing to client 10.11.7.56. Error Connection 
 reset by peer
 [2006/03/07 13:08:07, 0] lib/util_sock.c:send_smb(765)
   Error writing 4 bytes to client. -1. (Connection reset by peer)
 [2006/03/07 13:08:07, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2006/03/07 13:08:07, 5] auth/auth_util.c:debug_nt_user_token(433)
   NT user token: (NULL)
 [2006/03/07 13:08:07, 5] auth/auth_util.c:debug_unix_user_token(454)
   UNIX token of user 0
   Primary group is 0 and contains 0 supplementary groups
 [2006/03/07 13:08:07, 5] smbd/uid.c:change_to_root_user(324)
   change_to_root_user: now uid=(0,0) gid=(0,0)
 [2006/03/07 13:08:07, 2] smbd/server.c:exit_server(614)
   Closing connections
 [2006/03/07 13:08:07, 3] smbd/connection.c:yield_connection(69)
   Yielding connection to
 [2006/03/07 13:08:07, 3] smbd/connection.c:yield_connection(76)
   yield_connection: tdb_delete for name  failed with error Record does not 
 exist.
 [2006/03/07 13:08:07, 3] smbd/server.c:exit_server(655)
   Server exit (process_smb: send_smb failed.)
 
 I am using samba 3.0.21c on  Gentoo Linux kernel 2.6.15-r1. I can send the 
 contents of my smb.conf or other config files if needed.
 Please help, I am quickly getting to the end of my rope.
 
 TIA,
 
 Guillermo Gutierrez
 Development Systems Engineer
 Market Scan Information Systems
 (818) 575-2000 x2427
 [EMAIL PROTECTED]
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT

2006-03-07 Thread Andrew Bartlett
On Tue, 2006-03-07 at 09:53 -0800, Raj Talwar wrote:
 Hi, I am using winbindd to authenticate a computer. The computer 
 account exists in the W2K domain controller. The authentication 
 comes back with the error NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT. 
 No session key is returned. 

   Looking at the samba code it seems this error means that the account
  is a workstation account (which is correct). In samba 4 code base 
 there is a flag (MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT) which if 
 set allows workstations to authenticate. 

This flag was merged into Samba 3.0 shortly after that.  I think this is
in 3.0.21, but ask Jeremy, as he did that side of the implementation.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] utility of winbind on a pdc ?

2006-03-07 Thread Andrew Bartlett
On Tue, 2006-03-07 at 19:32 +0100, Stephane Durieux wrote:
 Hi
 
 I can t see the utility of winbind on a PDC
 if the ldap backend contains users accounts belongs to  sambasamaccount, 
 posix and shadowaccount classes
 
 Can someone tell me more about this ?

On a PDC, winbind would provide services for trusted domains, and to
allow pam_winbind/ntlm_auth etc to function.  
A common situation is to join Samba as a DC to itself, so that winbindd
and ntlm_auth can be used to support Squid NTLM authentication.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Samba 3.0.21c Available for Download

2006-03-07 Thread Thomas Bork

Gerald (Jerry) Carter wrote:


Can you send me your smb.conf?  Thanks.


Did you received my smb.conf?


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


Re: [Samba] Unable to join to domain: The username could not be found.

2006-03-07 Thread Hakan BAYINDIR
@James Taylor,
Yes I'm using idealX scripts which includes smbldap-useradd. I'll take
your advice and look to script for it, if it's not doing that (I'm using
ver 0.9.1 which is latest) I'll try to add this functionality and reply
back it to here a.s.a.p, thX.

@Schoenfeld
I use root as username to register to domain. Unfortunately I can send a
slapcat on friday since I don't go to the office everyday. I'll post it.
thX.

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


RE: [Samba] Samba + cups = raw postscript output

2006-03-07 Thread David Smith
 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Is it possible that you set up a raw printer in CUPS instead of 
 associating the proper PPD with it?
No, it does have the right PPD file, but the filter doesn't get called as it
being passed through as RAW.
 
 It is a PS printer, right?
Yep, well, sorta... Postscript level2. This is why I'm wanting to filter
through the foomatic rip to a PCL output (or postscript level 2 will do).
I've got the a PPD file from linuxprinting.org which has the correct filters
for converting to PCL.

 Did you use cupsaddsmb? If so, it would have needed to have 
 been patched 
 for the CUPS version 6 driver to properly set the printer up in Samba.
No. That didn't appear to work too well... Perhaps I'm wanting the patch...
I added it using the windows install driver method in the samba docs, then
assigned it to each printer using the rpcclient method.

Dave

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


[Samba] XP clients hang on accessing certain directories

2006-03-07 Thread Adam Goldman
Hi all. I'm trying to debug a strange Samba/WinXP problem, but I don't
know much about Windows or CIFS, so any insight from anyone would be
much appreciated. Here's the situation:

The initial problem was that clicking on certain directories on an
XP Pro SP2 client would cause the client to freeze for a few minutes
and then complain that the directory is inaccessable. This problem was
also reported with NT clients, but 98 seems to be happy. Changing the
max protocol to LANMAN2 doesn't help. Disabling the web client service
on the client doesn't help.

I noted that the problem was also exhibited by NET USE'ing the share
from a command prompt and then trying to DIR the bad directories.
The client would hang for a while and then report no files in the
directory.

It's relatively consistent that certain directories will trigger the
problem and other directories are fine. I don't notice anything too
unusual about the bad directories.

This problem was first observed with an early 3.0.x version of Samba on
a Linux 2.4.x machine. I upgraded to 3.0.21b from the Debian package, no
change.

Strangely enough, tarring up the bad directory tree and dropping it on
another Samba 3.0.21b server doesn't seem to reproduce the problem.

tcpdump seems to indicate that Samba is sending a FINDFIRST response that
the client is ignoring, but I may be misreading things.

Here are some logs:

relevant portion of log.smbd at debug level 10:
http://www.eskimo.com/~adam/samba/noogie.log.smbd.trimmed

binary libpcap capture of relevant packets, after setting samba to use
port 139 so tcpdump recognizes them as smb:
http://www.eskimo.com/~adam/samba/noogie.tcpdump

textual version of tcpdump capture, at varying verbosity levels:
http://www.eskimo.com/~adam/samba/noogie.tcpdump.text-r
http://www.eskimo.com/~adam/samba/noogie.tcpdump.text-vr
http://www.eskimo.com/~adam/samba/noogie.tcpdump.text-vvr

timestamps of what i was doing, for correlation with above logs:
http://www.eskimo.com/~adam/samba/noogie-tests

Hopefully there is someone out there who this makes more sense to than
it does to me... I will be looking forward to any suggestions as to where
to go from here.

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


[Samba] Client view update rate configurable?

2006-03-07 Thread Rice, Gary
I had our sysadmin set up samba on a unix host (sun os) with a
subdirectory as a mount point.

From my Windows XP machine, I've set up the T:\ drive as the device
connected to the unix node.

The configuration is working well except for the following issue:

If I create a file from the unix side:
$ touch MY_FILE.TXT

Unix creates the file in an instant but on my Windows machine it can
take as long as 53 seconds for the new file to show up on the T:\ drive.

Is there a way (configuration change perhaps) to reduce the latency?

Thanks.



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


[Samba] help! mount error 11 - can't find any info on this!!

2006-03-07 Thread bart3r

When I try to mount a windows share, I am getting the following error
message:

mount error 11 = Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

I am running this command:
mount.cifs //192.168.1.2/Clinic /mnt/clinic/ -o
username=administrator,password=x,rw

In /var/log/messages, i get the following:
 kernel:  CIFS VFS: cifs_mount failed w/return code = -11


I cannot find any documentation about this error, and no one else
seems to be getting it.
Does anyone know anything about this problem, and how I can resolve
this issue.

Any info would be great.
Thankyou.
Andrew.
--
View this message in context: 
http://www.nabble.com/help%21-mount-error-11---can%27t-find-any-info-on-this%21%21-t1243401.html#a3292130
Sent from the Samba - General forum at Nabble.com.

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


[Samba] session setup

2006-03-07 Thread Marcin Kryczek
hi,
in company i work for i often work on employees computers (to solve
their issues mainly). they do not have sufficient rights to all shares,
which i need,
i used to just connect to share i need and when samba denies permission
windows (xp) station asked me about password, so i typed my username and
pass and get access to everything i want.
recently i've changed main server in company (that is: hardware,
linux distribution and samba version) and i'm not able to do this 
trick anymore. i see in samba's logs: 
user 'login of employee' (from session setup) not permitted to access 
this share (share name), so it looks like samba do not allow me to
change login during session. it's a bit uncomfortable for me.
How can i back to my previous settings? Or even better - is there a way
to keep authentication via session setup (so normal employees could not
connect as other user even if they'll get his/her pass), which will
allow me to login as another user with some trick (maybe closing session
and starting new one or something like that?).


-- 
   . . Marcin Kryczek  .  .  .  .  .  .  .  .  .  .  .  .RLU: #316599 . .
  . . Gentoo Linux Developer.  .  .  .  .  .  .mail: [EMAIL PROTECTED] . .  
 . .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .PGP: 0xD6CFCCF1 . .
. Key Fingerprint: EE8F E832 54E4 2456 C582 5B32 E10F EEDC D6CF CCF1 . 



pgpY2rSLKjzCh.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] getlocalsid: adding domain info...failed

2006-03-07 Thread Mont Rothstein
I am trying to integrate Fedora Directory Server (1.0.1) and Samba (3.0.10)
on RHEL ES4.

When I execute net getlocalsid I get the following:

[2006/03/07 17:55:29, 0] lib/smbldap.c:smbldap_search_domain_info(1392)
  Adding domain info for WORKGROUP failed with NT_STATUS_UNSUCCESSFUL
SID for domain RHELES4RS1 is: S-1-5-21-807157010-1821471989-4121009367

My workgroup is currently set to workgroup and I can perform an ldapsearch.

I saw one refernce on the web to ignore this, but I was skeptical.

What could be causing this error?

The output of my testparm is below.

Thanks,
-Mont

Load smb config files from /etc/samba/smb.conf
Processing section [netlogon]
Processing section [profiles]
Processing section [homes]
Processing section [printers]
Processing section [repository]
Processing section [root directory]
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = rheles4rs1
password server = None
passdb backend = ldapsam:ldap://rheles4rs1.forayadams.foray.com:3911
username map = /etc/samba/smbusers
log file = /var/log/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
logon path = \\%L\profiles\%u
logon drive = H:
logon home = \\%L\%u\profiles
domain logons = Yes
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap admin dn = cn=Directory Manager
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap suffix = dc=forayadams,dc=foray,dc=com
ldap user suffix = ou=People
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw

[netlogon]
path = /var/lib/samba/netlogon
browseable = No

[profiles]
path = /var/lib/samba/profiles
read only = No
create mask = 0600
directory mask = 0700

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[repository]
path = /repository
valid users = testadmin, testuser
read only = No
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Two PDC's conflict

2006-03-07 Thread Pavan

Hi All,

   I am currently running two PDC's with different domain names on 
the same network. But after a day of smooth running I am starting to 
have problems with the users accessing the network resources with an 
error message. As far I understand there must not be such conflict with 
the Samba PDC's with different domain names on the same subnet. Can any 
one suggest what might be wrong in such case?


thanks for the help,
Pavan.






--
Pavan Krishna L
Linux Systems Administrator
Diversity Arrays Technology Pty Ltd
Ph:  +61 2 6281 8512
Fax: +61 2 6281 8533
Mob: +61 423 411 281


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


[Samba] Assigning Permissions on Domain Member Server

2006-03-07 Thread mallapadi niranjan
Dear all

I have a samba PDC (3.0.21c) with openldap (2.3.19) with 2 domain Member
Servers(samba 3.0.21c) with ACL support
i use domain member servers as  file servers . all my clients are windows
2000 professional.
i have the following scenario at my
I have created 3 groups, prj1team, prj1mgr, prj1engg.
i have created folder called myproject in a samba share called projects.
myproject has a subdirectory called alldepts.


now,  no one can create files/folder in myproject directory  but they can
create a files and folder in alldepts folder.
but i don't want anybody to delete the folder alldepts.

myproject(rx)prj1mgr,prj1engg
 | alldepts (rwx)prj1mgr,prj1engg
   |  files/folders

i have set like this

setfacl -m g:prj1team:rx myproject
setfacl -m g:prj1mgr:rx myproject
setfacl -m g:prj1engg:rx myrproject
setfacl -m g:prj1mgr:rwx myproject/alldepts
setfacl -m g:prj1engg:rwx myrproject/alldeps

in the above permissions, people in group prj1mgrand prj1engg are able
to creat files/folders in alldepts.
and when they are in myproject directory and  try to delete folder
alldepts, it gives error access denied .
so far so good, this is what i want.
but when the user of group prj1mgr and prj1engg
delete folder alldepts, it says access denied  but it deletes all the
files and folder inside the alldepts directory .
ie it denies the user to delete alldepts directory but it does not deny
the user to delete
all the files and folders inside the alldepts..


Actually what i need is the folder alldepts  is used by both groups
prj1mgr and prj1engg to create files and folder
and both these groups can delete each other files. but i want them to delete
file after changing to that directory (alldepts) , not from outside.

since i have mentioned
setfacl -m g:prj1mgr:rx myproject
setfacl -m g:prj1engg:rx myrproject
it does not allow to delete folder alldepts, but it deletes all files in
alldepts, that i don't want to happen.

Please guide me,
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Dos clients on Samba 3.0.12

2006-03-07 Thread Raphael Neve

Hello there,

I recently replaced a server running Samba 2.x with a brand new one 
running Samba 3.0.12.
I had a couple DOS machines running the Microsoft Client which worked 
fine on the old server. On the new one, they can log in fine, and do a 
dir on the remote drive, but when I try to copy a file to or from the 
server, the DOS machine hangs, and on the server I get a Connection 
reset by peer in the log.smbd.


Does anyone have any idea what this might  be ?

I snouted about a bit on the internet and it seems there might be a 
speed disparity, and the data is going to fast for the DOS machines 
I tried playing with the sendfile share parameter but with no 
noticeable difference.


Thanks,
Raphael Neve

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

svn commit: samba r13916 - branches/SAMBA_3_0/source/smbd trunk/source/smbd

2006-03-07 Thread vlendec
Author: vlendec
Date: 2006-03-07 09:09:13 + (Tue, 07 Mar 2006)
New Revision: 13916

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13916

Log:
Fix Coverity bug #29. Looks like my code. I wonder how much there is still
lurking...

Volker

Modified:
   branches/SAMBA_3_0/source/smbd/oplock.c
   trunk/source/smbd/oplock.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/oplock.c
===
--- branches/SAMBA_3_0/source/smbd/oplock.c 2006-03-07 06:31:04 UTC (rev 
13915)
+++ branches/SAMBA_3_0/source/smbd/oplock.c 2006-03-07 09:09:13 UTC (rev 
13916)
@@ -764,6 +764,7 @@
if (lck == NULL) {
DEBUG(0,(release_level_2_oplocks_on_change: failed to lock 
 share mode entry for file %s.\n, fsp-fsp_name ));
+   return;
}
 
DEBUG(10,(release_level_2_oplocks_on_change: num_share_modes = %d\n, 

Modified: trunk/source/smbd/oplock.c
===
--- trunk/source/smbd/oplock.c  2006-03-07 06:31:04 UTC (rev 13915)
+++ trunk/source/smbd/oplock.c  2006-03-07 09:09:13 UTC (rev 13916)
@@ -764,6 +764,7 @@
if (lck == NULL) {
DEBUG(0,(release_level_2_oplocks_on_change: failed to lock 
 share mode entry for file %s.\n, fsp-fsp_name ));
+   return;
}
 
DEBUG(10,(release_level_2_oplocks_on_change: num_share_modes = %d\n, 



svn commit: samba r13917 - in branches/SAMBA_4_0/source/build/m4: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:16:03 + (Tue, 07 Mar 2006)
New Revision: 13917

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13917

Log:
fix detection of the visibility support,
as we don't use #pragma for the build don't use it for the configure test
and use -fvisibility=hidden in CFLAGS in the configure test

metze
Modified:
   branches/SAMBA_4_0/source/build/m4/check_cc.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_cc.m4
===
--- branches/SAMBA_4_0/source/build/m4/check_cc.m4  2006-03-07 09:09:13 UTC 
(rev 13916)
+++ branches/SAMBA_4_0/source/build/m4/check_cc.m4  2006-03-07 10:16:03 UTC 
(rev 13917)
@@ -117,22 +117,29 @@
 #
 
 visibility_attribute=no
+VISIBILITY_CFLAGS=
 if test x$GCC = xyes ; then
-AX_CFLAGS_GCC_OPTION([-fvisibility=hidden], VISIBILITY_CFLAGS)
+   AX_CFLAGS_GCC_OPTION([-fvisibility=hidden], VISIBILITY_CFLAGS)
 fi
 
 if test -n $VISIBILITY_CFLAGS; then
AC_MSG_CHECKING([whether the C compiler supports the visibility 
attribute])
+   OLD_CFLAGS=$CFLAGS
+
+   CFLAGS=$CFLAGS $VISIBILITY_CFLAGS
AC_TRY_RUN([
-   #pragma GCC visibility push(hidden)
-   void vis_foo1(void) {}
-   __attribute__((visibility(default))) void vis_foo2(void) {}
-   #include ${srcdir-.}/build/tests/trivial.c
-   ], [
+   void vis_foo1(void) {}
+   __attribute__((visibility(default))) void vis_foo2(void) {}
+   #include ${srcdir-.}/build/tests/trivial.c
+   ],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_VISIBILITY_ATTR,1,[Whether the C compiler 
supports the visibility attribute])
visibility_attribute=yes
-   ], [AC_MSG_RESULT(no);])
+   ],[
+   AC_MSG_RESULT(no)
+   VISIBILITY_CFLAGS=
+   ])
+   CFLAGS=$OLD_CFLAGS
 fi
 AC_SUBST(visibility_attribute)
 



svn commit: samba r13918 - in branches/SAMBA_4_0/source/build/smb_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:17:42 + (Tue, 07 Mar 2006)
New Revision: 13918

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13918

Log:
fix whitespaces

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/config_mk.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/config_mk.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/config_mk.pm  2006-03-07 
10:16:03 UTC (rev 13917)
+++ branches/SAMBA_4_0/source/build/smb_build/config_mk.pm  2006-03-07 
10:17:42 UTC (rev 13918)
@@ -35,8 +35,7 @@
PUBLIC_HEADERS= list,
 
EXTRA_CFLAGS  = string,
-
-   DEFAULT_VISIBILITY = string
+   DEFAULT_VISIBILITY= string
},
MODULE = {
SUBSYSTEM = string,
@@ -67,7 +66,7 @@
MANPAGE   = string,
INSTALLDIR= string,
PRIVATE_PROTO_HEADER  = string,
-   PUBLIC_HEADERS = string, 
+   PUBLIC_HEADERS= string, 
 
EXTRA_CFLAGS  = string
},
@@ -95,8 +94,7 @@
PRIVATE_PROTO_HEADER  = string,
 
EXTRA_CFLAGS  = string,
-
-   DEFAULT_VISIBILITY = string
+   DEFAULT_VISIBILITY= string
}
 };
 



svn commit: samba r13919 - in branches/SAMBA_4_0/source/build/smb_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:20:06 + (Tue, 07 Mar 2006)
New Revision: 13919

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13919

Log:
for us the standard for the visibility is hidden
and default means public

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/input.pm
   branches/SAMBA_4_0/source/build/smb_build/output.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/input.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 10:17:42 UTC 
(rev 13918)
+++ branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 10:20:06 UTC 
(rev 13919)
@@ -160,7 +160,7 @@
}
 
unless (defined($part-{DEFAULT_VISIBILITY})) {
-   $part-{DEFAULT_VISIBILITY} = default;
+   $part-{DEFAULT_VISIBILITY} = hidden;
}
 
unless (defined($part-{EXTRA_CFLAGS})) {

Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 10:17:42 UTC 
(rev 13918)
+++ branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 10:20:06 UTC 
(rev 13919)
@@ -111,7 +111,7 @@
$part-{OUTPUT_TYPE} = OBJLIST;
}
 
-   if (($part-{DEFAULT_VISIBILITY} ne default) and 
+   if (($part-{DEFAULT_VISIBILITY} ne hidden) and 
($config-{visibility_attribute} eq yes)) {
$part-{EXTRA_CFLAGS} .=  
-fvisibility=$part-{DEFAULT_VISIBILITY};
}



svn commit: samba r13920 - in branches/SAMBA_4_0/source/lib/registry: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:20:47 + (Tue, 07 Mar 2006)
New Revision: 13920

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13920

Log:
hidden visibility is the default...

metze
Modified:
   branches/SAMBA_4_0/source/lib/registry/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/lib/registry/config.mk
===
--- branches/SAMBA_4_0/source/lib/registry/config.mk2006-03-07 10:20:06 UTC 
(rev 13919)
+++ branches/SAMBA_4_0/source/lib/registry/config.mk2006-03-07 10:20:47 UTC 
(rev 13920)
@@ -83,7 +83,6 @@
 
 # Start SUBSYSTEM REGISTRY
 [LIBRARY::REGISTRY]
-DEFAULT_VISIBILITY = hidden
 MAJOR_VERSION = 0
 MINOR_VERSION = 0
 DESCRIPTION = Windows-style registry library



svn commit: samba r13921 - in branches/SAMBA_4_0/source/build/smb_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:30:39 + (Tue, 07 Mar 2006)
New Revision: 13921

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13921

Log:
rename DEFAULT_VISIBILITY - STANDARD_VISIBILITY

the standard is hidden and not default, I hope this
name makes a bit less confusing

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/config_mk.pm
   branches/SAMBA_4_0/source/build/smb_build/input.pm
   branches/SAMBA_4_0/source/build/smb_build/output.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/config_mk.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/config_mk.pm  2006-03-07 
10:20:47 UTC (rev 13920)
+++ branches/SAMBA_4_0/source/build/smb_build/config_mk.pm  2006-03-07 
10:30:39 UTC (rev 13921)
@@ -35,7 +35,7 @@
PUBLIC_HEADERS= list,
 
EXTRA_CFLAGS  = string,
-   DEFAULT_VISIBILITY= string
+   STANDARD_VISIBILITY   = string
},
MODULE = {
SUBSYSTEM = string,
@@ -94,7 +94,7 @@
PRIVATE_PROTO_HEADER  = string,
 
EXTRA_CFLAGS  = string,
-   DEFAULT_VISIBILITY= string
+   STANDARD_VISIBILITY   = string
}
 };
 

Modified: branches/SAMBA_4_0/source/build/smb_build/input.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 10:20:47 UTC 
(rev 13920)
+++ branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 10:30:39 UTC 
(rev 13921)
@@ -159,8 +159,8 @@
$part-{NOPROTO} = YES;
}
 
-   unless (defined($part-{DEFAULT_VISIBILITY})) {
-   $part-{DEFAULT_VISIBILITY} = hidden;
+   unless (defined($part-{STANDARD_VISIBILITY})) {
+   $part-{STANDARD_VISIBILITY} = hidden;
}
 
unless (defined($part-{EXTRA_CFLAGS})) {

Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 10:20:47 UTC 
(rev 13920)
+++ branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 10:30:39 UTC 
(rev 13921)
@@ -111,9 +111,9 @@
$part-{OUTPUT_TYPE} = OBJLIST;
}
 
-   if (($part-{DEFAULT_VISIBILITY} ne hidden) and 
+   if (($part-{STANDARD_VISIBILITY} ne hidden) and 
($config-{visibility_attribute} eq yes)) {
-   $part-{EXTRA_CFLAGS} .=  
-fvisibility=$part-{DEFAULT_VISIBILITY};
+   $part-{EXTRA_CFLAGS} .=  
-fvisibility=$part-{STANDARD_VISIBILITY};
}
 
generate_binary($part) if $part-{OUTPUT_TYPE} eq BINARY;



svn commit: samba r13922 - in branches/SAMBA_4_0/source/heimdal_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 10:32:27 + (Tue, 07 Mar 2006)
New Revision: 13922

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13922

Log:
- fix whitespaces
- remove some unused NOPROTO=YES on binaries

metze
Modified:
   branches/SAMBA_4_0/source/heimdal_build/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk
===
--- branches/SAMBA_4_0/source/heimdal_build/config.mk   2006-03-07 10:30:39 UTC 
(rev 13921)
+++ branches/SAMBA_4_0/source/heimdal_build/config.mk   2006-03-07 10:32:27 UTC 
(rev 13922)
@@ -186,9 +186,10 @@
 ###
 # Start SUBSYSTEM HEIMDAL_ASN1
 [SUBSYSTEM::HEIMDAL_ASN1]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/lib/asn1 \
-  -Iheimdal/kdc -Iheimdal/lib/des \
-  -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/lib/asn1 \
+   -Iheimdal/kdc -Iheimdal/lib/des \
+   -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = \
../heimdal/lib/asn1/der_get.o \
../heimdal/lib/asn1/der_put.o \
@@ -264,9 +265,10 @@
 ###
 # Start SUBSYSTEM HEIMDAL_DES
 [SUBSYSTEM::HEIMDAL_DES]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/kdc \
-  -Iheimdal/lib/des -Iheimdal/lib/roken \
-  -DNO_PRINTF_ATTRIBUTE
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/kdc \
+   -Iheimdal/lib/des -Iheimdal/lib/roken \
+   -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = \
../heimdal/lib/des/aes.o \
../heimdal/lib/des/des.o \
@@ -310,8 +312,9 @@
 ###
 # Start SUBSYSTEM HEIMDAL_ROKEN
 [SUBSYSTEM::HEIMDAL_ROKEN]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/kdc \
-  -Iheimdal/lib/des -Iheimdal/lib/roken 
-DNO_PRINTF_ATTRIBUTE
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/kdc \
+   -Iheimdal/lib/des -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = \
../heimdal/lib/roken/base64.o \
../heimdal/lib/roken/bswap.o \
@@ -344,9 +347,10 @@
 ###
 # Start SUBSYSTEM HEIMDAL_VERS
 [SUBSYSTEM::HEIMDAL_VERS]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/kdc \
-  -Iheimdal/lib/des -Iheimdal/lib/roken \
-  -DNO_PRINTF_ATTRIBUTE
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/kdc \
+   -Iheimdal/lib/des -Iheimdal/lib/roken \
+   -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = ../heimdal/lib/vers/print_version.o
 NOPROTO = YES
 # End SUBSYSTEM HEIMDAL_VERS
@@ -363,9 +367,10 @@
 ###
 # Start SUBSYSTEM HEIMDAL_COM_ERR
 [SUBSYSTEM::HEIMDAL_COM_ERR]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/lib/com_err \
-  -Iheimdal/kdc -Iheimdal/lib/des \
-  -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/lib/com_err \
+   -Iheimdal/kdc -Iheimdal/lib/des \
+   -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = \
../heimdal/lib/com_err/com_err.o \
../heimdal/lib/com_err/error.o
@@ -376,10 +381,10 @@
 ###
 # Start BINARY asn1_compile
 [BINARY::asn1_compile]
-EXTRA_CFLAGS = -Iheimdal_build -Iheimdal/lib/asn1 \
-  -Iheimdal/kdc -Iheimdal/lib/des \
-  -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
-NOPROTO = YES
+EXTRA_CFLAGS = \
+   -Iheimdal_build -Iheimdal/lib/asn1 \
+   -Iheimdal/kdc -Iheimdal/lib/des \
+   -Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
 OBJ_FILES = \
../heimdal/lib/asn1/main.ho \
../heimdal/lib/asn1/gen.ho \
@@ -411,7 +416,6 @@
 ###
 # Start BINARY compile_et
 [BINARY::compile_et]
-NOPROTO = YES
 OBJ_FILES = ../heimdal/lib/vers/print_version.ho \
../heimdal/lib/com_err/lex.ho \
../heimdal/lib/com_err/parse.ho \



svn commit: samba r13923 - in branches/SAMBA_4_0/source: ntvfs/ipc rpc_server

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 11:02:47 + (Tue, 07 Mar 2006)
New Revision: 13923

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13923

Log:
make the state_flags per dcesrv_connection

this will may help with a generic named pipe solution

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
   branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
===
--- branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c   2006-03-07 10:32:27 UTC 
(rev 13922)
+++ branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c   2006-03-07 11:02:47 UTC 
(rev 13923)
@@ -227,6 +227,7 @@
ep_description, 
req-session-session_info,
srv_conn,
+   0,
p-dce_conn);
if (!NT_STATUS_IS_OK(status)) {
idr_remove(private-idtree_fnum, p-fnum);

Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-03-07 
10:32:27 UTC (rev 13922)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-03-07 
11:02:47 UTC (rev 13923)
@@ -287,6 +287,7 @@
 TALLOC_CTX *mem_ctx,
 const struct dcesrv_endpoint *ep,
 struct stream_connection *srv_conn,
+uint32_t state_flags,
 struct dcesrv_connection **_p)
 {
struct dcesrv_connection *p;
@@ -307,6 +308,7 @@
p-auth_state.session_key = dcesrv_generic_session_key;
p-srv_conn = srv_conn;
p-processing = False;
+   p-state_flags = state_flags;
 
talloc_set_destructor(p, dcesrv_endpoint_destructor);
 
@@ -322,6 +324,7 @@
const struct dcerpc_binding 
*ep_description,
struct auth_session_info *session_info,
struct stream_connection *srv_conn,
+   uint32_t state_flags,
struct dcesrv_connection **dce_conn_p)
 {
NTSTATUS status;
@@ -333,7 +336,7 @@
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
 
-   status = dcesrv_endpoint_connect(dce_ctx, mem_ctx, ep, srv_conn, 
dce_conn_p);
+   status = dcesrv_endpoint_connect(dce_ctx, mem_ctx, ep, srv_conn, 
state_flags, dce_conn_p);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -724,7 +727,7 @@
struct dcesrv_connection_context *context;
 
call-fault_code= 0;
-   call-state_flags   = call-conn-dce_ctx-state_flags;
+   call-state_flags   = call-conn-state_flags;
call-time  = timeval_current();
 
/* if authenticated, and the mech we use can't do async replies, don't 
use them... */
@@ -1134,7 +1137,7 @@
return status;
 }
 
-static NTSTATUS dcesrv_init_context(TALLOC_CTX *mem_ctx, const char 
**endpoint_servers, uint32_t state_flags, struct dcesrv_context **_dce_ctx)
+static NTSTATUS dcesrv_init_context(TALLOC_CTX *mem_ctx, const char 
**endpoint_servers, struct dcesrv_context **_dce_ctx)
 {
NTSTATUS status;
struct dcesrv_context *dce_ctx;
@@ -1148,7 +1151,6 @@
dce_ctx = talloc(mem_ctx, struct dcesrv_context);
NT_STATUS_HAVE_NO_MEMORY(dce_ctx);
dce_ctx-endpoint_list  = NULL;
-   dce_ctx-state_flags= state_flags;
 
for (i=0;endpoint_servers[i];i++) {
const struct dcesrv_endpoint_server *ep_server;
@@ -1179,7 +1181,7 @@
NTSTATUS status;
struct dcesrv_context *dce_ctx;
 
-   status = dcesrv_init_context(mem_ctx, lp_dcerpc_endpoint_servers(), 0, 
dce_ctx);
+   status = dcesrv_init_context(mem_ctx, lp_dcerpc_endpoint_servers(), 
dce_ctx);
NT_STATUS_NOT_OK_RETURN(status);
 
*_dce_ctx = dce_ctx;
@@ -1278,7 +1280,6 @@
 
status = dcesrv_init_context(event_context,
 lp_dcerpc_endpoint_servers(),
-DCESRV_CALL_STATE_FLAG_MAY_ASYNC,
 dce_ctx);
NT_STATUS_NOT_OK_RETURN(status);
 

Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h2006-03-07 
10:32:27 UTC (rev 13922)
+++ 

svn commit: samba r13924 - in branches/SAMBA_4_0/source: . auth auth/credentials auth/gensec auth/ntlmssp build/smb_build cldap_server client dsdb/samdb dsdb/samdb/ldb_modules heimdal_build include kd

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 11:07:23 + (Tue, 07 Mar 2006)
New Revision: 13924

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13924

Log:
Split more prototypes out of include/proto.h + initial work on header 
file dependencies

Added:
   branches/SAMBA_4_0/source/libcli/util/nt_status.h
Removed:
   branches/SAMBA_4_0/source/include/nt_status.h
Modified:
   branches/SAMBA_4_0/source/auth/auth_developer.c
   branches/SAMBA_4_0/source/auth/auth_sam.c
   branches/SAMBA_4_0/source/auth/auth_sam_reply.c
   branches/SAMBA_4_0/source/auth/auth_util.c
   branches/SAMBA_4_0/source/auth/config.mk
   branches/SAMBA_4_0/source/auth/credentials/credentials.c
   branches/SAMBA_4_0/source/auth/credentials/credentials_files.c
   branches/SAMBA_4_0/source/auth/credentials/credentials_ntlm.c
   branches/SAMBA_4_0/source/auth/gensec/
   branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c
   branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c
   branches/SAMBA_4_0/source/auth/gensec/schannel_state.c
   branches/SAMBA_4_0/source/auth/ntlm_check.c
   branches/SAMBA_4_0/source/auth/ntlmssp/
   branches/SAMBA_4_0/source/auth/ntlmssp/config.mk
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp.h
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_server.c
   branches/SAMBA_4_0/source/build/smb_build/TODO
   branches/SAMBA_4_0/source/build/smb_build/main.pl
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/cldap_server/cldap_server.c
   branches/SAMBA_4_0/source/cldap_server/netlogon.c
   branches/SAMBA_4_0/source/client/client.c
   branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
   branches/SAMBA_4_0/source/dsdb/samdb/samdb.c
   branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c
   branches/SAMBA_4_0/source/heimdal_build/glue.c
   branches/SAMBA_4_0/source/include/includes.h
   branches/SAMBA_4_0/source/kdc/hdb-ldb.c
   branches/SAMBA_4_0/source/kdc/kdc.c
   branches/SAMBA_4_0/source/kdc/pac-glue.c
   branches/SAMBA_4_0/source/ldap_server/config.mk
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c
   branches/SAMBA_4_0/source/ldap_server/ldap_server.h
   branches/SAMBA_4_0/source/lib/basic.mk
   branches/SAMBA_4_0/source/lib/db_wrap.h
   branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c
   branches/SAMBA_4_0/source/lib/ldb/tools/cmdline.c
   branches/SAMBA_4_0/source/lib/netif/interface.c
   branches/SAMBA_4_0/source/lib/netif/netif.c
   branches/SAMBA_4_0/source/lib/netif/netif.h
   branches/SAMBA_4_0/source/lib/samba3/group.c
   branches/SAMBA_4_0/source/lib/samba3/idmap.c
   branches/SAMBA_4_0/source/lib/socket/connect.c
   branches/SAMBA_4_0/source/lib/socket/connect_multi.c
   branches/SAMBA_4_0/source/libcli/auth/config.mk
   branches/SAMBA_4_0/source/libcli/auth/smbencrypt.c
   branches/SAMBA_4_0/source/libcli/cldap/cldap.c
   branches/SAMBA_4_0/source/libcli/cliconnect.c
   branches/SAMBA_4_0/source/libcli/composite/composite.h
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libcli/dgram/browse.c
   branches/SAMBA_4_0/source/libcli/dgram/netlogon.c
   branches/SAMBA_4_0/source/libcli/dgram/ntlogon.c
   branches/SAMBA_4_0/source/libcli/finddcs.c
   branches/SAMBA_4_0/source/libcli/raw/clisocket.c
   branches/SAMBA_4_0/source/libcli/resolve/
   branches/SAMBA_4_0/source/libcli/resolve/bcast.c
   branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c
   branches/SAMBA_4_0/source/libcli/resolve/resolve.c
   branches/SAMBA_4_0/source/libcli/resolve/wins.c
   branches/SAMBA_4_0/source/libcli/security/access_check.c
   branches/SAMBA_4_0/source/libcli/security/config.mk
   branches/SAMBA_4_0/source/libcli/security/sddl.c
   branches/SAMBA_4_0/source/libcli/security/security_descriptor.c
   branches/SAMBA_4_0/source/libcli/security/security_token.c
   branches/SAMBA_4_0/source/libcli/smb2/connect.c
   branches/SAMBA_4_0/source/libcli/smb_composite/
   branches/SAMBA_4_0/source/libcli/smb_composite/appendacl.c
   branches/SAMBA_4_0/source/libcli/smb_composite/connect.c
   branches/SAMBA_4_0/source/libcli/smb_composite/sesssetup.c
   branches/SAMBA_4_0/source/libcli/smb_composite/smb_composite.h
   branches/SAMBA_4_0/source/libcli/util/clilsa.c
   branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c
   branches/SAMBA_4_0/source/libnet/libnet_join.c
   branches/SAMBA_4_0/source/libnet/libnet_lookup.c
   branches/SAMBA_4_0/source/libnet/libnet_passwd.c
   branches/SAMBA_4_0/source/libnet/libnet_samsync_ldb.c
   branches/SAMBA_4_0/source/libnet/libnet_vampire.c
   branches/SAMBA_4_0/source/libnet/userinfo.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
   branches/SAMBA_4_0/source/main.mk
   

svn commit: samba r13925 - in branches/SAMBA_4_0/source/librpc: . idl

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:00:17 + (Tue, 07 Mar 2006)
New Revision: 13925

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13925

Log:
fix dependencies

metze
Modified:
   branches/SAMBA_4_0/source/librpc/config.mk
   branches/SAMBA_4_0/source/librpc/idl/samr.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/config.mk
===
--- branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 11:07:23 UTC (rev 
13924)
+++ branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 12:00:17 UTC (rev 
13925)
@@ -130,7 +130,7 @@
 [SUBSYSTEM::NDR_SAMR]
 OBJ_FILES = gen_ndr/ndr_samr.o
 NOPROTO = YES
-REQUIRED_SUBSYSTEMS = LIBNDR NDR_LSA
+REQUIRED_SUBSYSTEMS = LIBNDR NDR_MISC NDR_LSA NDR_SECURITY
 
 [SUBSYSTEM::NDR_SPOOLSS]
 OBJ_FILES = gen_ndr/ndr_spoolss.o

Modified: branches/SAMBA_4_0/source/librpc/idl/samr.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/samr.idl   2006-03-07 11:07:23 UTC 
(rev 13924)
+++ branches/SAMBA_4_0/source/librpc/idl/samr.idl   2006-03-07 12:00:17 UTC 
(rev 13925)
@@ -13,7 +13,7 @@
   endpoint(ncacn_np:[\\pipe\\samr],ncacn_ip_tcp:, ncalrpc:),
   pointer_default(unique),
   pointer_default_top(unique),
-  depends(lsa,security)
+  depends(misc,lsa,security)
 ] interface samr
 {
declare bitmap security_secinfo;



svn commit: samba r13926 - in branches/SAMBA_4_0/source: . auth/kerberos cldap_server kdc ldap_server lib/ldb lib/registry libcli nbt_server rpc_server smb_server smbd web_server winbind wrepl_server

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 12:08:58 + (Tue, 07 Mar 2006)
New Revision: 13926

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13926

Log:
More header splitups.

Modified:
   branches/SAMBA_4_0/source/auth/kerberos/config.mk
   branches/SAMBA_4_0/source/auth/kerberos/kerberos.h
   branches/SAMBA_4_0/source/cldap_server/cldap_server.c
   branches/SAMBA_4_0/source/kdc/kdc.c
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c
   branches/SAMBA_4_0/source/lib/ldb/config.mk
   branches/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/main.mk
   branches/SAMBA_4_0/source/nbt_server/irpc.c
   branches/SAMBA_4_0/source/nbt_server/nbt_server.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/smbd/config.mk
   branches/SAMBA_4_0/source/smbd/server.c
   branches/SAMBA_4_0/source/web_server/http.c
   branches/SAMBA_4_0/source/web_server/web_server.c
   branches/SAMBA_4_0/source/winbind/wb_server.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_in_connection.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_periodic.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/kerberos/config.mk
===
--- branches/SAMBA_4_0/source/auth/kerberos/config.mk   2006-03-07 12:00:17 UTC 
(rev 13925)
+++ branches/SAMBA_4_0/source/auth/kerberos/config.mk   2006-03-07 12:08:58 UTC 
(rev 13926)
@@ -1,6 +1,7 @@
 #
 # Start SUBSYSTEM KERBEROS
 [SUBSYSTEM::KERBEROS]
+PRIVATE_PROTO_HEADER = proto.h
 OBJ_FILES = kerberos.o \
clikrb5.o \
kerberos_verify.o \

Modified: branches/SAMBA_4_0/source/auth/kerberos/kerberos.h
===
--- branches/SAMBA_4_0/source/auth/kerberos/kerberos.h  2006-03-07 12:00:17 UTC 
(rev 13925)
+++ branches/SAMBA_4_0/source/auth/kerberos/kerberos.h  2006-03-07 12:08:58 UTC 
(rev 13926)
@@ -163,5 +163,7 @@
  gss_cred_id_t gssapi_cred,
  enum credentials_obtained obtained); 
 
+#include auth/kerberos/proto.h
+
 #endif /* HAVE_KRB5 */
 

Modified: branches/SAMBA_4_0/source/cldap_server/cldap_server.c
===
--- branches/SAMBA_4_0/source/cldap_server/cldap_server.c   2006-03-07 
12:00:17 UTC (rev 13925)
+++ branches/SAMBA_4_0/source/cldap_server/cldap_server.c   2006-03-07 
12:08:58 UTC (rev 13926)
@@ -25,6 +25,7 @@
 #include lib/socket/socket.h
 #include lib/messaging/irpc.h
 #include smbd/service_task.h
+#include smbd/service.h
 #include cldap_server/cldap_server.h
 #include system/network.h
 #include netif/netif.h

Modified: branches/SAMBA_4_0/source/kdc/kdc.c
===
--- branches/SAMBA_4_0/source/kdc/kdc.c 2006-03-07 12:00:17 UTC (rev 13925)
+++ branches/SAMBA_4_0/source/kdc/kdc.c 2006-03-07 12:08:58 UTC (rev 13926)
@@ -24,6 +24,7 @@
 
 #include includes.h
 #include smbd/service_task.h
+#include smbd/service.h
 #include smbd/service_stream.h
 #include smbd/process_model.h
 #include lib/events/events.h

Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2006-03-07 12:00:17 UTC 
(rev 13925)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2006-03-07 12:08:58 UTC 
(rev 13926)
@@ -30,6 +30,7 @@
 #include ldap_server/ldap_server.h
 #include smbd/service_task.h
 #include smbd/service_stream.h
+#include smbd/proto.h
 #include lib/socket/socket.h
 #include lib/tls/tls.h
 #include lib/messaging/irpc.h

Modified: branches/SAMBA_4_0/source/lib/ldb/config.mk
===
--- branches/SAMBA_4_0/source/lib/ldb/config.mk 2006-03-07 12:00:17 UTC (rev 
13925)
+++ branches/SAMBA_4_0/source/lib/ldb/config.mk 2006-03-07 12:08:58 UTC (rev 
13926)
@@ -172,6 +172,7 @@
 
 # Start SUBSYSTEM LIBLDB_CMDLINE
 [SUBSYSTEM::LIBLDB_CMDLINE]
+NOPROTO = NO
 OBJ_FILES= \
tools/cmdline.o
 REQUIRED_SUBSYSTEMS = LIBLDB LIBBASIC LIBPOPT POPT_SAMBA POPT_CREDENTIALS

Modified: branches/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c
===
--- branches/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c2006-03-07 
12:00:17 UTC (rev 13925)
+++ branches/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c2006-03-07 
12:08:58 UTC (rev 13926)
@@ -356,7 +356,7 @@
.num_values = rpc_num_values,
 };
 
-WERROR _PUBLIC_ 

svn commit: samba r13927 - in branches/SAMBA_4_0/source/librpc: . idl

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:26:38 + (Tue, 07 Mar 2006)
New Revision: 13927

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13927

Log:
fix dependency

metze
Modified:
   branches/SAMBA_4_0/source/librpc/config.mk
   branches/SAMBA_4_0/source/librpc/idl/security.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/config.mk
===
--- branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 12:08:58 UTC (rev 
13926)
+++ branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 12:26:38 UTC (rev 
13927)
@@ -32,7 +32,7 @@
 [SUBSYSTEM::NDR_SECURITY]
 OBJ_FILES = gen_ndr/ndr_security.o
 NOPROTO = YES
-REQUIRED_SUBSYSTEMS = NDR_SECURITY_HELPER
+REQUIRED_SUBSYSTEMS = NDR_MISC NDR_SECURITY_HELPER
 
 [SUBSYSTEM::NDR_AUDIOSRV]
 OBJ_FILES = gen_ndr/ndr_audiosrv.o

Modified: branches/SAMBA_4_0/source/librpc/idl/security.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/security.idl   2006-03-07 12:08:58 UTC 
(rev 13926)
+++ branches/SAMBA_4_0/source/librpc/idl/security.idl   2006-03-07 12:26:38 UTC 
(rev 13927)
@@ -5,7 +5,8 @@
 */
 
 [
-   pointer_default(unique)
+   pointer_default(unique),
+   depends(misc)
 ]
 interface security
 {



svn commit: samba r13928 - in branches/SAMBA_4_0/source/utils: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:27:20 + (Tue, 07 Mar 2006)
New Revision: 13928

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13928

Log:
fix dependency

metze
Modified:
   branches/SAMBA_4_0/source/utils/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/utils/config.mk
===
--- branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:26:38 UTC (rev 
13927)
+++ branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:27:20 UTC (rev 
13928)
@@ -71,7 +71,7 @@
CONFIG \
LIBBASIC \
NDR_XATTR \
-   NDR_SAMR
+   NDR_SECURITY
 # End BINARY setnttoken
 #
 



svn commit: samba r13929 - in branches/SAMBA_4_0/source/librpc: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:37:47 + (Tue, 07 Mar 2006)
New Revision: 13929

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13929

Log:
fix dependencies

metze
Modified:
   branches/SAMBA_4_0/source/librpc/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/config.mk
===
--- branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 12:27:20 UTC (rev 
13928)
+++ branches/SAMBA_4_0/source/librpc/config.mk  2006-03-07 12:37:47 UTC (rev 
13929)
@@ -284,7 +284,7 @@
 [SUBSYSTEM::NDR_XATTR]
 OBJ_FILES = gen_ndr/ndr_xattr.o
 NOPROTO = YES
-REQUIRED_SUBSYSTEMS = LIBNDR
+REQUIRED_SUBSYSTEMS = LIBNDR NDR_SECURITY
 
 [SUBSYSTEM::NDR_OPENDB]
 OBJ_FILES = gen_ndr/ndr_opendb.o



svn commit: samba r13930 - in branches/SAMBA_4_0/source/utils: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:38:36 + (Tue, 07 Mar 2006)
New Revision: 13930

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13930

Log:
this tools are currently just oneliners, which depend on printf()

metze
Modified:
   branches/SAMBA_4_0/source/utils/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/utils/config.mk
===
--- branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:37:47 UTC (rev 
13929)
+++ branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:38:36 UTC (rev 
13930)
@@ -54,10 +54,7 @@
 #INSTALLDIR = BINDIR
 OBJ_FILES = \
setntacl.o
-REQUIRED_SUBSYSTEMS = \
-   CONFIG \
-   LIBBASIC \
-   NDR_XATTR
+REQUIRED_SUBSYSTEMS =
 # End BINARY setntacl
 #
 
@@ -67,11 +64,7 @@
 INSTALLDIR = BINDIR
 OBJ_FILES = \
setnttoken.o
-REQUIRED_SUBSYSTEMS = \
-   CONFIG \
-   LIBBASIC \
-   NDR_XATTR \
-   NDR_SECURITY
+REQUIRED_SUBSYSTEMS =
 # End BINARY setnttoken
 #
 



svn commit: samba r13931 - in branches/SAMBA_4_0/source/torture: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:40:34 + (Tue, 07 Mar 2006)
New Revision: 13931

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13931

Log:
fix dependencies

metze
Modified:
   branches/SAMBA_4_0/source/torture/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/torture/config.mk
===
--- branches/SAMBA_4_0/source/torture/config.mk 2006-03-07 12:38:36 UTC (rev 
13930)
+++ branches/SAMBA_4_0/source/torture/config.mk 2006-03-07 12:40:34 UTC (rev 
13931)
@@ -255,9 +255,12 @@
gentest.o \
torture_util.o
 REQUIRED_SUBSYSTEMS = \
-   LIBSMB \
CONFIG \
-   LIBBASIC
+   LIBBASIC \
+   LIBPOPT \
+   POPT_SAMBA \
+   POPT_CREDENTIALS \
+   LIBSMB
 MANPAGE = man/gentest.1
 # End BINARY gentest
 #
@@ -269,9 +272,12 @@
 OBJ_FILES = \
masktest.o
 REQUIRED_SUBSYSTEMS = \
-   LIBSMB \
CONFIG \
-   LIBBASIC
+   LIBBASIC \
+   LIBPOPT \
+   POPT_SAMBA \
+   POPT_CREDENTIALS \
+   LIBSMB
 MANPAGE = man/masktest.1
 # End BINARY masktest
 #



svn commit: samba r13932 - in branches/SAMBA_4_0/source/utils: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:41:57 + (Tue, 07 Mar 2006)
New Revision: 13932

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13932

Log:
fix dependency

metze
Modified:
   branches/SAMBA_4_0/source/utils/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/utils/config.mk
===
--- branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:40:34 UTC (rev 
13931)
+++ branches/SAMBA_4_0/source/utils/config.mk   2006-03-07 12:41:57 UTC (rev 
13932)
@@ -27,7 +27,8 @@
CONFIG \
LIBBASIC \
LIBPOPT \
-   POPT_SAMBA
+   POPT_SAMBA \
+   POPT_CREDENTIALS
 MANPAGE = man/ntlm_auth.1
 # End BINARY ntlm_auth
 #



svn commit: samba r13933 - in branches/SAMBA_4_0/source/nbt_server: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 12:57:23 + (Tue, 07 Mar 2006)
New Revision: 13933

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13933

Log:
fix dependency and make it possible to build as shared_library

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/config.mk
===
--- branches/SAMBA_4_0/source/nbt_server/config.mk  2006-03-07 12:41:57 UTC 
(rev 13932)
+++ branches/SAMBA_4_0/source/nbt_server/config.mk  2006-03-07 12:57:23 UTC 
(rev 13933)
@@ -17,9 +17,10 @@
 [MODULE::libldb_wins_ldb]
 SUBSYSTEM = LIBLDB
 INIT_FUNCTION = wins_ldb_module_init
-OUTPUT_TYPE = MERGEDOBJ
 OBJ_FILES = \
wins/wins_ldb.o
+REQUIRED_SUBSYSTEMS = \
+   LIBNETIF
 # End MODULE libldb_wins_ldb
 ###
 



svn commit: samba r13935 - in branches/SAMBA_4_0/source/libcli: . smb2

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 13:06:59 + (Tue, 07 Mar 2006)
New Revision: 13935

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13935

Log:
add dependecies

metze
Modified:
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libcli/smb2/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/config.mk
===
--- branches/SAMBA_4_0/source/libcli/config.mk  2006-03-07 12:58:21 UTC (rev 
13934)
+++ branches/SAMBA_4_0/source/libcli/config.mk  2006-03-07 13:06:59 UTC (rev 
13935)
@@ -140,6 +140,6 @@
raw/rawacl.o \
raw/rawdate.o \
raw/rawlpq.o
-REQUIRED_SUBSYSTEMS = LIBPACKET
+REQUIRED_SUBSYSTEMS = LIBPACKET GENSEC
 
 include smb2/config.mk

Modified: branches/SAMBA_4_0/source/libcli/smb2/config.mk
===
--- branches/SAMBA_4_0/source/libcli/smb2/config.mk 2006-03-07 12:58:21 UTC 
(rev 13934)
+++ branches/SAMBA_4_0/source/libcli/smb2/config.mk 2006-03-07 13:06:59 UTC 
(rev 13935)
@@ -19,4 +19,4 @@
tdis.o \
flush.o \
keepalive.o
-REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBPACKET
+REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBPACKET GENSEC



svn commit: samba r13936 - in branches/SAMBA_4_0/source/libcli: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 13:14:30 + (Tue, 07 Mar 2006)
New Revision: 13936

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13936

Log:
fix dependecy

metze
Modified:
   branches/SAMBA_4_0/source/libcli/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/config.mk
===
--- branches/SAMBA_4_0/source/libcli/config.mk  2006-03-07 13:06:59 UTC (rev 
13935)
+++ branches/SAMBA_4_0/source/libcli/config.mk  2006-03-07 13:14:30 UTC (rev 
13936)
@@ -89,7 +89,7 @@
resolve/bcast.o \
resolve/wins.o \
resolve/host.o
-REQUIRED_SUBSYSTEMS = LIBCLI_NBT
+REQUIRED_SUBSYSTEMS = LIBCLI_NBT LIBNETIF
 
 [SUBSYSTEM::LIBCLI_FINDDCS]
 OBJ_FILES = \



svn commit: samba r13937 - in branches/SAMBA_4_0/source: rpc_server smb_server smbd

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 13:22:00 + (Tue, 07 Mar 2006)
New Revision: 13937

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13937

Log:
fix the build

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-03-07 
13:14:30 UTC (rev 13936)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-03-07 
13:22:00 UTC (rev 13937)
@@ -28,7 +28,7 @@
 #include rpc_server/dcerpc_server.h
 #include lib/events/events.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include system/filesys.h
 #include libcli/security/proto.h
 #include build.h

Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c  2006-03-07 13:14:30 UTC 
(rev 13936)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c  2006-03-07 13:22:00 UTC 
(rev 13937)
@@ -27,7 +27,7 @@
 #include lib/events/events.h
 #include rpc_server/dcerpc_server.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include lib/messaging/irpc.h
 #include system/network.h
 #include netif/netif.h

Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c
===
--- branches/SAMBA_4_0/source/smb_server/smb_server.c   2006-03-07 13:14:30 UTC 
(rev 13936)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c   2006-03-07 13:22:00 UTC 
(rev 13937)
@@ -21,7 +21,7 @@
 
 #include includes.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include smb_server/smb_server.h
 #include lib/messaging/irpc.h
 #include lib/stream/packet.h

Modified: branches/SAMBA_4_0/source/smbd/server.c
===
--- branches/SAMBA_4_0/source/smbd/server.c 2006-03-07 13:14:30 UTC (rev 
13936)
+++ branches/SAMBA_4_0/source/smbd/server.c 2006-03-07 13:22:00 UTC (rev 
13937)
@@ -35,7 +35,7 @@
 #include ntptr/ntptr.h
 #include auth/gensec/gensec.h
 #include smbd/process_model.h
-#include smbd/proto.h
+#include smbd/service.h
 
 /*
   recursively delete a directory tree



svn commit: samba r13938 - in branches/SAMBA_4_0/source: . auth auth/gensec include lib/cmdline lib/ldb libcli libnet passdb rpc_server/lsa rpc_server/netlogon smbd winbind

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 13:36:26 + (Tue, 07 Mar 2006)
New Revision: 13938

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13938

Log:
Around round of splitups

Modified:
   branches/SAMBA_4_0/source/auth/auth_unix.c
   branches/SAMBA_4_0/source/auth/config.mk
   branches/SAMBA_4_0/source/auth/gensec/config.mk
   branches/SAMBA_4_0/source/auth/gensec/schannel.c
   branches/SAMBA_4_0/source/include/includes.h
   branches/SAMBA_4_0/source/lib/cmdline/config.mk
   branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c
   branches/SAMBA_4_0/source/lib/ldb/config.mk
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libnet/libnet_lookup.c
   branches/SAMBA_4_0/source/main.mk
   branches/SAMBA_4_0/source/passdb/config.mk
   branches/SAMBA_4_0/source/passdb/secrets.h
   branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
   branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
   branches/SAMBA_4_0/source/smbd/process_standard.c
   branches/SAMBA_4_0/source/smbd/server.c
   branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c
   branches/SAMBA_4_0/source/winbind/wb_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_unix.c
===
--- branches/SAMBA_4_0/source/auth/auth_unix.c  2006-03-07 13:22:00 UTC (rev 
13937)
+++ branches/SAMBA_4_0/source/auth/auth_unix.c  2006-03-07 13:36:26 UTC (rev 
13938)
@@ -24,6 +24,7 @@
 #include auth/auth.h
 #include system/passwd.h /* needed by some systems for struct passwd */
 #include lib/socket/socket.h 
+#include auth/pam_errors.h
 
 /* TODO: look at how to best fill in parms retrieveing a struct passwd info
  * except in case USER_INFO_DONT_CHECK_UNIX_ACCOUNT is set

Modified: branches/SAMBA_4_0/source/auth/config.mk
===
--- branches/SAMBA_4_0/source/auth/config.mk2006-03-07 13:22:00 UTC (rev 
13937)
+++ branches/SAMBA_4_0/source/auth/config.mk2006-03-07 13:36:26 UTC (rev 
13938)
@@ -63,6 +63,7 @@
 ###
 
 [SUBSYSTEM::PAM_ERRORS]
+PRIVATE_PROTO_HEADER = pam_errors.h
 OBJ_FILES = pam_errors.o
 
 ###

Modified: branches/SAMBA_4_0/source/auth/gensec/config.mk
===
--- branches/SAMBA_4_0/source/auth/gensec/config.mk 2006-03-07 13:22:00 UTC 
(rev 13937)
+++ branches/SAMBA_4_0/source/auth/gensec/config.mk 2006-03-07 13:36:26 UTC 
(rev 13938)
@@ -59,6 +59,7 @@
 
 # Start SUBSYSTEM SCHANNELDB
 [SUBSYSTEM::SCHANNELDB]
+PRIVATE_PROTO_HEADER = schannel_state.h
 OBJ_FILES = \
schannel_state.o
 #

Modified: branches/SAMBA_4_0/source/auth/gensec/schannel.c
===
--- branches/SAMBA_4_0/source/auth/gensec/schannel.c2006-03-07 13:22:00 UTC 
(rev 13937)
+++ branches/SAMBA_4_0/source/auth/gensec/schannel.c2006-03-07 13:36:26 UTC 
(rev 13938)
@@ -25,6 +25,7 @@
 #include librpc/gen_ndr/ndr_schannel.h
 #include auth/auth.h
 #include auth/gensec/schannel.h
+#include auth/gensec/schannel_state.h
 #include auth/gensec/schannel_proto.h
 
 static size_t schannel_sig_size(struct gensec_security *gensec_security, 
size_t data_size)

Modified: branches/SAMBA_4_0/source/include/includes.h
===
--- branches/SAMBA_4_0/source/include/includes.h2006-03-07 13:22:00 UTC 
(rev 13937)
+++ branches/SAMBA_4_0/source/include/includes.h2006-03-07 13:36:26 UTC 
(rev 13938)
@@ -123,6 +123,7 @@
 #include libcli/raw/interfaces.h
 #include auth/credentials/credentials.h
 #include libcli/nbt/libnbt.h
+#include libcli/util/proto.h
 
 #undef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2)

Modified: branches/SAMBA_4_0/source/lib/cmdline/config.mk
===
--- branches/SAMBA_4_0/source/lib/cmdline/config.mk 2006-03-07 13:22:00 UTC 
(rev 13937)
+++ branches/SAMBA_4_0/source/lib/cmdline/config.mk 2006-03-07 13:36:26 UTC 
(rev 13938)
@@ -1,4 +1,5 @@
 [SUBSYSTEM::LIBCMDLINE_CREDENTIALS]
+PRIVATE_PROTO_HEADER = credentials.h
 OBJ_FILES = credentials.o
 REQUIRED_SUBSYSTEMS = CREDENTIALS
 

Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c
===
--- branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c2006-03-07 
13:22:00 UTC (rev 13937)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c2006-03-07 
13:36:26 UTC (rev 13938)
@@ -21,6 +21,7 @@
 
 #include includes.h
 #include lib/cmdline/popt_common.h
+#include lib/cmdline/credentials.h
 #include auth/gensec/gensec.h
 
 /* Handle command line options:

Modified: branches/SAMBA_4_0/source/lib/ldb/config.mk
===
--- 

svn commit: samba r13939 - in branches/SAMBA_4_0/source: auth auth/gensec auth/kerberos build/smb_build ldap_server lib lib/cmdline lib/netif libcli libcli/auth libcli/composite libcli/security libcli

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 13:47:34 + (Tue, 07 Mar 2006)
New Revision: 13939

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13939

Log:
Fix bin/.dummy issues, add more ignores

Modified:
   branches/SAMBA_4_0/source/auth/
   branches/SAMBA_4_0/source/auth/gensec/
   branches/SAMBA_4_0/source/auth/kerberos/
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/ldap_server/
   branches/SAMBA_4_0/source/lib/
   branches/SAMBA_4_0/source/lib/cmdline/
   branches/SAMBA_4_0/source/lib/netif/
   branches/SAMBA_4_0/source/libcli/
   branches/SAMBA_4_0/source/libcli/auth/
   branches/SAMBA_4_0/source/libcli/composite/
   branches/SAMBA_4_0/source/libcli/security/
   branches/SAMBA_4_0/source/libcli/util/
   branches/SAMBA_4_0/source/passdb/
   branches/SAMBA_4_0/source/rpc_server/common/
   branches/SAMBA_4_0/source/scripting/ejs/
   branches/SAMBA_4_0/source/smbd/
   branches/SAMBA_4_0/source/winbind/


Changeset:

Property changes on: branches/SAMBA_4_0/source/auth
___
Name: svn:ignore
   - .sconsign
auth_proto.h
*.d

   + auth_sam.h
pam_errors.h
.sconsign
auth_proto.h
*.d



Property changes on: branches/SAMBA_4_0/source/auth/gensec
___
Name: svn:ignore
   - proto.h
schannel_proto.h
spnego_proto.h
gensec_proto.h
*.d

   + schannel_state.h
proto.h
schannel_proto.h
spnego_proto.h
gensec_proto.h
*.d



Property changes on: branches/SAMBA_4_0/source/auth/kerberos
___
Name: svn:ignore
   - .sconsign
*.d

   + proto.h
*.d


Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
13:36:26 UTC (rev 13938)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
13:47:34 UTC (rev 13939)
@@ -273,7 +273,7 @@
$self-output( __EOD__
 #
 
-bin/$ctx-{LIBRARY_REALNAME}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST) bin/.dummy
+bin/$ctx-{LIBRARY_REALNAME}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST) 
[EMAIL PROTECTED] Linking \$\@
[EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_FLAGS) \\
@@ -284,11 +284,11 @@
if (defined($ctx-{LIBRARY_SONAME})) {
$self-output( __EOD__
 # Symlink $ctx-{LIBRARY_SONAME}
-bin/$ctx-{LIBRARY_SONAME}: bin/$ctx-{LIBRARY_REALNAME} bin/.dummy
+bin/$ctx-{LIBRARY_SONAME}: bin/$ctx-{LIBRARY_REALNAME} 
[EMAIL PROTECTED] Symlink \$\@
[EMAIL PROTECTED] -sf $ctx-{LIBRARY_REALNAME} \$\@
 # Symlink $ctx-{LIBRARY_NAME}
-bin/$ctx-{LIBRARY_NAME}: bin/$ctx-{LIBRARY_SONAME} bin/.dummy
+bin/$ctx-{LIBRARY_NAME}: bin/$ctx-{LIBRARY_SONAME} 
[EMAIL PROTECTED] Symlink \$\@
[EMAIL PROTECTED] -sf $ctx-{LIBRARY_SONAME} \$\@
 
@@ -361,7 +361,7 @@
 
$self-output( __EOD__
 #
-$ctx-{TARGET}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST) bin/.dummy
+$ctx-{TARGET}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST) 
[EMAIL PROTECTED] Linking \$@
[EMAIL PROTECTED](STLD) \$(STLD_FLAGS) \$@ \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_LIST)
@@ -415,7 +415,7 @@
if ($self-{duplicate_build}) {
$self-output( __EOD__
 #
-bin/$ctx-{BINARY}: bin/.dummy \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST)
+bin/$ctx-{BINARY}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST)
[EMAIL PROTECTED] Linking \$\@
[EMAIL PROTECTED](CC) \$(LDFLAGS) -o \$\@ \$(LOCAL_LINK_FLAGS) \\
\$\($ctx-{TYPE}_$ctx-{NAME}_LINK_LIST) \\


Property changes on: branches/SAMBA_4_0/source/ldap_server
___
Name: svn:ignore
   - .sconsign
*.d

   + proto.h
*.d



Property changes on: branches/SAMBA_4_0/source/lib
___
Name: svn:ignore
   - *.d
*.po
*.po32


   + db_wrap_proto.h
*.d
*.po
*.po32




Property changes on: branches/SAMBA_4_0/source/lib/cmdline
___
Name: svn:ignore
   - .sconsign
*.d

   + credentials.h
*.d



Property changes on: branches/SAMBA_4_0/source/lib/netif
___
Name: svn:ignore
   - .sconsign
*.d

   + proto.h
*.d



Property changes on: branches/SAMBA_4_0/source/libcli
___
Name: svn:ignore
   - libcli_proto.h
*.d
*.po
*.po32


   + finddcs.h
libcli_proto.h
*.d
*.po
*.po32




Property changes on: branches/SAMBA_4_0/source/libcli/auth

svn commit: samba r13940 - in branches/SAMBA_4_0/source/build/smb_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 14:00:57 + (Tue, 07 Mar 2006)
New Revision: 13940

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13940

Log:
use the local vs. install linkerflag trick for shared libs too

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
13:47:34 UTC (rev 13939)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
14:00:57 UTC (rev 13940)
@@ -119,11 +119,12 @@
 PICFLAG=$self-{config}-{PICFLAG}
 HOSTCC=$self-{config}-{HOSTCC}
 
-LD=$self-{config}-{LD} 
-LDFLAGS=$self-{config}-{LDFLAGS} -L\$(builddir)/bin
 LOCAL_LINK_FLAGS=$devld_local
 INSTALL_LINK_FLAGS=$devld_install
 
+LD=$self-{config}-{LD} 
+LDFLAGS=$self-{config}-{LDFLAGS} -L\$(builddir)/bin
+
 STLD=$self-{config}-{AR}
 STLD_FLAGS=-rc -L\$(builddir)/bin
 
@@ -255,6 +256,14 @@
 {
my ($self,$ctx) = @_;
 
+   my $installdir;
+   
+   if ($self-{duplicate_build}) {
+   $installdir = bin/install;
+   } else {
+   $installdir = bin;
+   }
+
push (@{$self-{shared_libs}}, bin/$ctx-{LIBRARY_REALNAME});
push (@{$self-{shared_modules}}, bin/$ctx-{LIBRARY_REALNAME});
 
@@ -270,19 +279,20 @@
push(@{$self-{proto_objs}}, 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST\));
}
 
-   $self-output( __EOD__
+   if ($self-{duplicate_build}) {
+   $self-output( __EOD__
 #
 
 bin/$ctx-{LIBRARY_REALNAME}: \$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) 
\$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST) 
[EMAIL PROTECTED] Linking \$\@
-   [EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \\
+   [EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \$(LOCAL_LINK_FLAGS) \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_FLAGS) \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_LIST)
 
 __EOD__
 );
-   if (defined($ctx-{LIBRARY_SONAME})) {
-   $self-output( __EOD__
+   if (defined($ctx-{LIBRARY_SONAME})) {
+   $self-output( __EOD__
 # Symlink $ctx-{LIBRARY_SONAME}
 bin/$ctx-{LIBRARY_SONAME}: bin/$ctx-{LIBRARY_REALNAME} 
[EMAIL PROTECTED] Symlink \$\@
@@ -294,7 +304,34 @@
 
 __EOD__
 );
+   }
}
+
+   $self-output( __EOD__
+#
+
+$installdir/$ctx-{LIBRARY_REALNAME}: 
\$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) \$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST)
+   [EMAIL PROTECTED] Linking \$\@
+   [EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \$(INSTALL_LINK_FLAGS) \\
+   \$($ctx-{TYPE}_$ctx-{NAME}_LINK_FLAGS) \\
+   \$($ctx-{TYPE}_$ctx-{NAME}_LINK_LIST)
+
+__EOD__
+);
+   if (defined($ctx-{LIBRARY_SONAME})) {
+   $self-output( __EOD__
+# Symlink $ctx-{LIBRARY_SONAME}
+$installdir/$ctx-{LIBRARY_SONAME}: $installdir/$ctx-{LIBRARY_REALNAME}
+   [EMAIL PROTECTED] Symlink \$\@
+   [EMAIL PROTECTED] -sf $ctx-{LIBRARY_REALNAME} \$\@
+# Symlink $ctx-{LIBRARY_NAME}
+$installdir/$ctx-{LIBRARY_NAME}: $installdir/$ctx-{LIBRARY_SONAME}
+   [EMAIL PROTECTED] Symlink \$\@
+   [EMAIL PROTECTED] -sf $ctx-{LIBRARY_SONAME} \$\@
+
+__EOD__
+);
+   }
 }
 
 sub MergedObj($$)



svn commit: samba r13941 - in branches/SAMBA_4_0/source: ldap_server nbt_server web_server

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 14:13:38 + (Tue, 07 Mar 2006)
New Revision: 13941

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13941

Log:
fix the build

metze
Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c
   branches/SAMBA_4_0/source/nbt_server/irpc.c
   branches/SAMBA_4_0/source/nbt_server/nbt_server.c
   branches/SAMBA_4_0/source/web_server/http.c
   branches/SAMBA_4_0/source/web_server/web_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2006-03-07 14:00:57 UTC 
(rev 13940)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2006-03-07 14:13:38 UTC 
(rev 13941)
@@ -30,7 +30,7 @@
 #include ldap_server/ldap_server.h
 #include smbd/service_task.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include lib/socket/socket.h
 #include lib/tls/tls.h
 #include lib/messaging/irpc.h

Modified: branches/SAMBA_4_0/source/nbt_server/irpc.c
===
--- branches/SAMBA_4_0/source/nbt_server/irpc.c 2006-03-07 14:00:57 UTC (rev 
13940)
+++ branches/SAMBA_4_0/source/nbt_server/irpc.c 2006-03-07 14:13:38 UTC (rev 
13941)
@@ -23,7 +23,7 @@
 
 #include includes.h
 #include smbd/service_task.h
-#include smbd/proto.h
+#include smbd/service.h
 #include nbt_server/nbt_server.h
 #include nbt_server/wins/winsserver.h
 #include lib/socket/socket.h

Modified: branches/SAMBA_4_0/source/nbt_server/nbt_server.c
===
--- branches/SAMBA_4_0/source/nbt_server/nbt_server.c   2006-03-07 14:00:57 UTC 
(rev 13940)
+++ branches/SAMBA_4_0/source/nbt_server/nbt_server.c   2006-03-07 14:13:38 UTC 
(rev 13941)
@@ -22,7 +22,7 @@
 
 #include includes.h
 #include smbd/service_task.h
-#include smbd/proto.h
+#include smbd/service.h
 #include nbt_server/nbt_server.h
 #include nbt_server/wins/winsserver.h
 #include system/network.h

Modified: branches/SAMBA_4_0/source/web_server/http.c
===
--- branches/SAMBA_4_0/source/web_server/http.c 2006-03-07 14:00:57 UTC (rev 
13940)
+++ branches/SAMBA_4_0/source/web_server/http.c 2006-03-07 14:13:38 UTC (rev 
13941)
@@ -24,7 +24,7 @@
 #include smbd/service_task.h
 #include web_server/web_server.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include lib/events/events.h
 #include system/time.h
 #include lib/appweb/esp/esp.h

Modified: branches/SAMBA_4_0/source/web_server/web_server.c
===
--- branches/SAMBA_4_0/source/web_server/web_server.c   2006-03-07 14:00:57 UTC 
(rev 13940)
+++ branches/SAMBA_4_0/source/web_server/web_server.c   2006-03-07 14:13:38 UTC 
(rev 13941)
@@ -23,7 +23,7 @@
 #include includes.h
 #include smbd/service_task.h
 #include smbd/service_stream.h
-#include smbd/proto.h
+#include smbd/service.h
 #include web_server/web_server.h
 #include lib/events/events.h
 #include system/filesys.h



svn commit: samba r13942 - in branches/SAMBA_4_0/source/scripting/ejs: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 14:14:24 + (Tue, 07 Mar 2006)
New Revision: 13942

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13942

Log:
fix dependencies

metze
Modified:
   branches/SAMBA_4_0/source/scripting/ejs/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/config.mk
===
--- branches/SAMBA_4_0/source/scripting/ejs/config.mk   2006-03-07 14:13:38 UTC 
(rev 13941)
+++ branches/SAMBA_4_0/source/scripting/ejs/config.mk   2006-03-07 14:14:24 UTC 
(rev 13942)
@@ -30,9 +30,28 @@
smbcalls_param.o \
ejsnet.o \
mprutil.o
-REQUIRED_SUBSYSTEMS = AUTH EJS LIBBASIC EJSRPC MESSAGING LIBSAMBA3 LIBNET \
- NDR_ALL LIBSMB LIBPOPT 
POPT_CREDENTIALS \
- POPT_SAMBA
+REQUIRED_SUBSYSTEMS = \
+   AUTH EJS LIBBASIC \
+   EJSRPC MESSAGING LIBSAMBA3 \
+   LIBNET LIBSMB LIBPOPT \
+   POPT_CREDENTIALS POPT_SAMBA \
+   LIBDCERPC \
+   NDR_ALL \
+   RPC_EJS_SECURITY \
+   RPC_EJS_LSA \
+   RPC_EJS_ECHO \
+   RPC_EJS_WINREG \
+   RPC_EJS_DFS \
+   RPC_EJS_MISC \
+   RPC_EJS_EVENTLOG \
+   RPC_EJS_SAMR \
+   RPC_EJS_WKSSVC \
+   RPC_EJS_SRVSVC \
+   RPC_EJS_SVCCTL \
+   RPC_EJS_INITSHUTDOWN \
+   RPC_EJS_NETLOGON \
+   RPC_EJS_DRSUAPI \
+   RPC_EJS_IRPC
 # End SUBSYSTEM SMBCALLS
 ###
 



svn commit: samba r13943 - in branches/SAMBA_4_0/source/build/smb_build: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 14:22:13 + (Tue, 07 Mar 2006)
New Revision: 13943

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13943

Log:
the -rpath-link should be only used for binaries,
otherwise application linking to the installed lib would look
at the builddir for searching other libs

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
14:14:24 UTC (rev 13942)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2006-03-07 
14:22:13 UTC (rev 13943)
@@ -312,7 +312,7 @@
 
 $installdir/$ctx-{LIBRARY_REALNAME}: 
\$($ctx-{TYPE}_$ctx-{NAME}_DEPEND_LIST) \$($ctx-{TYPE}_$ctx-{NAME}_OBJ_LIST)
[EMAIL PROTECTED] Linking \$\@
-   [EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \$(INSTALL_LINK_FLAGS) \\
+   [EMAIL PROTECTED](SHLD) \$(SHLD_FLAGS) -o \$\@ \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_FLAGS) \\
\$($ctx-{TYPE}_$ctx-{NAME}_LINK_LIST)
 



svn commit: samba r13944 - in branches/SAMBA_4_0/source: cldap_server client gtk/tools lib lib/appweb/mpr lib/cmdline lib/messaging lib/registry lib/registry/tools lib/util libcli libcli/util ntvfs/po

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 14:34:32 + (Tue, 07 Mar 2006)
New Revision: 13944

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13944

Log:
Yet another round of splitups.

Modified:
   branches/SAMBA_4_0/source/cldap_server/
   branches/SAMBA_4_0/source/cldap_server/cldap_server.h
   branches/SAMBA_4_0/source/cldap_server/config.mk
   branches/SAMBA_4_0/source/client/client.c
   branches/SAMBA_4_0/source/gtk/tools/gregedit.c
   branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h
   branches/SAMBA_4_0/source/lib/basic.mk
   branches/SAMBA_4_0/source/lib/cmdline/
   branches/SAMBA_4_0/source/lib/cmdline/config.mk
   branches/SAMBA_4_0/source/lib/messaging/messaging.c
   branches/SAMBA_4_0/source/lib/registry/
   branches/SAMBA_4_0/source/lib/registry/config.mk
   branches/SAMBA_4_0/source/lib/registry/tools/regdiff.c
   branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c
   branches/SAMBA_4_0/source/lib/registry/tools/regshell.c
   branches/SAMBA_4_0/source/lib/registry/tools/regtree.c
   branches/SAMBA_4_0/source/lib/util/
   branches/SAMBA_4_0/source/lib/util/config.mk
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libcli/util/
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_xattr.c
   branches/SAMBA_4_0/source/scripting/ejs/config.mk
   branches/SAMBA_4_0/source/smbd/server.c
   branches/SAMBA_4_0/source/torture/raw/acls.c


Changeset:

Property changes on: branches/SAMBA_4_0/source/cldap_server
___
Name: svn:ignore
   - .sconsign
*.d

   + proto.h
*.d


Modified: branches/SAMBA_4_0/source/cldap_server/cldap_server.h
===
--- branches/SAMBA_4_0/source/cldap_server/cldap_server.h   2006-03-07 
14:22:13 UTC (rev 13943)
+++ branches/SAMBA_4_0/source/cldap_server/cldap_server.h   2006-03-07 
14:34:32 UTC (rev 13944)
@@ -29,3 +29,5 @@
struct task_server *task;
struct ldb_context *samctx;
 };
+
+#include cldap_server/proto.h

Modified: branches/SAMBA_4_0/source/cldap_server/config.mk
===
--- branches/SAMBA_4_0/source/cldap_server/config.mk2006-03-07 14:22:13 UTC 
(rev 13943)
+++ branches/SAMBA_4_0/source/cldap_server/config.mk2006-03-07 14:34:32 UTC 
(rev 13944)
@@ -3,6 +3,7 @@
 ###
 # Start SUBSYSTEM CLDAPD
 [SUBSYSTEM::CLDAPD]
+PRIVATE_PROTO_HEADER = proto.h
 OBJ_FILES = \
cldap_server.o \
netlogon.o

Modified: branches/SAMBA_4_0/source/client/client.c
===
--- branches/SAMBA_4_0/source/client/client.c   2006-03-07 14:22:13 UTC (rev 
13943)
+++ branches/SAMBA_4_0/source/client/client.c   2006-03-07 14:34:32 UTC (rev 
13944)
@@ -28,6 +28,7 @@
 #include librpc/gen_ndr/ndr_srvsvc.h
 #include librpc/gen_ndr/ndr_lsa.h
 #include libcli/raw/libcliraw.h
+#include libcli/util/clilsa.h
 #include system/dir.h
 #include system/filesys.h
 #include dlinklist.h

Modified: branches/SAMBA_4_0/source/gtk/tools/gregedit.c
===
--- branches/SAMBA_4_0/source/gtk/tools/gregedit.c  2006-03-07 14:22:13 UTC 
(rev 13943)
+++ branches/SAMBA_4_0/source/gtk/tools/gregedit.c  2006-03-07 14:34:32 UTC 
(rev 13944)
@@ -21,6 +21,7 @@
 
 #include includes.h
 #include lib/registry/registry.h
+#include lib/registry/reg_backend_rpc.h
 #include gtk/common/gtk-smb.h
 
 static GtkTreeStore *store_keys;

Modified: branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h
===
--- branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h  2006-03-07 14:22:13 UTC 
(rev 13943)
+++ branches/SAMBA_4_0/source/lib/appweb/mpr/miniMpr.h  2006-03-07 14:34:32 UTC 
(rev 13944)
@@ -274,6 +274,9 @@
 extern void mprSetCtx(void *ctx);
 extern void *mprMemCtx(void);
 
+/* This function needs to be provided by anyone using ejs */
+void ejs_exception(const char *reason);
+
 #define mprStrCmpAnyCase(s1, s2) strcasecmp_m(s1, s2)
 
 #ifdef __cplusplus

Modified: branches/SAMBA_4_0/source/lib/basic.mk
===
--- branches/SAMBA_4_0/source/lib/basic.mk  2006-03-07 14:22:13 UTC (rev 
13943)
+++ branches/SAMBA_4_0/source/lib/basic.mk  2006-03-07 14:34:32 UTC (rev 
13944)
@@ -45,6 +45,7 @@
 
 # Start SUBSYSTEM LIBCOMPRESSION
 [SUBSYSTEM::LIBCOMPRESSION]
+NOPROTO = YES
 OBJ_FILES = \
compression/mszip.o
 # End SUBSYSTEM LIBCOMPRESION


Property changes on: branches/SAMBA_4_0/source/lib/cmdline
___
Name: svn:ignore
   - credentials.h
*.d

   + popt_credentials.h
credentials.h
*.d


Modified: branches/SAMBA_4_0/source/lib/cmdline/config.mk

svn commit: samba r13945 - branches/SAMBA_3_0/source branches/SAMBA_3_0/source/lib branches/SAMBA_3_0/source/rpcclient trunk/source trunk/source/lib trunk/source/rpcclient

2006-03-07 Thread gd
Author: gd
Date: 2006-03-07 15:17:01 + (Tue, 07 Mar 2006)
New Revision: 13945

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13945

Log:
Move display_sec.c to lib/ (as suggested by Volker).

Guenther

Added:
   branches/SAMBA_3_0/source/lib/display_sec.c
   trunk/source/lib/display_sec.c
Removed:
   branches/SAMBA_3_0/source/rpcclient/display_sec.c
   trunk/source/rpcclient/display_sec.c
Modified:
   branches/SAMBA_3_0/source/Makefile.in
   trunk/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-03-07 14:34:32 UTC (rev 
13944)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-03-07 15:17:01 UTC (rev 
13945)
@@ -492,9 +492,9 @@
 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
 rpcclient/cmd_dfs.o rpcclient/cmd_reg.o \
-rpcclient/display_sec.o rpcclient/cmd_ds.o \
-rpcclient/cmd_echo.o rpcclient/cmd_shutdown.o \
-rpcclient/cmd_test.o 
+rpcclient/cmd_ds.o rpcclient/cmd_echo.o \
+rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
+lib/display_sec.o
 
 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
  $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
@@ -574,7 +574,7 @@
  $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
  $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(SERVER_MUTEX_OBJ) \
  $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(REGFIO_OBJ) $(READLINE_OBJ) \
- rpcclient/display_sec.o
+ lib/display_sec.o
 
 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
  $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(SECRETS_OBJ)

Copied: branches/SAMBA_3_0/source/lib/display_sec.c (from rev 13944, 
branches/SAMBA_3_0/source/rpcclient/display_sec.c)

Deleted: branches/SAMBA_3_0/source/rpcclient/display_sec.c
===
--- branches/SAMBA_3_0/source/rpcclient/display_sec.c   2006-03-07 14:34:32 UTC 
(rev 13944)
+++ branches/SAMBA_3_0/source/rpcclient/display_sec.c   2006-03-07 15:17:01 UTC 
(rev 13945)
@@ -1,187 +0,0 @@
-/* 
-   Unix SMB/CIFS implementation.
-   Samba utility functions
-   Copyright (C) Andrew Tridgell 1992-1999
-   Copyright (C) Luke Kenneth Casson Leighton 1996 - 1999
-   
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-   
-   This program is distributed in the hope that it will be useful, 
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#include includes.h
-#include rpcclient.h
-
-/
-convert a security permissions into a string
-/
-char *get_sec_mask_str(uint32 type)
-{
-   static fstring typestr=;
-
-   typestr[0] = 0;
-
-   if (type  GENERIC_ALL_ACCESS)
-   fstrcat(typestr, Generic all access );
-   if (type  GENERIC_EXECUTE_ACCESS)
-   fstrcat(typestr, Generic execute access );
-   if (type  GENERIC_WRITE_ACCESS)
-   fstrcat(typestr, Generic write access );
-   if (type  GENERIC_READ_ACCESS)
-   fstrcat(typestr, Generic read access );
-   if (type  MAXIMUM_ALLOWED_ACCESS)
-   fstrcat(typestr, MAXIMUM_ALLOWED_ACCESS );
-   if (type  SYSTEM_SECURITY_ACCESS)
-   fstrcat(typestr, SYSTEM_SECURITY_ACCESS );
-   if (type  SYNCHRONIZE_ACCESS)
-   fstrcat(typestr, SYNCHRONIZE_ACCESS );
-   if (type  WRITE_OWNER_ACCESS)
-   fstrcat(typestr, WRITE_OWNER_ACCESS );
-   if (type  WRITE_DAC_ACCESS)
-   fstrcat(typestr, WRITE_DAC_ACCESS );
-   if (type  READ_CONTROL_ACCESS)
-   fstrcat(typestr, READ_CONTROL_ACCESS );
-   if (type  DELETE_ACCESS)
-   fstrcat(typestr, DELETE_ACCESS );
-
-   printf(\t\tSpecific bits: 0x%lx\n, (unsigned 
long)typeSPECIFIC_RIGHTS_MASK);
-
-   return typestr;
-}
-
-/
- display sec_access structure
- /
-void display_sec_access(SEC_ACCESS *info)
-{
-   printf(\t\tPermissions: 0x%x: %s\n, info-mask, 

svn commit: samba r13946 - branches/SAMBA_3_0/source trunk/source

2006-03-07 Thread lmuelle
Author: lmuelle
Date: 2006-03-07 15:25:10 + (Tue, 07 Mar 2006)
New Revision: 13946

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13946

Log:
Link pam_smbpass with the required object files.  Fix bug #3565.

Modified:
   branches/SAMBA_3_0/source/Makefile.in
   trunk/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-03-07 15:17:01 UTC (rev 
13945)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-03-07 15:25:10 UTC (rev 
13946)
@@ -687,7 +687,8 @@
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
$(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ)
+   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
+   $(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
 
 PAM_SMBPASS_PICOOBJ = $(PAM_SMBPASS_OBJ_0:[EMAIL PROTECTED]@)
 

Modified: trunk/source/Makefile.in
===
--- trunk/source/Makefile.in2006-03-07 15:17:01 UTC (rev 13945)
+++ trunk/source/Makefile.in2006-03-07 15:25:10 UTC (rev 13946)
@@ -701,7 +701,8 @@
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
$(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ)
+   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
+   $(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
 
 PAM_SMBPASS_PICOOBJ = $(PAM_SMBPASS_OBJ_0:[EMAIL PROTECTED]@)
 



svn commit: samba r13947 - branches/SAMBA_3_0/source trunk/source

2006-03-07 Thread lmuelle
Author: lmuelle
Date: 2006-03-07 15:27:35 + (Tue, 07 Mar 2006)
New Revision: 13947

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13947

Log:
Use tabs instead of spaces for indention.

Modified:
   branches/SAMBA_3_0/source/Makefile.in
   trunk/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-03-07 15:25:10 UTC (rev 
13946)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-03-07 15:27:35 UTC (rev 
13947)
@@ -685,9 +685,9 @@
 
 
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
-   pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
-   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
+   pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
+   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
$(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
 
 PAM_SMBPASS_PICOOBJ = $(PAM_SMBPASS_OBJ_0:[EMAIL PROTECTED]@)

Modified: trunk/source/Makefile.in
===
--- trunk/source/Makefile.in2006-03-07 15:25:10 UTC (rev 13946)
+++ trunk/source/Makefile.in2006-03-07 15:27:35 UTC (rev 13947)
@@ -699,9 +699,9 @@
 
 
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
-   pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
-   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
+   pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
+   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+   $(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
$(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
 
 PAM_SMBPASS_PICOOBJ = $(PAM_SMBPASS_OBJ_0:[EMAIL PROTECTED]@)



svn commit: samba r13948 - in branches/SAMBA_3_0/source/lib: .

2006-03-07 Thread jmcd
Author: jmcd
Date: 2006-03-07 15:32:18 + (Tue, 07 Mar 2006)
New Revision: 13948

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13948

Log:
Fix the build.  Remove rpcclient.h include.

Modified:
   branches/SAMBA_3_0/source/lib/display_sec.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/display_sec.c
===
--- branches/SAMBA_3_0/source/lib/display_sec.c 2006-03-07 15:27:35 UTC (rev 
13947)
+++ branches/SAMBA_3_0/source/lib/display_sec.c 2006-03-07 15:32:18 UTC (rev 
13948)
@@ -20,7 +20,6 @@
 */
 
 #include includes.h
-#include rpcclient.h
 
 /
 convert a security permissions into a string



svn commit: samba r13949 - in trunk/source/lib: .

2006-03-07 Thread jmcd
Author: jmcd
Date: 2006-03-07 15:35:52 + (Tue, 07 Mar 2006)
New Revision: 13949

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13949

Log:
Fix build.  Remove rpcclient include.

Modified:
   trunk/source/lib/display_sec.c


Changeset:
Modified: trunk/source/lib/display_sec.c
===
--- trunk/source/lib/display_sec.c  2006-03-07 15:32:18 UTC (rev 13948)
+++ trunk/source/lib/display_sec.c  2006-03-07 15:35:52 UTC (rev 13949)
@@ -20,7 +20,6 @@
 */
 
 #include includes.h
-#include rpcclient.h
 
 /
 convert a security permissions into a string



svn commit: samba r13950 - branches/SAMBA_3_0/source/libads trunk/source/libads

2006-03-07 Thread vlendec
Author: vlendec
Date: 2006-03-07 16:01:57 + (Tue, 07 Mar 2006)
New Revision: 13950

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13950

Log:
Fix Coverity bug #168
Modified:
   branches/SAMBA_3_0/source/libads/ads_ldap.c
   trunk/source/libads/ads_ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ads_ldap.c
===
--- branches/SAMBA_3_0/source/libads/ads_ldap.c 2006-03-07 15:35:52 UTC (rev 
13949)
+++ branches/SAMBA_3_0/source/libads/ads_ldap.c 2006-03-07 16:01:57 UTC (rev 
13950)
@@ -84,6 +84,7 @@
 
if (!*dn) {
ads_memfree(ads, dn2);
+   dn2 = NULL;
rc = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
goto done;
}

Modified: trunk/source/libads/ads_ldap.c
===
--- trunk/source/libads/ads_ldap.c  2006-03-07 15:35:52 UTC (rev 13949)
+++ trunk/source/libads/ads_ldap.c  2006-03-07 16:01:57 UTC (rev 13950)
@@ -84,6 +84,7 @@
 
if (!*dn) {
ads_memfree(ads, dn2);
+   dn2 = NULL;
rc = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
goto done;
}



svn commit: samba r13951 - branches/SAMBA_3_0/source/libads trunk/source/libads

2006-03-07 Thread vlendec
Author: vlendec
Date: 2006-03-07 16:06:26 + (Tue, 07 Mar 2006)
New Revision: 13951

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13951

Log:
Fix Coverity Bug #163.

This code was not used anyway :-)

Volker


Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   trunk/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===
--- branches/SAMBA_3_0/source/libads/ldap.c 2006-03-07 16:01:57 UTC (rev 
13950)
+++ branches/SAMBA_3_0/source/libads/ldap.c 2006-03-07 16:06:26 UTC (rev 
13951)
@@ -823,35 +823,7 @@
 #endif
 }
 
-
 /**
- * Get the parent dn from a search result
- * @param ads connection to ads server
- * @param msg Search result
- * @return parent dn string
- **/
-char *ads_get_parent_dn(ADS_STRUCT *ads, void *msg)
-{
-   char *mydn, *p, *dn;
-
-   dn = ads_get_dn(ads, msg);
-   if (dn == NULL) {
-   return NULL;
-   }
-
-   mydn = dn;
-   ads_memfree(ads, dn);
-   
-   p = strchr(mydn, ',');
-
-   if (p == NULL) {
-   return NULL;
-   }
-
-   return p+1;
-}
-
-/**
  * Get the parent from a dn
  * @param dn the dn to return the parent from
  * @return parent dn string

Modified: trunk/source/libads/ldap.c
===
--- trunk/source/libads/ldap.c  2006-03-07 16:01:57 UTC (rev 13950)
+++ trunk/source/libads/ldap.c  2006-03-07 16:06:26 UTC (rev 13951)
@@ -823,35 +823,7 @@
 #endif
 }
 
-
 /**
- * Get the parent dn from a search result
- * @param ads connection to ads server
- * @param msg Search result
- * @return parent dn string
- **/
-char *ads_get_parent_dn(ADS_STRUCT *ads, void *msg)
-{
-   char *mydn, *p, *dn;
-
-   dn = ads_get_dn(ads, msg);
-   if (dn == NULL) {
-   return NULL;
-   }
-
-   mydn = dn;
-   ads_memfree(ads, dn);
-   
-   p = strchr(mydn, ',');
-
-   if (p == NULL) {
-   return NULL;
-   }
-
-   return p+1;
-}
-
-/**
  * Get the parent from a dn
  * @param dn the dn to return the parent from
  * @return parent dn string



svn commit: samba r13953 - in branches/SAMBA_4_0/source/lib/crypto: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:25:28 + (Tue, 07 Mar 2006)
New Revision: 13953

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13953

Log:
make more functions public

metze
Modified:
   branches/SAMBA_4_0/source/lib/crypto/arcfour.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/crypto/arcfour.c
===
--- branches/SAMBA_4_0/source/lib/crypto/arcfour.c  2006-03-07 16:18:09 UTC 
(rev 13952)
+++ branches/SAMBA_4_0/source/lib/crypto/arcfour.c  2006-03-07 16:25:28 UTC 
(rev 13953)
@@ -24,7 +24,7 @@
 #include lib/crypto/crypto.h
 
 /* initialise the arcfour sbox with key */
-void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key) 
+_PUBLIC_ void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key) 
 {
int ind;
uint8_t j = 0;
@@ -46,7 +46,7 @@
 }
 
 /* crypt the data with arcfour */
-void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len) 
+_PUBLIC_ void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, 
int len) 
 {
int ind;

@@ -69,7 +69,7 @@
 /*
   arcfour encryption with a blob key
 */
-void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key) 
+_PUBLIC_ void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key) 
 {
struct arcfour_state state;
arcfour_init(state, key);
@@ -80,7 +80,7 @@
   a variant that assumes a 16 byte key. This should be removed
   when the last user is gone
 */
-void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
+_PUBLIC_ void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
 {
DATA_BLOB key = data_blob(keystr, 16);




svn commit: samba r13954 - in branches/SAMBA_4_0/source: . build/smb_build

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 16:27:01 + (Tue, 07 Mar 2006)
New Revision: 13954

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13954

Log:
Add --enable-dso flag to ./configure that simplifies the ability to 
do shared library-enabled builds.

Modified:
   branches/SAMBA_4_0/source/build/smb_build/main.pl
   branches/SAMBA_4_0/source/configure.in


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/main.pl
===
--- branches/SAMBA_4_0/source/build/smb_build/main.pl   2006-03-07 16:25:28 UTC 
(rev 13953)
+++ branches/SAMBA_4_0/source/build/smb_build/main.pl   2006-03-07 16:27:01 UTC 
(rev 13954)
@@ -33,9 +33,7 @@
 if (defined($ENV{LIBRARY_OUTPUT_TYPE})) {
$library_output_type = $ENV{LIBRARY_OUTPUT_TYPE};
 } elsif ($config::config{BLDSHARED} eq true) {
-   #FIXME: This should eventually become SHARED_LIBRARY 
-   # rather then MERGEDOBJ once I'm certain it works ok -- jelmer
-   $library_output_type = MERGEDOBJ;
+   $library_output_type = SHARED_LIBRARY;
 } elsif ($config::config{BLDMERGED} eq true) {
$library_output_type = MERGEDOBJ;
 } else {
@@ -46,9 +44,7 @@
 if (defined($ENV{MODULE_OUTPUT_TYPE})) {
$module_output_type = $ENV{MODULE_OUTPUT_TYPE};
 } elsif ($config::config{BLDSHARED} eq true) {
-   #FIXME: This should eventually become SHARED_LIBRARY 
-   # rather then MERGEDOBJ once I'm certain it works ok -- jelmer
-   $module_output_type = MERGEDOBJ;
+   $module_output_type = SHARED_LIBRARY;
 } elsif ($config::config{BLDMERGED} eq true) {
$module_output_type = MERGEDOBJ;
 } else {

Modified: branches/SAMBA_4_0/source/configure.in
===
--- branches/SAMBA_4_0/source/configure.in  2006-03-07 16:25:28 UTC (rev 
13953)
+++ branches/SAMBA_4_0/source/configure.in  2006-03-07 16:27:01 UTC (rev 
13954)
@@ -43,16 +43,14 @@
 sinclude(auth/config.m4)
 sinclude(kdc/config.m4)
 
-AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, $string_static_modules, [String 
list of builtin modules])
+AC_ARG_ENABLE(dso,
+[  --enable-dsoEnable building internal libraries as DSO's 
(experimental)],
+[ if test x$enable_dso != xyes; then
+   BLDSHARED=false
+  fi], 
+[BLDSHARED=false])
 
 #
-# do extra things if we are running insure
-
-if test ${ac_cv_prog_CC} = insure; then
-   CPPFLAGS=$CPPFLAGS -D__INSURE__
-fi
-
-#
 # add *_CFLAGS only for the real build
 CFLAGS=${CFLAGS} ${VISIBILITY_CFLAGS} ${DEVELOPER_CFLAGS}
 



svn commit: samba r13955 - branches/SAMBA_3_0/source/groupdb trunk/source/groupdb

2006-03-07 Thread vlendec
Author: vlendec
Date: 2006-03-07 16:28:05 + (Tue, 07 Mar 2006)
New Revision: 13955

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13955

Log:
Fix Coverity ID 139.

Not a bug in the strictest sense, more a clarification. This whole routine
assumes new_gid != NULL anyway, so there's no point in checking.

Volker


Modified:
   branches/SAMBA_3_0/source/groupdb/mapping.c
   trunk/source/groupdb/mapping.c


Changeset:
Modified: branches/SAMBA_3_0/source/groupdb/mapping.c
===
--- branches/SAMBA_3_0/source/groupdb/mapping.c 2006-03-07 16:27:01 UTC (rev 
13954)
+++ branches/SAMBA_3_0/source/groupdb/mapping.c 2006-03-07 16:28:05 UTC (rev 
13955)
@@ -868,7 +868,7 @@
if ( *lp_addgroup_script() ) {
pstrcpy(add_script, lp_addgroup_script());
pstring_sub(add_script, %g, unix_group);
-   ret = smbrun(add_script, (new_gid!=NULL) ? fd : NULL);
+   ret = smbrun(add_script, fd);
DEBUG(ret ? 0 : 3,(smb_create_group: Running the command `%s' 
gave %d\n,add_script,ret));
if (ret != 0)
return ret;

Modified: trunk/source/groupdb/mapping.c
===
--- trunk/source/groupdb/mapping.c  2006-03-07 16:27:01 UTC (rev 13954)
+++ trunk/source/groupdb/mapping.c  2006-03-07 16:28:05 UTC (rev 13955)
@@ -868,7 +868,7 @@
if ( *lp_addgroup_script() ) {
pstrcpy(add_script, lp_addgroup_script());
pstring_sub(add_script, %g, unix_group);
-   ret = smbrun(add_script, (new_gid!=NULL) ? fd : NULL);
+   ret = smbrun(add_script, fd);
DEBUG(ret ? 0 : 3,(smb_create_group: Running the command `%s' 
gave %d\n,add_script,ret));
if (ret != 0)
return ret;



svn commit: samba r13956 - in branches/SAMBA_4_0/source/lib/socket: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:28:39 + (Tue, 07 Mar 2006)
New Revision: 13956

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13956

Log:
make more functions public

metze
Modified:
   branches/SAMBA_4_0/source/lib/socket/socket.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/socket.c
===
--- branches/SAMBA_4_0/source/lib/socket/socket.c   2006-03-07 16:28:05 UTC 
(rev 13955)
+++ branches/SAMBA_4_0/source/lib/socket/socket.c   2006-03-07 16:28:39 UTC 
(rev 13956)
@@ -81,8 +81,8 @@
return NT_STATUS_OK;
 }
 
-NTSTATUS socket_create(const char *name, enum socket_type type, 
-  struct socket_context **new_sock, uint32_t flags)
+_PUBLIC_ NTSTATUS socket_create(const char *name, enum socket_type type, 
+   struct socket_context **new_sock, uint32_t 
flags)
 {
const struct socket_ops *ops;
 
@@ -94,10 +94,10 @@
return socket_create_with_ops(NULL, ops, new_sock, type, flags);
 }
 
-NTSTATUS socket_connect(struct socket_context *sock,
-   const struct socket_address *my_address, 
-   const struct socket_address *server_address,
-   uint32_t flags)
+_PUBLIC_ NTSTATUS socket_connect(struct socket_context *sock,
+const struct socket_address *my_address, 
+const struct socket_address *server_address,
+uint32_t flags)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -113,7 +113,7 @@
return sock-ops-fn_connect(sock, my_address, server_address, flags);
 }
 
-NTSTATUS socket_connect_complete(struct socket_context *sock, uint32_t flags)
+_PUBLIC_ NTSTATUS socket_connect_complete(struct socket_context *sock, 
uint32_t flags)
 {
if (!sock-ops-fn_connect_complete) {
return NT_STATUS_NOT_IMPLEMENTED;
@@ -121,9 +121,9 @@
return sock-ops-fn_connect_complete(sock, flags);
 }
 
-NTSTATUS socket_listen(struct socket_context *sock, 
-  const struct socket_address *my_address, 
-  int queue_size, uint32_t flags)
+_PUBLIC_ NTSTATUS socket_listen(struct socket_context *sock, 
+   const struct socket_address *my_address, 
+   int queue_size, uint32_t flags)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -139,7 +139,7 @@
return sock-ops-fn_listen(sock, my_address, queue_size, flags);
 }
 
-NTSTATUS socket_accept(struct socket_context *sock, struct socket_context 
**new_sock)
+_PUBLIC_ NTSTATUS socket_accept(struct socket_context *sock, struct 
socket_context **new_sock)
 {
NTSTATUS status;
 
@@ -167,8 +167,8 @@
return status;
 }
 
-NTSTATUS socket_recv(struct socket_context *sock, void *buf, 
-size_t wantlen, size_t *nread, uint32_t flags)
+_PUBLIC_ NTSTATUS socket_recv(struct socket_context *sock, void *buf, 
+ size_t wantlen, size_t *nread, uint32_t flags)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -194,9 +194,9 @@
return sock-ops-fn_recv(sock, buf, wantlen, nread, flags);
 }
 
-NTSTATUS socket_recvfrom(struct socket_context *sock, void *buf, 
-size_t wantlen, size_t *nread, uint32_t flags,
-TALLOC_CTX *mem_ctx, struct socket_address **src_addr)
+_PUBLIC_ NTSTATUS socket_recvfrom(struct socket_context *sock, void *buf, 
+ size_t wantlen, size_t *nread, uint32_t flags,
+ TALLOC_CTX *mem_ctx, struct socket_address 
**src_addr)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -213,8 +213,8 @@
  mem_ctx, src_addr);
 }
 
-NTSTATUS socket_send(struct socket_context *sock, 
-const DATA_BLOB *blob, size_t *sendlen, uint32_t flags)
+_PUBLIC_ NTSTATUS socket_send(struct socket_context *sock, 
+ const DATA_BLOB *blob, size_t *sendlen, uint32_t 
flags)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -242,9 +242,9 @@
 }
 
 
-NTSTATUS socket_sendto(struct socket_context *sock, 
-  const DATA_BLOB *blob, size_t *sendlen, uint32_t flags,
-  const struct socket_address *dest_addr)
+_PUBLIC_ NTSTATUS socket_sendto(struct socket_context *sock, 
+   const DATA_BLOB *blob, size_t *sendlen, 
uint32_t flags,
+   const struct socket_address *dest_addr)
 {
if (sock == NULL) {
return NT_STATUS_CONNECTION_DISCONNECTED;
@@ -269,7 +269,7 @@
 /*
   ask for the number of bytes in a 

svn commit: samba r13957 - branches/SAMBA_3_0/source/utils trunk/source/utils

2006-03-07 Thread jmcd
Author: jmcd
Date: 2006-03-07 16:29:25 + (Tue, 07 Mar 2006)
New Revision: 13957

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13957

Log:
Based on patch from Richard Renard [EMAIL PROTECTED]:
Fix machine accounts (should not have valid shells) and users with no 
home directory (were getting previous user's directory).

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
   trunk/source/utils/net_rpc_samsync.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2006-03-07 16:28:39 UTC 
(rev 13956)
+++ branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2006-03-07 16:29:25 UTC 
(rev 13957)
@@ -494,7 +494,7 @@
 
 static NTSTATUS fetch_account_info(uint32 rid, SAM_ACCOUNT_INFO *delta)
 {
-   NTSTATUS nt_ret;
+   NTSTATUS nt_ret = NT_STATUS_UNSUCCESSFUL;
fstring account;
pstring add_script;
struct samu *sam_account=NULL;
@@ -1434,12 +1434,11 @@
   ACCOUNTMAP *accountmap, FILE *add_fd,
   fstring sid, char *suffix, int alloced)
 {
-   fstring username, homedir, logonscript, homedrive, homepath;
+   fstring username, logonscript, homedrive, homepath = , homedir = ;
fstring hex_nt_passwd, hex_lm_passwd;
fstring description, fullname, sambaSID;
uchar lm_passwd[16], nt_passwd[16];
char *flags;
-   const char *blank = , *shell = /bin/bash;
const char* nopasswd = ;
static uchar zero_buf[16];
uint32 rid = 0, group_rid = 0, gidNumber = 0;
@@ -1459,12 +1458,14 @@
pstr_sprintf(accountmap-cn, %s, username);
 
/* Get the home directory */
-   unistr2_to_ascii(homedir, (delta-account_info.uni_home_dir),
-sizeof(homedir)-1);
-   if (strcmp(homedir, blank) == 0) {
-   pstr_sprintf(homedir, /home/%s, username);
-   } else {
-   strncpy(homepath, homedir, sizeof(homepath));
+   if (delta-account_info.acb_info  ACB_NORMAL) {
+   unistr2_to_ascii(homedir, (delta-account_info.uni_home_dir),
+sizeof(homedir)-1);
+   if (!*homedir) {
+   pstr_sprintf(homedir, /home/%s, username);
+   } else {
+   pstr_sprintf(homedir, dev/null);
+   }
}   
 
 /* Get the logon script */
@@ -1478,7 +1479,7 @@
/* Get the description */
unistr2_to_ascii(description, (delta-account_info.uni_acct_desc),
 sizeof(description)-1);
-   if (strcmp(description, blank) == 0) {
+   if (!*description) {
pstr_sprintf(description, System User);
}
 
@@ -1548,18 +1549,20 @@
fprintf(add_fd, uidNumber: %d\n, ldif_uid);
fprintf(add_fd, gidNumber: %d\n, gidNumber);
fprintf(add_fd, homeDirectory: %s\n, homedir);
-   if (strcmp(homepath, blank) != 0)
+   if (*homepath)
fprintf(add_fd, SambaHomePath: %s\n, homepath);
-if (strcmp(homedrive, blank) != 0)
+if (*homedrive)
 fprintf(add_fd, SambaHomeDrive: %s\n, homedrive);
-if (strcmp(logonscript, blank) != 0)
+if (*logonscript)
 fprintf(add_fd, SambaLogonScript: %s\n, logonscript);
-   fprintf(add_fd, loginShell: %s\n, shell);
+   fprintf(add_fd, loginShell: %s\n, 
+   ((delta-account_info.acb_info  ACB_NORMAL) ?
+/bin/bash : /bin/false));
fprintf(add_fd, gecos: System User\n);
fprintf(add_fd, description: %s\n, description);
fprintf(add_fd, sambaSID: %s-%d\n, sid, rid);
fprintf(add_fd, sambaPrimaryGroupSID: %s\n, sambaSID);
-   if(strcmp(fullname, blank) != 0)
+   if(*fullname)
fprintf(add_fd, displayName: %s\n, fullname);
if (strcmp(nopasswd, hex_lm_passwd) != 0)
fprintf(add_fd, sambaLMPassword: %s\n, hex_lm_passwd);

Modified: trunk/source/utils/net_rpc_samsync.c
===
--- trunk/source/utils/net_rpc_samsync.c2006-03-07 16:28:39 UTC (rev 
13956)
+++ trunk/source/utils/net_rpc_samsync.c2006-03-07 16:29:25 UTC (rev 
13957)
@@ -494,7 +494,7 @@
 
 static NTSTATUS fetch_account_info(uint32 rid, SAM_ACCOUNT_INFO *delta)
 {
-   NTSTATUS nt_ret;
+   NTSTATUS nt_ret = NT_STATUS_UNSUCCESSFUL;
fstring account;
pstring add_script;
struct samu *sam_account=NULL;
@@ -1434,12 +1434,11 @@
   ACCOUNTMAP *accountmap, FILE *add_fd,
   fstring sid, char *suffix, int alloced)
 {
-   fstring username, homedir, logonscript, homedrive, homepath;
+   fstring username, logonscript, homedrive, homepath = , homedir = 

svn commit: samba r13958 - branches/SAMBA_3_0/source/rpc_client trunk/source/rpc_client

2006-03-07 Thread vlendec
Author: vlendec
Date: 2006-03-07 16:33:36 + (Tue, 07 Mar 2006)
New Revision: 13958

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13958

Log:
Fix Coverity Bug # 141
Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c
   trunk/source/rpc_client/cli_spoolss.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c
===
--- branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c  2006-03-07 16:29:25 UTC 
(rev 13957)
+++ branches/SAMBA_3_0/source/rpc_client/cli_spoolss.c  2006-03-07 16:33:36 UTC 
(rev 13958)
@@ -384,7 +384,7 @@
int i;
 
*forms = TALLOC_ARRAY(mem_ctx, FORM_1, num_forms);
-   if (!forms) {
+   if (*forms == NULL) {
return False;
}
prs_set_offset(buffer-prs,0);

Modified: trunk/source/rpc_client/cli_spoolss.c
===
--- trunk/source/rpc_client/cli_spoolss.c   2006-03-07 16:29:25 UTC (rev 
13957)
+++ trunk/source/rpc_client/cli_spoolss.c   2006-03-07 16:33:36 UTC (rev 
13958)
@@ -384,7 +384,7 @@
int i;
 
*forms = TALLOC_ARRAY(mem_ctx, FORM_1, num_forms);
-   if (!forms) {
+   if (*forms == NULL) {
return False;
}
prs_set_offset(buffer-prs,0);



svn commit: samba r13959 - in branches/SAMBA_4_0/source/lib/util: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:37:35 + (Tue, 07 Mar 2006)
New Revision: 13959

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13959

Log:
make more functions public

metze
Modified:
   branches/SAMBA_4_0/source/lib/util/dprintf.c
   branches/SAMBA_4_0/source/lib/util/util_file.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/dprintf.c
===
--- branches/SAMBA_4_0/source/lib/util/dprintf.c2006-03-07 16:33:36 UTC 
(rev 13958)
+++ branches/SAMBA_4_0/source/lib/util/dprintf.c2006-03-07 16:37:35 UTC 
(rev 13959)
@@ -31,7 +31,7 @@
 
 #include includes.h
 
-int d_vfprintf(FILE *f, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
+_PUBLIC_ int d_vfprintf(FILE *f, const char *format, va_list ap) 
_PRINTF_ATTRIBUTE(2,0)
 {
char *p, *p2;
int ret, maxlen, clen;
@@ -71,7 +71,7 @@
 }
 
 
-int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+_PUBLIC_ int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 {
int ret;
va_list ap;
@@ -85,7 +85,7 @@
 
 static FILE *outfile;
 
-int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2)
+_PUBLIC_ int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2)
 {
int ret;
va_list ap;
@@ -101,7 +101,7 @@
 
 /* interactive programs need a way of tell d_*() to write to stderr instead
of stdout */
-void display_set_stderr(void)
+_PUBLIC_ void display_set_stderr(void)
 {
outfile = stderr;
 }

Modified: branches/SAMBA_4_0/source/lib/util/util_file.c
===
--- branches/SAMBA_4_0/source/lib/util/util_file.c  2006-03-07 16:33:36 UTC 
(rev 13958)
+++ branches/SAMBA_4_0/source/lib/util/util_file.c  2006-03-07 16:37:35 UTC 
(rev 13959)
@@ -364,7 +364,7 @@
return (stat(path, st) == 0);
 }
 
-int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
+_PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) 
_PRINTF_ATTRIBUTE(2,0)
 {
char *p;
int len, ret;
@@ -379,7 +379,7 @@
return ret;
 }
 
-int fdprintf(int fd, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
+_PUBLIC_ int fdprintf(int fd, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
 {
va_list ap;
int ret;



svn commit: samba r13960 - in branches/SAMBA_4_0/source: auth auth/credentials auth/gensec auth/ntlmssp bin/install build/smb_build dsdb/samdb/ldb_modules gtk kdc lib lib/com lib/ldb lib/registry lib/

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 16:41:04 + (Tue, 07 Mar 2006)
New Revision: 13960

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13960

Log:
Generate makefile rules for installing/removing shared modules.

Modified:
   branches/SAMBA_4_0/source/auth/config.mk
   branches/SAMBA_4_0/source/auth/credentials/config.mk
   branches/SAMBA_4_0/source/auth/gensec/config.mk
   branches/SAMBA_4_0/source/auth/ntlmssp/config.mk
   branches/SAMBA_4_0/source/bin/install/
   branches/SAMBA_4_0/source/build/smb_build/TODO
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/config.mk
   branches/SAMBA_4_0/source/gtk/config.mk
   branches/SAMBA_4_0/source/kdc/config.mk
   branches/SAMBA_4_0/source/lib/basic.mk
   branches/SAMBA_4_0/source/lib/com/config.mk
   branches/SAMBA_4_0/source/lib/ldb/config.mk
   branches/SAMBA_4_0/source/lib/registry/config.mk
   branches/SAMBA_4_0/source/lib/tdb/config.mk
   branches/SAMBA_4_0/source/lib/util/config.mk
   branches/SAMBA_4_0/source/libcli/auth/config.mk
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libcli/ldap/config.mk
   branches/SAMBA_4_0/source/libcli/smb2/config.mk
   branches/SAMBA_4_0/source/librpc/config.mk
   branches/SAMBA_4_0/source/nbt_server/config.mk
   branches/SAMBA_4_0/source/ntptr/config.mk
   branches/SAMBA_4_0/source/ntvfs/config.mk
   branches/SAMBA_4_0/source/ntvfs/posix/config.mk
   branches/SAMBA_4_0/source/ntvfs/unixuid/config.mk
   branches/SAMBA_4_0/source/rpc_server/config.mk
   branches/SAMBA_4_0/source/scripting/ejs/config.mk
   branches/SAMBA_4_0/source/smb_server/smb/config.mk
   branches/SAMBA_4_0/source/smb_server/smb2/config.mk
   branches/SAMBA_4_0/source/smbd/config.mk
   branches/SAMBA_4_0/source/torture/config.mk
   branches/SAMBA_4_0/source/torture/local/config.mk


Changeset:
Sorry, the patch is too large (1372 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13960


svn commit: samba-web r924 - in trunk/support: .

2006-03-07 Thread deryck
Author: deryck
Date: 2006-03-07 16:45:28 + (Tue, 07 Mar 2006)
New Revision: 924

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=924

Log:
New support provider in Ireland and Austria.
Updates to an existing listing in Canada.

deryck
Added:
   trunk/support/ireland.html
Modified:
   trunk/support/austria.html
   trunk/support/canada.html
   trunk/support/countries.html


Changeset:
Modified: trunk/support/austria.html
===
--- trunk/support/austria.html  2006-03-02 21:02:11 UTC (rev 923)
+++ trunk/support/austria.html  2006-03-07 16:45:28 UTC (rev 924)
@@ -141,5 +141,31 @@
 Schulung und Supportdienstleistungen fuuml;r Samba Netzwerke jeder 
Grouml;szlig;e.
 /small/pre
 
+!-- Added: 07 March 2006 --
+hr /
+h3Salzburg/h3
+presmall
+Company: CTS Consulting  Trade Service, a 
href=http://www.ctseuro.com;http://www.ctseuro.com/a
+Contact: Karl M. Joch, a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
 
+keywords: SAMBA, FreeBSD, Linux, Support, Consulting,
+  Installation, System Administration
+
+Experience: Domain Browsing, Logon-Scripts, SAMBA Integration into Domains,
+SAMBA as Domain Master, Printing
+
+Unix expirience since 1978. Reference customers from 5 to 6 users
+working throuout europe and eastern europe.
+
+contact:
+CTS Consulting  Trade Service
+A-5020 Salzburg, Fuerstallergasse 36
+
+a href=http://www.ctseuro.com;http://www.ctseuro.com/a
+Tel: +43-662-621559-0
+Fax: +43-662-621559-22
+FWD: 716621 (VOIP)
+E164.ORG: 8829900273500 (VOIP)
+/small/pre
+
 !--#include virtual=footer_support.html --

Modified: trunk/support/canada.html
===
--- trunk/support/canada.html   2006-03-02 21:02:11 UTC (rev 923)
+++ trunk/support/canada.html   2006-03-07 16:45:28 UTC (rev 924)
@@ -215,22 +215,31 @@
 
 
 
-!-- Updated: 19 May 2004 --
+!-- Updated: 07 March 2004 --
 hr /
 h3Quebec/h3
 presmall
 Savoir-faire Linux inc.
 
-5505 Boulevard St-Laurent, #2027
+5505 Boulevard St-Laurent, #3030
 Montreal (Quebec) H2T 1S6
-Canada
+CANADA
 
-phone: (514) 276-5468
+275, rue du Parvis, Office 310
+Quebec (Quebec) G1K 6G7
+CANADA
+
+Phone: (514) 276-5468
 Fax  : (514) 994-2207
+Website : a 
href=http://www.savoirfairelinux.com;http://www.savoirfairelinux.com/a
+E-mail : a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
 
-We provide many UNIX/windows services for our clients.  Our products are
-secure and fast.  Please contact us for a quote.  Please visit our site 
-at a href=http://www.third-net.com;www.third-net.com/a for more 
information.
+Savoir-faire Linux is an IT consulting firm committed to providing
+businesses with high-quality, effective, innovative, secure and
+openended solutions for projects involving technological framework,
+integration, operations, development and personnel training related to
+all opensourced systems and especially the Linux platform.
+We offer Consulting services, development team, hosting services, etc.
 /small/pre
 
 !--#include virtual=footer_support.html --

Modified: trunk/support/countries.html
===
--- trunk/support/countries.html2006-03-02 21:02:11 UTC (rev 923)
+++ trunk/support/countries.html2006-03-07 16:45:28 UTC (rev 924)
@@ -20,6 +20,7 @@
  lia href=hungary.htmlHungary/a/li
  lia href=india.htmlIndia/a/li  
  lia href=indonesia.htmlIndonesia/a/li
+ lia href=ireland.htmlIreland/a/li
  lia href=italy.htmlItaly/a/li
  lia href=latvia.htmlLatvia/a/li
  lia href=malaysia.htmlMalaysia/a/li

Added: trunk/support/ireland.html
===
--- trunk/support/ireland.html  2006-03-02 21:02:11 UTC (rev 923)
+++ trunk/support/ireland.html  2006-03-07 16:45:28 UTC (rev 924)
@@ -0,0 +1,27 @@
+!--#include virtual=/samba/header.html --
+  titleSamba Support--Ireland/title
+!--#include virtual=header_support.html --
+
+h2Commercial Support -- Ireland/h2
+
+!-- Added: 07 March 2006 --
+presmall
+TWise Ltd
+Experience powering your business
+Kilmullen, Portarlington
+Co. Laois, Ireland
+Web: a href=http://www.ITwise.net/;http://www.ITwise.net//a
+Email: a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
+Phone: +353 87 6184366
+
+ITWise is a leading provider of IT consultancy in Ireland. Company is
+comprised of consultants from various backgrounds, who provide expertise
+across our solutions range. We possess vast experience in IT, small to large
+business applications. We specialize in commercial support for numerous open
+source software products including business applications, firewalls, network
+monitoring, virus and spam control, intrusion detection and many more. All
+kinds of Unix and all modern world technologies are at your reach with ITWise.
+/small/pre
+
+
+!--#include virtual=footer_support.html --



svn commit: samba r13961 - in branches/SAMBA_4_0/source/dsdb/samdb: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:49:35 + (Tue, 07 Mar 2006)
New Revision: 13961

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13961

Log:
make function public

metze
Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c
===
--- branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c  2006-03-07 
16:41:04 UTC (rev 13960)
+++ branches/SAMBA_4_0/source/dsdb/samdb/samdb_privilege.c  2006-03-07 
16:49:35 UTC (rev 13961)
@@ -75,7 +75,7 @@
   setup the privilege mask for this security token based on our
   local SAM
 */
-NTSTATUS samdb_privilege_setup(struct security_token *token)
+_PUBLIC_ NTSTATUS samdb_privilege_setup(struct security_token *token)
 {
void *samctx;
TALLOC_CTX *mem_ctx;



svn commit: samba r13962 - in branches/SAMBA_4_0/source/lib/stream: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:50:07 + (Tue, 07 Mar 2006)
New Revision: 13962

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13962

Log:
make functions public

metze
Modified:
   branches/SAMBA_4_0/source/lib/stream/packet.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/stream/packet.c
===
--- branches/SAMBA_4_0/source/lib/stream/packet.c   2006-03-07 16:49:35 UTC 
(rev 13961)
+++ branches/SAMBA_4_0/source/lib/stream/packet.c   2006-03-07 16:50:07 UTC 
(rev 13962)
@@ -80,7 +80,7 @@
 /*
   initialise a packet receiver
 */
-struct packet_context *packet_init(TALLOC_CTX *mem_ctx)
+_PUBLIC_ struct packet_context *packet_init(TALLOC_CTX *mem_ctx)
 {
struct packet_context *pc = talloc_zero(mem_ctx, struct packet_context);
if (pc != NULL) {
@@ -93,7 +93,7 @@
 /*
   set the request callback, called when a full request is ready
 */
-void packet_set_callback(struct packet_context *pc, packet_callback_fn_t 
callback)
+_PUBLIC_ void packet_set_callback(struct packet_context *pc, 
packet_callback_fn_t callback)
 {
pc-callback = callback;
 }
@@ -101,7 +101,7 @@
 /*
   set the error handler
 */
-void packet_set_error_handler(struct packet_context *pc, 
packet_error_handler_fn_t handler)
+_PUBLIC_ void packet_set_error_handler(struct packet_context *pc, 
packet_error_handler_fn_t handler)
 {
pc-error_handler = handler;
 }
@@ -109,7 +109,7 @@
 /*
   set the private pointer passed to the callback functions
 */
-void packet_set_private(struct packet_context *pc, void *private)
+_PUBLIC_ void packet_set_private(struct packet_context *pc, void *private)
 {
pc-private = private;
 }
@@ -120,7 +120,7 @@
  STATUS_MORE_ENTRIES == blob is not complete yet
  any error == blob is not a valid 
 */
-void packet_set_full_request(struct packet_context *pc, 
packet_full_request_fn_t callback)
+_PUBLIC_ void packet_set_full_request(struct packet_context *pc, 
packet_full_request_fn_t callback)
 {
pc-full_request = callback;
 }
@@ -128,7 +128,7 @@
 /*
   set a tls context to use. You must either set a tls_context or a 
socket_context
 */
-void packet_set_tls(struct packet_context *pc, struct tls_context *tls)
+_PUBLIC_ void packet_set_tls(struct packet_context *pc, struct tls_context 
*tls)
 {
pc-tls = tls;
 }
@@ -136,7 +136,7 @@
 /*
   set a socket context to use. You must either set a tls_context or a 
socket_context
 */
-void packet_set_socket(struct packet_context *pc, struct socket_context *sock)
+_PUBLIC_ void packet_set_socket(struct packet_context *pc, struct 
socket_context *sock)
 {
pc-sock = sock;
 }
@@ -148,7 +148,7 @@
   time on a socket. This can matter for code that relies on not
   getting more than one packet per event
 */
-void packet_set_event_context(struct packet_context *pc, struct event_context 
*ev)
+_PUBLIC_ void packet_set_event_context(struct packet_context *pc, struct 
event_context *ev)
 {
pc-ev = ev;
 }
@@ -156,7 +156,7 @@
 /*
   tell the packet layer the fde for the socket
 */
-void packet_set_fde(struct packet_context *pc, struct fd_event *fde)
+_PUBLIC_ void packet_set_fde(struct packet_context *pc, struct fd_event *fde)
 {
pc-fde = fde;
 }
@@ -166,7 +166,7 @@
   requests at once on one connection. You must have set the
   event_context and fde
 */
-void packet_set_serialise(struct packet_context *pc)
+_PUBLIC_ void packet_set_serialise(struct packet_context *pc)
 {
pc-serialise = True;
 }
@@ -175,7 +175,7 @@
   tell the packet layer how much to read when starting a new packet
   this ensures it doesn't overread
 */
-void packet_set_initial_read(struct packet_context *pc, uint32_t initial_read)
+_PUBLIC_ void packet_set_initial_read(struct packet_context *pc, uint32_t 
initial_read)
 {
pc-initial_read = initial_read;
 }
@@ -183,7 +183,7 @@
 /*
   tell the packet system not to steal/free blobs given to packet_send()
 */
-void packet_set_nofree(struct packet_context *pc)
+_PUBLIC_ void packet_set_nofree(struct packet_context *pc)
 {
pc-nofree = True;
 }
@@ -237,7 +237,7 @@
   call this when the socket becomes readable to kick off the whole
   stream parsing process
 */
-void packet_recv(struct packet_context *pc)
+_PUBLIC_ void packet_recv(struct packet_context *pc)
 {
size_t npending;
NTSTATUS status;
@@ -422,7 +422,7 @@
 /*
   temporarily disable receiving 
 */
-void packet_recv_disable(struct packet_context *pc)
+_PUBLIC_ void packet_recv_disable(struct packet_context *pc)
 {
EVENT_FD_NOT_READABLE(pc-fde);
pc-recv_disable = True;
@@ -431,7 +431,7 @@
 /*
   re-enable receiving 
 */
-void packet_recv_enable(struct packet_context *pc)
+_PUBLIC_ void packet_recv_enable(struct packet_context *pc)
 {
EVENT_FD_READABLE(pc-fde);
pc-recv_disable = False;
@@ -443,7 +443,7 @@
 /*
   trigger a run of the send queue
 */
-void packet_queue_run(struct 

svn commit: samba r13963 - in branches/SAMBA_4_0/source: .

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:50:51 + (Tue, 07 Mar 2006)
New Revision: 13963

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13963

Log:
make symbols public

metze
Modified:
   branches/SAMBA_4_0/source/dynconfig.c


Changeset:
Modified: branches/SAMBA_4_0/source/dynconfig.c
===
--- branches/SAMBA_4_0/source/dynconfig.c   2006-03-07 16:50:07 UTC (rev 
13962)
+++ branches/SAMBA_4_0/source/dynconfig.c   2006-03-07 16:50:51 UTC (rev 
13963)
@@ -43,58 +43,58 @@
  **/
 
 /** Directory with super-user binaries */
-const char *dyn_SBINDIR = SBINDIR;
+_PUBLIC_ const char *dyn_SBINDIR = SBINDIR;
 
 /** Directory with generic binaries */
-const char *dyn_BINDIR = BINDIR;
+_PUBLIC_ const char *dyn_BINDIR = BINDIR;
 
 /** Location of smb.conf file. **/
-const char *dyn_CONFIGFILE = CONFIGFILE; 
+_PUBLIC_ const char *dyn_CONFIGFILE = CONFIGFILE; 
 
 /** Log file directory. **/
-const char *dyn_LOGFILEBASE = LOGFILEBASE; 
+_PUBLIC_ const char *dyn_LOGFILEBASE = LOGFILEBASE; 
 
 /** Directory for local RPC (ncalrpc: transport) */
-const char *dyn_NCALRPCDIR = NCALRPCDIR;
+_PUBLIC_ const char *dyn_NCALRPCDIR = NCALRPCDIR;
 
 /** Statically configured LanMan hosts. **/
-const char *dyn_LMHOSTSFILE = LMHOSTSFILE; 
+_PUBLIC_ const char *dyn_LMHOSTSFILE = LMHOSTSFILE; 
 
 /** Samba library directory. */
-const char *dyn_LIBDIR = LIBDIR;
+_PUBLIC_ const char *dyn_LIBDIR = LIBDIR;
 
-const char *dyn_MODULESDIR = MODULESDIR;
+_PUBLIC_ const char *dyn_MODULESDIR = MODULESDIR;
 
 /** Shared library extension */
-const char *dyn_SHLIBEXT = SHLIBEXT;
+_PUBLIC_ const char *dyn_SHLIBEXT = SHLIBEXT;
 
 /**
  * @brief Directory holding lock files.
  *
  * Not writable, but used to set a default in the parameter table.
  **/
-const char *dyn_LOCKDIR = LOCKDIR;
+_PUBLIC_ const char *dyn_LOCKDIR = LOCKDIR;
 
 /** pid file directory */
-const char *dyn_PIDDIR  = PIDDIR;
+_PUBLIC_ const char *dyn_PIDDIR  = PIDDIR;
 
 /** Private data directory; holds ldb files and the like */
-const char *dyn_PRIVATE_DIR = PRIVATE_DIR;
+_PUBLIC_ const char *dyn_PRIVATE_DIR = PRIVATE_DIR;
 
 /** SWAT data file (images, etc) directory */
-const char *dyn_SWATDIR = SWATDIR;
+_PUBLIC_ const char *dyn_SWATDIR = SWATDIR;
 
 /** SETUP files (source files used by the provision) */
-const char *dyn_SETUPDIR = SETUPDIR;
+_PUBLIC_ const char *dyn_SETUPDIR = SETUPDIR;
 
 /** EJS Javascript library includes */
-const char *dyn_JSDIR = JSDIR;
+_PUBLIC_ const char *dyn_JSDIR = JSDIR;
 
 /** Where to find the winbindd socket */
 
-const char *dyn_WINBINDD_SOCKET_DIR = WINBINDD_SOCKET_DIR;
+_PUBLIC_ const char *dyn_WINBINDD_SOCKET_DIR = WINBINDD_SOCKET_DIR;
 
-const char *samba_version_string(void)
+_PUBLIC_ const char *samba_version_string(void)
 {
const char *official_string = SAMBA_VERSION_OFFICIAL_STRING;
 #ifdef SAMBA_VERSION_RELEASE_NICKNAME



svn commit: samba r13964 - in branches/SAMBA_4_0/source: param script

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 16:51:56 + (Tue, 07 Mar 2006)
New Revision: 13964

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13964

Log:
make lp_* functions public

metze
Modified:
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/script/mkproto.pl


Changeset:
Modified: branches/SAMBA_4_0/source/param/loadparm.c
===
--- branches/SAMBA_4_0/source/param/loadparm.c  2006-03-07 16:50:51 UTC (rev 
13963)
+++ branches/SAMBA_4_0/source/param/loadparm.c  2006-03-07 16:51:56 UTC (rev 
13964)
@@ -802,119 +802,119 @@
 #define FN_LOCAL_INTEGER(fn_name,val) \
  int fn_name(int i) {return(LP_SNUM_OK(i)? ServicePtrs[(i)]-val : 
sDefault.val);}
 
-FN_GLOBAL_INTEGER(lp_server_role, Globals.server_role)
-FN_GLOBAL_LIST(lp_smb_ports, Globals.smb_ports)
-FN_GLOBAL_INTEGER(lp_nbt_port, Globals.nbt_port)
-FN_GLOBAL_INTEGER(lp_dgram_port, Globals.dgram_port)
-FN_GLOBAL_INTEGER(lp_cldap_port, Globals.cldap_port)
-FN_GLOBAL_INTEGER(lp_krb5_port, Globals.krb5_port)
-FN_GLOBAL_INTEGER(lp_kpasswd_port, Globals.kpasswd_port)
-FN_GLOBAL_INTEGER(lp_web_port, Globals.web_port)
-FN_GLOBAL_STRING(lp_dos_charset, Globals.dos_charset)
-FN_GLOBAL_STRING(lp_swat_directory, Globals.swat_directory)
-FN_GLOBAL_BOOL(lp_tls_enabled, Globals.tls_enabled)
-FN_GLOBAL_STRING(lp_tls_keyfile, Globals.tls_keyfile)
-FN_GLOBAL_STRING(lp_tls_certfile, Globals.tls_certfile)
-FN_GLOBAL_STRING(lp_tls_cafile, Globals.tls_cafile)
-FN_GLOBAL_STRING(lp_tls_crlfile, Globals.tls_crlfile)
-FN_GLOBAL_STRING(lp_unix_charset, Globals.unix_charset)
-FN_GLOBAL_STRING(lp_display_charset, Globals.display_charset)
-FN_GLOBAL_STRING(lp_logfile, Globals.szLogFile)
-FN_GLOBAL_STRING(lp_configfile, Globals.szConfigFile)
-FN_GLOBAL_STRING(lp_sam_url, Globals.szSAM_URL)
-FN_GLOBAL_STRING(lp_spoolss_url, Globals.szSPOOLSS_URL)
-FN_GLOBAL_STRING(lp_wins_config_url, Globals.szWINS_CONFIG_URL)
-FN_GLOBAL_STRING(lp_wins_url, Globals.szWINS_URL)
-FN_GLOBAL_CONST_STRING(lp_winbind_separator, Globals.szWinbindSeparator)
-FN_GLOBAL_CONST_STRING(lp_winbindd_socket_directory, 
Globals.szWinbinddSocketDirectory)
-FN_GLOBAL_BOOL(lp_winbind_sealed_pipes, Globals.bWinbindSealedPipes)
-FN_GLOBAL_STRING(lp_private_dir, Globals.szPrivateDir)
-FN_GLOBAL_STRING(lp_serverstring, Globals.szServerString)
-FN_GLOBAL_STRING(lp_lockdir, Globals.szLockDir)
-FN_GLOBAL_STRING(lp_setupdir, Globals.szSetupDir)
-FN_GLOBAL_STRING(lp_ncalrpc_dir, Globals.ncalrpc_dir)
-FN_GLOBAL_STRING(lp_piddir, Globals.szPidDir)
-FN_GLOBAL_LIST(lp_dcerpc_endpoint_servers, Globals.dcerpc_ep_servers)
-FN_GLOBAL_LIST(lp_server_services, Globals.server_services)
-FN_GLOBAL_STRING(lp_ntptr_providor, Globals.ntptr_providor)
-FN_GLOBAL_STRING(lp_auto_services, Globals.szAutoServices)
-FN_GLOBAL_STRING(lp_passwd_chat, Globals.szPasswdChat)
-FN_GLOBAL_LIST(lp_passwordserver, Globals.szPasswordServers)
-FN_GLOBAL_LIST(lp_name_resolve_order, Globals.szNameResolveOrder)
-FN_GLOBAL_STRING(lp_realm, Globals.szRealm)
-FN_GLOBAL_STRING(lp_socket_options, Globals.socket_options)
-FN_GLOBAL_STRING(lp_workgroup, Globals.szWorkgroup)
-FN_GLOBAL_STRING(lp_netbios_name, Globals.szNetbiosName)
-FN_GLOBAL_STRING(lp_netbios_scope, Globals.szNetbiosScope)
-FN_GLOBAL_LIST(lp_wins_server_list, Globals.szWINSservers)
-FN_GLOBAL_LIST(lp_interfaces, Globals.szInterfaces)
-FN_GLOBAL_STRING(lp_socket_address, Globals.szSocketAddress)
-FN_GLOBAL_LIST(lp_netbios_aliases, Globals.szNetbiosAliases)
-FN_GLOBAL_STRING(lp_panic_action, Globals.szPanicAction)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_server_role, Globals.server_role)
+_PUBLIC_ FN_GLOBAL_LIST(lp_smb_ports, Globals.smb_ports)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_nbt_port, Globals.nbt_port)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_dgram_port, Globals.dgram_port)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_cldap_port, Globals.cldap_port)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_krb5_port, Globals.krb5_port)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_kpasswd_port, Globals.kpasswd_port)
+_PUBLIC_ FN_GLOBAL_INTEGER(lp_web_port, Globals.web_port)
+_PUBLIC_ FN_GLOBAL_STRING(lp_dos_charset, Globals.dos_charset)
+_PUBLIC_ FN_GLOBAL_STRING(lp_swat_directory, Globals.swat_directory)
+_PUBLIC_ FN_GLOBAL_BOOL(lp_tls_enabled, Globals.tls_enabled)
+_PUBLIC_ FN_GLOBAL_STRING(lp_tls_keyfile, Globals.tls_keyfile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_tls_certfile, Globals.tls_certfile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_tls_cafile, Globals.tls_cafile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_tls_crlfile, Globals.tls_crlfile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_unix_charset, Globals.unix_charset)
+_PUBLIC_ FN_GLOBAL_STRING(lp_display_charset, Globals.display_charset)
+_PUBLIC_ FN_GLOBAL_STRING(lp_logfile, Globals.szLogFile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_configfile, Globals.szConfigFile)
+_PUBLIC_ FN_GLOBAL_STRING(lp_sam_url, Globals.szSAM_URL)
+_PUBLIC_ FN_GLOBAL_STRING(lp_spoolss_url, Globals.szSPOOLSS_URL)
+_PUBLIC_ FN_GLOBAL_STRING(lp_wins_config_url, Globals.szWINS_CONFIG_URL)
+_PUBLIC_ 

svn commit: samba r13965 - branches/SAMBA_3_0/source/libads trunk/source/libads

2006-03-07 Thread gd
Author: gd
Date: 2006-03-07 16:56:31 + (Tue, 07 Mar 2006)
New Revision: 13965

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13965

Log:
Make sure we always reset the userAccountControl bits when re-joining
with an existing account.

Guenther


Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   trunk/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===
--- branches/SAMBA_3_0/source/libads/ldap.c 2006-03-07 16:51:56 UTC (rev 
13964)
+++ branches/SAMBA_3_0/source/libads/ldap.c 2006-03-07 16:56:31 UTC (rev 
13965)
@@ -1526,9 +1526,9 @@
if (!exists) {
ads_mod_str(ctx, mods, cn, machine_name);
ads_mod_str(ctx, mods, sAMAccountName, samAccountName);
-   ads_mod_str(ctx, mods, userAccountControl, controlstr);
ads_mod_strlist(ctx, mods, objectClass, objectClass);
}
+   ads_mod_str(ctx, mods, userAccountControl, controlstr);
ads_mod_str(ctx, mods, dNSHostName, my_fqdn);
ads_mod_str(ctx, mods, userPrincipalName, host_upn);
ads_mod_strlist(ctx, mods, servicePrincipalName, 
servicePrincipalName);

Modified: trunk/source/libads/ldap.c
===
--- trunk/source/libads/ldap.c  2006-03-07 16:51:56 UTC (rev 13964)
+++ trunk/source/libads/ldap.c  2006-03-07 16:56:31 UTC (rev 13965)
@@ -1526,9 +1526,9 @@
if (!exists) {
ads_mod_str(ctx, mods, cn, machine_name);
ads_mod_str(ctx, mods, sAMAccountName, samAccountName);
-   ads_mod_str(ctx, mods, userAccountControl, controlstr);
ads_mod_strlist(ctx, mods, objectClass, objectClass);
}
+   ads_mod_str(ctx, mods, userAccountControl, controlstr);
ads_mod_str(ctx, mods, dNSHostName, my_fqdn);
ads_mod_str(ctx, mods, userPrincipalName, host_upn);
ads_mod_strlist(ctx, mods, servicePrincipalName, 
servicePrincipalName);



svn commit: samba r13966 - in trunk/source/smbd: .

2006-03-07 Thread jra
Author: jra
Date: 2006-03-07 17:02:50 + (Tue, 07 Mar 2006)
New Revision: 13966

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13966

Log:
Shut Coverity up (bug #208)- this code is still under development :-).
Jeremy.

Modified:
   trunk/source/smbd/trans2.c


Changeset:
Modified: trunk/source/smbd/trans2.c
===
--- trunk/source/smbd/trans2.c  2006-03-07 16:56:31 UTC (rev 13965)
+++ trunk/source/smbd/trans2.c  2006-03-07 17:02:50 UTC (rev 13966)
@@ -3511,13 +3511,17 @@
 
case SMB_QUERY_POSIX_LOCK:
{
-   NTSTATUS status;
+   NTSTATUS status = NT_STATUS_INVALID_LEVEL;
SMB_BIG_UINT count;
SMB_BIG_UINT offset;
uint16 lock_pid;
enum brl_type lock_type;
 
-   switch (SVAL(lock_data, POSIX_LOCK_TYPE_OFFSET)) {
+   if (total_data != POSIX_LOCK_DATA_SIZE) {
+   return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
+   }
+
+   switch (SVAL(pdata, POSIX_LOCK_TYPE_OFFSET)) {
case POSIX_LOCK_TYPE_READ:
lock_type = READ_LOCK;
break;
@@ -3531,15 +3535,15 @@
return 
ERROR_NT(NT_STATUS_INVALID_PARAMETER);
}
 
-   lock_pid = (uint16)IVAL(lock_data, 
POSIX_LOCK_PID_OFFSET);
+   lock_pid = (uint16)IVAL(pdata, POSIX_LOCK_PID_OFFSET);
 #if defined(HAVE_LONGLONG)
-   offset = (((SMB_BIG_UINT) 
IVAL(lock_data,(POSIX_LOCK_START_OFFSET+4)))  32) |
-   ((SMB_BIG_UINT) 
IVAL(lock_data,POSIX_LOCK_START_OFFSET));
-   count = (((SMB_BIG_UINT) 
IVAL(lock_data,(POSIX_LOCK_LEN_OFFSET+4)))  32) |
-   ((SMB_BIG_UINT) 
IVAL(lock_data,POSIX_LOCK_LEN_OFFSET));
+   offset = (((SMB_BIG_UINT) 
IVAL(pdata,(POSIX_LOCK_START_OFFSET+4)))  32) |
+   ((SMB_BIG_UINT) 
IVAL(pdata,POSIX_LOCK_START_OFFSET));
+   count = (((SMB_BIG_UINT) 
IVAL(pdata,(POSIX_LOCK_LEN_OFFSET+4)))  32) |
+   ((SMB_BIG_UINT) 
IVAL(pdata,POSIX_LOCK_LEN_OFFSET));
 #else /* HAVE_LONGLONG */
-   offset = 
(SMB_BIG_UINT)IVAL(lock_data,POSIX_LOCK_START_OFFSET);
-   count = 
(SMB_BIG_UINT)IVAL(lock_data,POSIX_LOCK_LEN_OFFSET);
+   offset = 
(SMB_BIG_UINT)IVAL(pdata,POSIX_LOCK_START_OFFSET);
+   count = (SMB_BIG_UINT)IVAL(pdata,POSIX_LOCK_LEN_OFFSET);
 #endif /* HAVE_LONGLONG */
 
 #if 0
@@ -3553,16 +3557,19 @@
my_lock_ctx);
 #endif
 
-   if (!NT_STATUS_IS_OK(status)) {
+   if (ERROR_WAS_LOCK_DENIED(status)) {
/* Here we need to report who has it locked... 
*/
data_size = POSIX_LOCK_DATA_SIZE;
-   memcpy(pdata, lock_data, POSIX_LOCK_DATA_SIZE);
-   } else {
+   /* FIXME - Coverity tmp fix. */
+   memset(pdata, '\0', POSIX_LOCK_DATA_SIZE);
+   } else if (NT_STATUS_IS_OK(status)) {
/* For success we just return a copy of what we 
sent
   with the lock type set to 
POSIX_LOCK_TYPE_UNLOCK. */
data_size = POSIX_LOCK_DATA_SIZE;
memcpy(pdata, lock_data, POSIX_LOCK_DATA_SIZE);
SSVAL(pdata, 
POSIX_LOCK_TYPE_OFFSET,POSIX_LOCK_TYPE_UNLOCK);
+   } else {
+   return ERROR_NT(status);
}
break;
}



svn commit: samba-web r925 - in trunk/news/announcements: .

2006-03-07 Thread deryck
Author: deryck
Date: 2006-03-07 17:07:26 + (Tue, 07 Mar 2006)
New Revision: 925

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=925

Log:
Add news item linking to samba4WINS project and press release.

deryck
Added:
   trunk/news/announcements/samba4wins.html


Changeset:
Added: trunk/news/announcements/samba4wins.html
===
--- trunk/news/announcements/samba4wins.html2006-03-07 16:45:28 UTC (rev 
924)
+++ trunk/news/announcements/samba4wins.html2006-03-07 17:07:26 UTC (rev 
925)
@@ -0,0 +1,33 @@
+h3a name=samba4winssamba4WINS, Replicating WINS Server/a/h3
+
+div class=article
+  psamba4WINS is a replicating WINS server designed to run in
+  parallel with Samba 3 servers, version 3.0.21 and higher.  From
+  SerNet's a href=http://enterprisesamba.org/index.php?id=89;press 
+  release/a:/p
+  
+  blockquote
+  pInitiated by a href=http://sernet.com;SerNet/a and sponsored by 
+  Computacenter, Fujitsu Siemens
+  Computers (FSC) and LiSoG e.V. it became possible to develop a free
+  software needed by many users: the replicating WINS server - samba4WINS.
+  Due to this solution WINS server running with Windows in a lot of
+  environments can be migrated to Linux./p
+  
+  pThe urgent need to solve customer problems at the project partners
+  Computacenter and FSC in October 2005 urged the plan to develop a new
+  concept for WINS server within the Samba4-project.
+  Until now Samba3 offers the possibility to start a WINS server but
+  it cannot synchronize in a ring with other WINS servers, an ability that
+  is requested in many complex networks.
+  Even after complete migration to Linux/Unix/Samba Windows servers are
+  still inevitable in those networks. This remarkable cost factor will be
+  abolished with samba4WINS./p
+  /blockquote
+  
+  pFor more or for downloads, see the 
+  a href=http://enterprisesamba.org/index.php?id=88;samba4WINS site/a 
(on
+  a href=http://enterprisesamba.org/;Enterprise Samba/a)./p
+/div
+
+   



svn commit: samba r13967 - in branches/SAMBA_4_0/source: . build/m4 build/smb_build

2006-03-07 Thread metze
Author: metze
Date: 2006-03-07 17:15:18 + (Tue, 07 Mar 2006)
New Revision: 13967

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13967

Log:
change the standard visibility to default public again
for modules, libraries and subsystems

metze
Modified:
   branches/SAMBA_4_0/source/build/m4/check_cc.m4
   branches/SAMBA_4_0/source/build/smb_build/input.pm
   branches/SAMBA_4_0/source/build/smb_build/output.pm
   branches/SAMBA_4_0/source/configure.in


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_cc.m4
===
--- branches/SAMBA_4_0/source/build/m4/check_cc.m4  2006-03-07 17:02:50 UTC 
(rev 13966)
+++ branches/SAMBA_4_0/source/build/m4/check_cc.m4  2006-03-07 17:15:18 UTC 
(rev 13967)
@@ -137,7 +137,6 @@
visibility_attribute=yes
],[
AC_MSG_RESULT(no)
-   VISIBILITY_CFLAGS=
])
CFLAGS=$OLD_CFLAGS
 fi

Modified: branches/SAMBA_4_0/source/build/smb_build/input.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 17:02:50 UTC 
(rev 13966)
+++ branches/SAMBA_4_0/source/build/smb_build/input.pm  2006-03-07 17:15:18 UTC 
(rev 13967)
@@ -160,7 +160,11 @@
}
 
unless (defined($part-{STANDARD_VISIBILITY})) {
-   $part-{STANDARD_VISIBILITY} = hidden;
+   if ($part-{TYPE} eq BINARY) {
+   $part-{STANDARD_VISIBILITY} = hidden;
+   } else {
+   $part-{STANDARD_VISIBILITY} = default;
+   }
}
 
unless (defined($part-{EXTRA_CFLAGS})) {

Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 17:02:50 UTC 
(rev 13966)
+++ branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-03-07 17:15:18 UTC 
(rev 13967)
@@ -111,7 +111,7 @@
$part-{OUTPUT_TYPE} = OBJLIST;
}
 
-   if (($part-{STANDARD_VISIBILITY} ne hidden) and 
+   if (($part-{STANDARD_VISIBILITY} ne default) and 
($config-{visibility_attribute} eq yes)) {
$part-{EXTRA_CFLAGS} .=  
-fvisibility=$part-{STANDARD_VISIBILITY};
}

Modified: branches/SAMBA_4_0/source/configure.in
===
--- branches/SAMBA_4_0/source/configure.in  2006-03-07 17:02:50 UTC (rev 
13966)
+++ branches/SAMBA_4_0/source/configure.in  2006-03-07 17:15:18 UTC (rev 
13967)
@@ -52,7 +52,7 @@
 
 #
 # add *_CFLAGS only for the real build
-CFLAGS=${CFLAGS} ${VISIBILITY_CFLAGS} ${DEVELOPER_CFLAGS}
+CFLAGS=${CFLAGS} ${DEVELOPER_CFLAGS}
 
 #
 # final configure stuff



svn commit: samba r13968 - branches/SAMBA_3_0/source/utils trunk/source/utils

2006-03-07 Thread jmcd
Author: jmcd
Date: 2006-03-07 17:49:26 + (Tue, 07 Mar 2006)
New Revision: 13968

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13968

Log:
fix typo, caught by Guenther

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
   trunk/source/utils/net_rpc_samsync.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2006-03-07 17:15:18 UTC 
(rev 13967)
+++ branches/SAMBA_3_0/source/utils/net_rpc_samsync.c   2006-03-07 17:49:26 UTC 
(rev 13968)
@@ -1464,7 +1464,7 @@
if (!*homedir) {
pstr_sprintf(homedir, /home/%s, username);
} else {
-   pstr_sprintf(homedir, dev/null);
+   pstr_sprintf(homedir, /dev/null);
}
}   
 

Modified: trunk/source/utils/net_rpc_samsync.c
===
--- trunk/source/utils/net_rpc_samsync.c2006-03-07 17:15:18 UTC (rev 
13967)
+++ trunk/source/utils/net_rpc_samsync.c2006-03-07 17:49:26 UTC (rev 
13968)
@@ -1464,7 +1464,7 @@
if (!*homedir) {
pstr_sprintf(homedir, /home/%s, username);
} else {
-   pstr_sprintf(homedir, dev/null);
+   pstr_sprintf(homedir, /dev/null);
}
}   
 



svn commit: samba r13969 - in branches/SAMBA_4_0/source: auth auth/gensec lib/com lib/registry/common ntvfs

2006-03-07 Thread jelmer
Author: jelmer
Date: 2006-03-07 17:53:28 + (Tue, 07 Mar 2006)
New Revision: 13969

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13969

Log:
Make these names lowercase as well (just like they are now in the buildsystem)

Modified:
   branches/SAMBA_4_0/source/auth/auth.c
   branches/SAMBA_4_0/source/auth/gensec/gensec.c
   branches/SAMBA_4_0/source/lib/com/main.c
   branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c
   branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth.c
===
--- branches/SAMBA_4_0/source/auth/auth.c   2006-03-07 17:49:26 UTC (rev 
13968)
+++ branches/SAMBA_4_0/source/auth/auth.c   2006-03-07 17:53:28 UTC (rev 
13969)
@@ -335,7 +335,7 @@
 
 NTSTATUS server_service_auth_init(void)
 {
-   init_module_fn static_init[] = STATIC_AUTH_MODULES;
+   init_module_fn static_init[] = STATIC_auth_MODULES;
init_module_fn *shared_init = load_samba_modules(NULL, auth);
 
run_init_functions(static_init);

Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c  2006-03-07 17:49:26 UTC 
(rev 13968)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c  2006-03-07 17:53:28 UTC 
(rev 13969)
@@ -1121,7 +1121,7 @@
 {
static BOOL initialized = False;
 
-   init_module_fn static_init[] = STATIC_GENSEC_MODULES;
+   init_module_fn static_init[] = STATIC_gensec_MODULES;
init_module_fn *shared_init = load_samba_modules(NULL, gensec);
 
if (initialized) return NT_STATUS_OK;

Modified: branches/SAMBA_4_0/source/lib/com/main.c
===
--- branches/SAMBA_4_0/source/lib/com/main.c2006-03-07 17:49:26 UTC (rev 
13968)
+++ branches/SAMBA_4_0/source/lib/com/main.c2006-03-07 17:53:28 UTC (rev 
13969)
@@ -94,7 +94,7 @@
 {
static BOOL initialized = False;

-   init_module_fn static_init[] = STATIC_COM_MODULES; 
+   init_module_fn static_init[] = STATIC_com_MODULES; 
init_module_fn *shared_init;
 
if (initialized) return NT_STATUS_OK;

Modified: branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c
===
--- branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c   
2006-03-07 17:49:26 UTC (rev 13968)
+++ branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c   
2006-03-07 17:53:28 UTC (rev 13969)
@@ -73,7 +73,7 @@
 /** Initialize the registry subsystem */
 _PUBLIC_ NTSTATUS registry_init(void)
 {
-   init_module_fn static_init[] = STATIC_REGISTRY_MODULES;
+   init_module_fn static_init[] = STATIC_registry_MODULES;
init_module_fn *shared_init = load_samba_modules(NULL, registry);
 
run_init_functions(static_init);

Modified: branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c
===
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c2006-03-07 17:49:26 UTC 
(rev 13968)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c2006-03-07 17:53:28 UTC 
(rev 13969)
@@ -163,7 +163,7 @@
 
 NTSTATUS ntvfs_init(void)
 {
-   init_module_fn static_init[] = STATIC_NTVFS_MODULES;
+   init_module_fn static_init[] = STATIC_ntvfs_MODULES;
init_module_fn *shared_init = load_samba_modules(NULL, ntvfs);
 
run_init_functions(static_init);



svn commit: samba r13970 - in trunk/source/lib: .

2006-03-07 Thread jra
Author: jra
Date: 2006-03-07 18:00:07 + (Tue, 07 Mar 2006)
New Revision: 13970

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13970

Log:
Fix Coverity bugs #209 - #213 - it detected mistakes
in the pointer aliasing once realloc could change
a pointer. This was in the bugzilla.samba.org database
as #687 but we never figured out what it was !
Jeremy.

Modified:
   trunk/source/lib/substitute.c


Changeset:
Modified: trunk/source/lib/substitute.c
===
--- trunk/source/lib/substitute.c   2006-03-07 17:53:28 UTC (rev 13969)
+++ trunk/source/lib/substitute.c   2006-03-07 18:00:07 UTC (rev 13970)
@@ -532,7 +532,9 @@
 {
char *a, *t;
a = alloc_sub_basic(smb_name, str);
-   if (!a) return NULL;
+   if (!a) {
+   return NULL;
+   }
t = talloc_strdup(mem_ctx, a);
SAFE_FREE(a);
return t;
@@ -540,14 +542,14 @@
 
 char *alloc_sub_basic(const char *smb_name, const char *str)
 {
-   char *b, *p, *s, *t, *r, *a_string;
+   char *b, *p, *s, *r, *a_string;
fstring pidstr;
struct passwd *pass;
const char *local_machine_name = get_local_machine_name();
 
-   /* workaround to prevent a crash while lookinf at bug #687 */
+   /* workaround to prevent a crash while looking at bug #687 */

-   if ( !str ) {
+   if (!str) {
DEBUG(0,(alloc_sub_basic: NULL source string!  This should not 
happen\n));
return NULL;
}
@@ -561,68 +563,75 @@
for (b = s = a_string; (p = strchr_m(s, '%')); s = a_string + (p - b)) {
 
r = NULL;
-   b = t = a_string;
+   b = a_string;

switch (*(p+1)) {
case 'U' : 
r = strdup_lower(smb_name);
-   if (r == NULL) goto error;
-   t = realloc_string_sub(t, %U, r);
+   if (r == NULL) {
+   goto error;
+   }
+   a_string = realloc_string_sub(a_string, %U, r);
break;
case 'G' :
r = SMB_STRDUP(smb_name);
-   if (r == NULL) goto error;
+   if (r == NULL) {
+   goto error;
+   }
if ((pass = Get_Pwnam(r))!=NULL) {
-   t = realloc_string_sub(t, %G, 
gidtoname(pass-pw_gid));
+   a_string = realloc_string_sub(a_string, %G, 
gidtoname(pass-pw_gid));
} 
break;
case 'D' :
r = strdup_upper(current_user_info.domain);
-   if (r == NULL) goto error;
-   t = realloc_string_sub(t, %D, r);
+   if (r == NULL) {
+   goto error;
+   }
+   a_string = realloc_string_sub(a_string, %D, r);
break;
case 'I' :
-   t = realloc_string_sub(t, %I, client_addr());
+   a_string = realloc_string_sub(a_string, %I, 
client_addr());
break;
case 'L' : 
-   if (local_machine_name  *local_machine_name)
-   t = realloc_string_sub(t, %L, 
local_machine_name); 
-   else
-   t = realloc_string_sub(t, %L, 
global_myname()); 
+   if (local_machine_name  *local_machine_name) {
+   a_string = realloc_string_sub(a_string, %L, 
local_machine_name); 
+   } else {
+   a_string = realloc_string_sub(a_string, %L, 
global_myname()); 
+   }
break;
case 'N':
-   t = realloc_string_sub(t, %N, 
automount_server(smb_name));
+   a_string = realloc_string_sub(a_string, %N, 
automount_server(smb_name));
break;
case 'M' :
-   t = realloc_string_sub(t, %M, client_name());
+   a_string = realloc_string_sub(a_string, %M, 
client_name());
break;
case 'R' :
-   t = realloc_string_sub(t, %R, remote_proto);
+   a_string = realloc_string_sub(a_string, %R, 
remote_proto);
break;
case 'T' :
-   t = realloc_string_sub(t, %T, timestring(False));
+   a_string = realloc_string_sub(a_string, %T, 
timestring(False));
break;
case 'a' :
-   t = 

svn commit: samba r13971 - in branches/SAMBA_3_0/source/lib: .

2006-03-07 Thread jra
Author: jra
Date: 2006-03-07 18:00:21 + (Tue, 07 Mar 2006)
New Revision: 13971

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=13971

Log:
Fix Coverity bugs #209 - #213 - it detected mistakes
in the pointer aliasing once realloc could change
a pointer. This was in the bugzilla.samba.org database
as #687 but we never figured out what it was !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/substitute.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/substitute.c
===
--- branches/SAMBA_3_0/source/lib/substitute.c  2006-03-07 18:00:07 UTC (rev 
13970)
+++ branches/SAMBA_3_0/source/lib/substitute.c  2006-03-07 18:00:21 UTC (rev 
13971)
@@ -532,7 +532,9 @@
 {
char *a, *t;
a = alloc_sub_basic(smb_name, str);
-   if (!a) return NULL;
+   if (!a) {
+   return NULL;
+   }
t = talloc_strdup(mem_ctx, a);
SAFE_FREE(a);
return t;
@@ -540,14 +542,14 @@
 
 char *alloc_sub_basic(const char *smb_name, const char *str)
 {
-   char *b, *p, *s, *t, *r, *a_string;
+   char *b, *p, *s, *r, *a_string;
fstring pidstr;
struct passwd *pass;
const char *local_machine_name = get_local_machine_name();
 
-   /* workaround to prevent a crash while lookinf at bug #687 */
+   /* workaround to prevent a crash while looking at bug #687 */

-   if ( !str ) {
+   if (!str) {
DEBUG(0,(alloc_sub_basic: NULL source string!  This should not 
happen\n));
return NULL;
}
@@ -561,68 +563,75 @@
for (b = s = a_string; (p = strchr_m(s, '%')); s = a_string + (p - b)) {
 
r = NULL;
-   b = t = a_string;
+   b = a_string;

switch (*(p+1)) {
case 'U' : 
r = strdup_lower(smb_name);
-   if (r == NULL) goto error;
-   t = realloc_string_sub(t, %U, r);
+   if (r == NULL) {
+   goto error;
+   }
+   a_string = realloc_string_sub(a_string, %U, r);
break;
case 'G' :
r = SMB_STRDUP(smb_name);
-   if (r == NULL) goto error;
+   if (r == NULL) {
+   goto error;
+   }
if ((pass = Get_Pwnam(r))!=NULL) {
-   t = realloc_string_sub(t, %G, 
gidtoname(pass-pw_gid));
+   a_string = realloc_string_sub(a_string, %G, 
gidtoname(pass-pw_gid));
} 
break;
case 'D' :
r = strdup_upper(current_user_info.domain);
-   if (r == NULL) goto error;
-   t = realloc_string_sub(t, %D, r);
+   if (r == NULL) {
+   goto error;
+   }
+   a_string = realloc_string_sub(a_string, %D, r);
break;
case 'I' :
-   t = realloc_string_sub(t, %I, client_addr());
+   a_string = realloc_string_sub(a_string, %I, 
client_addr());
break;
case 'L' : 
-   if (local_machine_name  *local_machine_name)
-   t = realloc_string_sub(t, %L, 
local_machine_name); 
-   else
-   t = realloc_string_sub(t, %L, 
global_myname()); 
+   if (local_machine_name  *local_machine_name) {
+   a_string = realloc_string_sub(a_string, %L, 
local_machine_name); 
+   } else {
+   a_string = realloc_string_sub(a_string, %L, 
global_myname()); 
+   }
break;
case 'N':
-   t = realloc_string_sub(t, %N, 
automount_server(smb_name));
+   a_string = realloc_string_sub(a_string, %N, 
automount_server(smb_name));
break;
case 'M' :
-   t = realloc_string_sub(t, %M, client_name());
+   a_string = realloc_string_sub(a_string, %M, 
client_name());
break;
case 'R' :
-   t = realloc_string_sub(t, %R, remote_proto);
+   a_string = realloc_string_sub(a_string, %R, 
remote_proto);
break;
case 'T' :
-   t = realloc_string_sub(t, %T, timestring(False));
+   a_string = realloc_string_sub(a_string, %T, 
timestring(False));
break;

  1   2   >