Re: [Samba] Re: smbmount

2007-05-08 Thread John G Walker


On Mon, 07 May 2007 21:18:08 -0700 Akemi Yagi [EMAIL PROTECTED] wrote:

 On Tue, 08 May 2007 01:41:42 +0100, John G Walker wrote:
 
  Basically, W98 is so primitive that the only practical solution is
  to let the complexities of the situation be handled by Linux. I'm
  beginning to feel that restricting sharing the W98 data to the SuSE
  10.0 machine is the best solution. It's bit fiddly, but then,
  sharing data between Linux and W98 is not something I do every day.
  It's just something i have to be able to do,
 
 I have a question (and possibly a suggestion).
 
 You mentioned that Since the object of using Samba is partly to
 access a Windows 98 machine,..  What exactly do you mean by
 access?  Do you need to connect to the Win98 box to copy/move files
 between Linux and Win98?
 
 Then, can't you use smbclient instead?  I remember I was able to use
 smbclient to connect to Win98 (last done 6 months ago).
 
 Akemi
 
 
 

Good suggestion. I've never really used smbclient, except for
diagnostic purposes. But this seems possibly the best way forward yet,

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


Re: [Samba] smbmount

2007-05-08 Thread John G Walker


On Mon, 07 May 2007 20:41:47 +0100 Tom Crummey [EMAIL PROTECTED] wrote:

 Why does the W98 box have to be the server? Can't you make the disk
 from the Linux system available as a share, mount it on the W98 box
 and move the files from the W98 local drive to the share?

Because there isn't a the share. There's a multiplicity of accounts,
which W98 can't handle, without doing some horrendously complicated
mapping.

And the W98 machine isn't he server. It's a server. It works as a
server for certain purposes, mainly to do with simplifying access to
data.

It's simplicity I'm after,

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


Re: [Samba] smbmount

2007-05-08 Thread John G Walker


On Mon, 07 May 2007 20:41:47 +0100 Tom Crummey [EMAIL PROTECTED] wrote:

 Why does the W98 box have to be the server? Can't you make the disk
 from the Linux system available as a share, mount it on the W98 box
 and move the files from the W98 local drive to the share?

Because there isn't a the share. There's a multiplicity of accounts,
which W98 can't handle, without doing some horrendously complicated
mapping.

And the W98 machine isn't he server. It's a server. It works as a
server for certain purposes, mainly to do with simplifying access to
data.

It's simplicity I'm after,

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


Re: [Samba] Newbie Question - can users create directory on thier own from Win Client ???

2007-05-08 Thread Gary Dale

Silly question actually.  :)

Basically, if a Windows client can do it while connected to a Windows 
server, they can do it while connected to a Samba server. This is a 
basic permissions issue. If the client has permission to create a 
directory on the share, it should work. The easiest way to set Windows 
permissions is to log on from a Windows client with a Domain 
Administrator account and set the group permissions, etc. from there.



Mike Rushton wrote:

First some background -

We got an old, tired PII, 233 server running NT 4.0

We have a Compaq Proliant that is a quad 550 Xeon CPU, 4 GB, 320 GB of 
HD, a tape drive etc.   It formerly was an Oracle Server that had SCO 
UnixWare 7 on it.  Currently it is having a problem - bad controller 
card, but we intend to get it fixed.  (Not sure if UnixWare comes with 
Samba or what version to use, but we also can get out hands on Red Hat 
Enterprise Linux)   
The Idea is to put some sort of Unix / Linux on it and Samba, and 
replace the NT 4.0 machine.


Although we have some work ahead of us, I was wondering, if you set up 
a shared directory on a machine, can user create a directory in it on 
their own from a client Windows machine 


If it is not easy for the users to work with, they will not like it. ...


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


[Samba] Listing groups in the AD

2007-05-08 Thread Gabriel Tabares-Barreiro
I am having some issues with the mapping of groups. I want to map one AD
group to one unix group (don't care much about the rest), but the
problem is that I can't find the group.

The Linux machine I am using is part of the AD already and I can get
users to log in via winbind authentication but I need to restrict who
can log in.

If I do 
net groupmap modify ntgroup=Linux Users unixgroup=deploy -U
administrator
I get an error telling me that the group doesn't exist.

If I do
net groupmap list
I get a list of groups that seem to correspond to the built-in ones, no
matter if i use -U administrator or not

If I do 
net group -U administrator
I then get all the groups, including the one I want to map.

Can anyone give me a hint on why is this happening?

I am using samba-3.0.10-1.4E.11 on CentOS 4.

Thanks

Gabriel


This e-mail and its attachments are confidential. If you are not the intended 
recipient of this e-mail message, please telephone or e-mail us immediately, 
delete this message from your system and do not read, copy, distribute, 
disclose or otherwise use this e-mail message and any attachments. 

Although RI3K believes this e-mail and any attachments to be free of any virus 
or other defect which may affect your computer, it is the responsibility of the 
recipient to ensure that it is virus free and RI3K does not accept any 
responsibility for any loss or damage in any way from its use.

RI3K Limited is a company registered in England no: 3909745.  Registered office 
10, Ely Place, London, EC1N 6RY.   VAT registration no: 769 0192 07
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] ldapsam backend for standalone server - is it possible?

2007-05-08 Thread J Xu
Hi, List,

I am wondering if it is possible to set up a
standalone server with ldapsam backend. I mean, not to
set it up as a domain controller; ideally I don't want
a windows domain but would like to stick with the
windows workgroup mode.

All the samba officail documents and other docs on the
web are for set it up as a [primary|backup] domain
controller.

Below I list the mimimal working samba configurations:

[global]
workgroup = MYGROUP
netbios name = LDAPSMB
server string = Samba Server
security = user
passdb backend = ldapsam:ldap://127.0.0.1/
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
ldap admin dn = cn=admin,dc=mydomain,dc=com
ldap suffix = dc=mydomain,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=People
idmap uid = 1-2
idmap gid = 1-2
cups options = raw
local master = yes
preferred master = yes
os level = 33
domain master = yes
domain logons = yes

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

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
share modes = No

[profiles]
path = /home/samba/profiles
browseable = No

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



This setup is more or less for a backup domain
controller. If I remove domain master = yes and
domain logons = yes directives and netlogon and
profiles shares, I then can not login - smbclient
//localhost/testuser would give an error like this:

session setup failed: NT_STATUS_LOGON_FAILURE

Any help please?



PS:
1) I know how to set up a standalone server with
tdbsam backend and I can  setup a ldapsam based domain
controller. Just that I could't get a standalone
server with ldapsam backend.
2) I've put effort to make sure I have proper SIDs in
my ldap database. During attempts to setup a
standalone server, I tried to change all user/group
SIDs to the local domain (i.e., the one got with net
getlocalsid), of course with appreciated RIDs
appended. And of couser the domain SID (i.e., the one
got with net getdomainsid mygroup) only worked
when I set the samba server as domain controller. I
even tried to start with a clean ldap database and
empty samba secrets.tdb.








___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] RE: sockaddr structure elements

2007-05-08 Thread Uravakonda Sridhar-A20881
Can anyone please reply for the below query ? I am still stuck here.
 
Regards,
Sridhar



From: Uravakonda Sridhar-A20881 
Sent: Thursday, May 03, 2007 12:00 PM
To: 'samba@lists.samba.org'
Subject: sockaddr structure elements


Dear All,
 
We are using samba 3.0.24 compiled for xscale on two devices:
 
We are running a smbclient and smb daemon on two different devices,
192.168.1.39 (smbd) and 192.168.1.24 (smbclient). When we establish a
smbclient connection from client - Server, in the
smbd/server.c:open_sockets_smbd() function, we are getting sockaddr
structure values as follows (caught at debug data on smbd):
 
smbd/server.c:open_sockets_smbd():addr
sockaddr
sa_family = AF_INET
sa_addr[14] = 4, 5, 192, 168, 1, 24, 220, 126, 47, 204, 180, 41, 11, 192
 
definition:
struct sockaddr {
sa_family_t sa_family;  /* Address family, AF_xxx */
char   sa_data[14];   /* 14 bytes of protocol
address */
}
 
According to the above definition, the sa_data should contain
 
 2-byte port no:, local IP, remote IP. But it doesn't seem to be so by
looking at the data.
 
Can anyone please help me to understand this data (the sa_addr data
given above) ?
 
Commands that were run:
On 192.168.1.39: started smbd in debug mode to get the above debug data
On 192.168.1.24: smbclient //192.168.1.39/share
 
Regards,
Sridhar
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] RE: sockaddr structure elements

2007-05-08 Thread Volker Lendecke
On Tue, May 08, 2007 at 08:04:11PM +0800, Uravakonda Sridhar-A20881 wrote:
 Can anyone please reply for the below query ? I am still stuck here.
  
 Regards,
 Sridhar
 
 
 
 From: Uravakonda Sridhar-A20881 
 Sent: Thursday, May 03, 2007 12:00 PM
 To: 'samba@lists.samba.org'
 Subject: sockaddr structure elements
 
 
 Dear All,
  
 We are using samba 3.0.24 compiled for xscale on two devices:
  
 We are running a smbclient and smb daemon on two different devices,
 192.168.1.39 (smbd) and 192.168.1.24 (smbclient). When we establish a
 smbclient connection from client - Server, in the
 smbd/server.c:open_sockets_smbd() function, we are getting sockaddr
 structure values as follows (caught at debug data on smbd):
  
 smbd/server.c:open_sockets_smbd():addr
 sockaddr
 sa_family = AF_INET
 sa_addr[14] = 4, 5, 192, 168, 1, 24, 220, 126, 47, 204, 180, 41, 11, 192
  
 definition:
 struct sockaddr {
 sa_family_t sa_family;  /* Address family, AF_xxx */
 char   sa_data[14];   /* 14 bytes of protocol
 address */
 }
  
 According to the above definition, the sa_data should contain
  
  2-byte port no:, local IP, remote IP. But it doesn't seem to be so by
 looking at the data.

This depends on your operating system and your libc. You
might better write some little test programs that deal with
sockets and bind/connect/getpeername to experiment with what
you have.

Volker


pgpLsD4ybc3ws.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

Re: [Samba] LS not showing AD owner username and groupname

2007-05-08 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gianluca Culot wrote:
 I recently upgraded from samba 3.0.14b to 3.0.24.1 on a freebsd 6 mail
 server
 
 everything went well
 
 authentication services accept local and AD users.,
 
 YET
 
 if I list a directory with file owned by Domain Users I see IDs AND DO NOT
 SEE names of group and user owner
 
 drwxrwxrwx 3 1500 1513 512 Apr 20 18:14 administrator
 drwxrwxrwx 3 2149 1513 512 Apr 4 18:06 user1
 drwxrwxrwx 3 2119 1513 512 Apr 4 18:07 user2
 with Samab 3.0.14d
 drwxrwxrwx 3 root wheel 512 Apr 20 18:14 administrator
 drwxrwxrwx 3 user1 Domain Users 512 Apr 4 18:06 user1
 drwxrwxrwx 3 user2 Domain Users 512 Apr 4 18:07 user2
 
 Samba is started corerctly and I have NO error in any log
 Any Hint ?

Start by debugging the nss_winbind.so installation.
wbinfo -i returns the same information as getent passwd user
but bypasses NSS.  This can help narrow down the problem.





cheers, jerry
=
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
What man is a man who does not make the world better?  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQHM0IR7qMdg1EfYRAko3AKDvi1P6qyYPgPFibUZU3KdlabhyTQCdEnZx
8PMJ4c3mhJElmDvTHk5MT+U=
=lLgz
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


R: R: R: [Samba] Winbind configuration

2007-05-08 Thread Petteri Hakkarainen
I'm not quite sure what will be configured on the workstation
and what on the samba server side, in such is even needed.
Please clarify a bit:-)

If I want authentication and using shares (file and print) in 
Windows box. Linuxes would be pure clients to Windows, not
sharing any disks or printers through SMB.

 So there is no need for a samba server to be added as a domain member
 server? Isn't binding a station to a domain and id mapping done by the
 samba server?

The join is done by the net join utility and id mapping is done by
winbindd.

Will there be any configuration for these ids or will winbind do
it automatically? Is the configura

Please have a look at Bug 3062 at bugzilla.samba.org there is also a nice 
howto in this entry.

There was no such bug as I searched with the bug number for 
all bugs in all states.

Of course if you want to authenticate... you must bind the unix station/server 
to the domain, or the unix will not be able to comunicate with 
ActiveDirectory authority and get confirmation of user identity (username and 
password)
But if you just want authentication you do not need to share directories, or 
mount windows directory on the unix station the winbindDaemon (winbindd) will 
do the authentication job. and I like a lot the PAM modules...

For authentication and using Windows shares, all my boxes (server and 
workstations) will need
to be joined to domain (to be able to use the machine accounts), right? Do I 
still need a samba server
to be a domain controller for the domain or is it enough to just use the 
Windows box for this purpose?

Pete



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


Re: [Samba] smbd crash with share security

2007-05-08 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrej Kacian wrote:
 Hello,
 
 I am experiencing an issue on Mandriva 2007.1 (samba 3.0.24) where smbd
 crashes as soon as a guest connection attempt is made for a single
 file share:
 
 [EMAIL PROTECTED] ~ $ smbclient //192.168.200.2/data
 Password: 
 Domain=[FONET] OS=[Unix] Server=[Samba 3.0.24]
 Server not using user level security and no password supplied.
 tree connect failed: Call returned zero bytes (EOF)

I thought we had already fixed this in the 3.0.25 code base.






jerry
=
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
What man is a man who does not make the world better?  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQHT/IR7qMdg1EfYRAoZCAJsEbu8XmtUROSW2DJzxrwgMk8U9uQCg38oI
YfYItG8YxnmodrwG+m5gTZk=
=8T/e
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


R: [Samba] LS not showing AD owner username and groupname

2007-05-08 Thread Gianluca Culot

 -Messaggio originale-
 Da: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED]
 Inviato: martedì 8 maggio 2007 14.55
 A: Gianluca Culot
 Cc: [EMAIL PROTECTED] Samba. Org
 Oggetto: Re: [Samba] LS not showing AD owner username and groupname


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Gianluca Culot wrote:
  I recently upgraded from samba 3.0.14b to 3.0.24.1 on a freebsd 6 mail
  server
 
  everything went well
 
  authentication services accept local and AD users.,
 
  YET
 
  if I list a directory with file owned by Domain Users I see IDs
 AND DO NOT
  SEE names of group and user owner
 
  drwxrwxrwx 3 1500 1513 512 Apr 20 18:14 administrator
  drwxrwxrwx 3 2149 1513 512 Apr 4 18:06 user1
  drwxrwxrwx 3 2119 1513 512 Apr 4 18:07 user2
  with Samab 3.0.14d
  drwxrwxrwx 3 root wheel 512 Apr 20 18:14 administrator
  drwxrwxrwx 3 user1 Domain Users 512 Apr 4 18:06 user1
  drwxrwxrwx 3 user2 Domain Users 512 Apr 4 18:07 user2
 
  Samba is started corerctly and I have NO error in any log
  Any Hint ?

 Start by debugging the nss_winbind.so installation.
 wbinfo -i returns the same information as getent passwd user
 but bypasses NSS.  This can help narrow down the problem.





 cheers, jerry
 =
 Samba--- http://www.samba.org
 Centeris ---  http://www.centeris.com
 What man is a man who does not make the world better?  --Balian
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGQHM0IR7qMdg1EfYRAko3AKDvi1P6qyYPgPFibUZU3KdlabhyTQCdEnZx
 8PMJ4c3mhJElmDvTHk5MT+U=
 =lLgz
 -END PGP SIGNATURE-


Hi there

wbinfo -i returns correct infos about AD users, and none for local users
mail# /usr/local/etc/apache22  wbinfo -i user1
user1:*:2144:1513:User One:/home/user1:/bin/csh

But I have NO GETENT executable

mail# /usr/local/etc/apache22  locate getent
/usr/compat/linux/usr/bin/getent
/usr/ports/emulators/linux_base-8/work/linux_base-8-8.0/usr/bin/getent
/usr/ports/net/samba3/work/samba-3.0.14a/source/include/util_getent.h
/usr/ports/net/samba3/work/samba-3.0.14a/source/lib/util_getent.c

BUT Linux_base-8 has been removed by the portupgrade which update Samba
3.0.14b to Samba 3.0.24,1

Somebody knows about this possible anomaly in ports ?


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


[Samba] Re: Countless rec_read bad magic lines in log.smbd

2007-05-08 Thread Michael Lueck

Jeremy Allison wrote:

On Mon, May 07, 2007 at 02:43:15PM -0400, Michael Lueck wrote:

Jeremy Allison wrote:


No, I'd run memcheck on that server :-).

Is that basically Memtest86? I have that downloaded.


Yep, that's what I meant.


Well, last evening we did not get the memory tested. I had our client download the latest version of Memtest86 which comes in the form of an ISO file. Their server failed to be able to boot that ISO 
image. I too had a boot failure on an IBM 300PL (440BX) but had success on a Dell Optiplex GX150. I knew the IBM BIOS sometimes fails to boot some types of CD's, but their server is built on an Intel 
brand motherboard which this is the first occurrence of a boot failure on an Intel board.


I have a diskette image of Memtest86, the previous version, so this evening we 
will create another outage and try that.

Meanwhile...

The client happened to notice a tray icon for the printer. Clicking that brings 
up a dialog showing countless jobs.

Print jobs get through correctly.

Samba communicates to the printer via CUPS and an integrated JetDirect card. 
CUPS shows no jobs in the printer queue.

So, could these stuck jobs have anything to do with the log entries?

Thanks!

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/


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


[Samba] Re: Countless rec_read bad magic lines in log.smbd

2007-05-08 Thread Charles Marcus

On 5/8/2007 Michael Lueck ([EMAIL PROTECTED]) wrote:
I have a diskette image of Memtest86, the previous version, so this 
evening we will create another outage and try that. 


RAM that passes Memtest86 (even over a weekend of continuous testing) 
will not necessarily prove the RAM is good.


The only way I have been able to reliably test for bad RAM is to do 
something that stress-tests ALL of it - like compiling a kernel, or X, 
or something like that...


--

Best regards,

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


[Samba] Re: Countless rec_read bad magic lines in log.smbd

2007-05-08 Thread Michael Lueck

Michael Lueck wrote:


Meanwhile...

The client happened to notice a tray icon for the printer. Clicking that 
brings up a dialog showing countless jobs.


Print jobs get through correctly.

Samba communicates to the printer via CUPS and an integrated JetDirect 
card. CUPS shows no jobs in the printer queue.


So, could these stuck jobs have anything to do with the log entries?


Never mind. I stopped samba, deleted /var/cache/samba/printing/HPLJ3600.tdb, 
restarted samba and the jobs are history.

I will monitor the log file today, and this evening try the floppy image of 
Memtest86.

Thanks!

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/


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


Re: [Samba] Re: Countless rec_read bad magic lines in log.smbd

2007-05-08 Thread Yves Glodt
On Tuesday 08 May 2007, Michael Lueck wrote:
 Michael Lueck wrote:
  Meanwhile...
 
  The client happened to notice a tray icon for the printer. Clicking that
  brings up a dialog showing countless jobs.
 
  Print jobs get through correctly.
 
  Samba communicates to the printer via CUPS and an integrated JetDirect
  card. CUPS shows no jobs in the printer queue.
 
  So, could these stuck jobs have anything to do with the log entries?

 Never mind. I stopped samba, deleted
 /var/cache/samba/printing/HPLJ3600.tdb, restarted samba and the jobs are
 history.

I had and have the same problem on some of our servers, and deleting the file 
always solves the problem for me.

I do however not think I have a hardware problem or filesystem issue... 
Everything on the servers works fine, even with long uptimes.

Hope I will solve this mistery one day .-)

 I will monitor the log file today, and this evening try the floppy image of
 Memtest86.

 Thanks!

 --
 Michael Lueck
 Lueck Data Systems
 http://www.lueckdatasystems.com/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Too many open files error. Help!!!

2007-05-08 Thread Gary MacKay
have a 3.0.24 system running on CentOS 4.4 with all the latest patches 
and upgrades. However this problem started several samba versions ago 
and upgrading up to 3.0.24 has not helped. I have Googled for hours and 
found lots of the same request to absolutely no responses or help. 
Please, if anyone can shed some light on this???


Setup:
The system is setup as the PDC and sharing the typical home, public, 
sys, folders. I am using tdbsam backend. Login scripts map the drives 
for each user when they login. There are only 25 workstations. Mostly XP 
Pro, 4 or 5 Win2k boxes and I believe 1 Win98 box left. There is also a 
Windows 2K server that is just a domain member server running MS SQL. 
That is all.


Symptoms:
Everything runs fine for awhile (sometimes weeks, and sometimes only a 
day or two) and then all of a sudden, nobody can connect. They can all 
login fine, but can not access any of the shares. The error messages in 
the /var/log/samba/.log files all show too many files open. I just 
log everyone out, stop and start samba, and everyone logs back in just 
fine. I do not even have to reboot the box. Tho I have tried that and it 
made to difference in how long it lasts before breaking again.


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


[Samba] samba v2.2.3a - w2k-Users CAN change password, how to disable ?

2007-05-08 Thread Martin Petersen

Dear List, dear Samba-Users,

I've been assigned to service an old samba server (v2.2.3a) with 
smbpasswd-backend and some hundred w2k-PDC-users.


Now I stumbled over a small problem:

If windows-users change their passwords via the ctrl-alt-del-dialogue 
they are prompted an error that the domain is not available but the 
password is changed nonetheless.


The only solution I came across is to disable the button with the help 
of policies to the user profile.


Do You know of this error and have another solution for my problem?

Thanks in advance,

Martin Petersen

(Please excuse my poor grammar, reading English tech books doesn't teach 
the last skills :))

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


[Samba] TDB functionality document

2007-05-08 Thread Aravinda Guzzar

Hi,

Does someone know a document which explains the TDB structure.
functionalites, and format of the TDB files etc.

I need to understand why some of the TDBs like messages.tdb, unexpected.tdb,
brlock if not read_only, locking.tdb, session.tdb, wins.tdb are called with
TDB_CLEAR_IF_FIRST tdb flags.

Why some TDBs are opend with O_RDWR|O_CREAT flags viz. gencache.tdb,
group_mapping.tdb, account_policy.tdb, share_info.tdb, secrets.tdb.
schannel_store.tdb etc. etc.

why registry.tdb is uniquely been tried to open with O_RDWR flag and if
fails then tried with O_RDWR|O_CREAT flag.

and such internal details of the TDBs.


From the code study I am not getting the complete picture of this component.

Can any one help me by sharing any information available with them related
to this.

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


[Samba] Two Permissions Issues: null session shares and group membership

2007-05-08 Thread Eric Hill
I have Samba 3.0.25rc3 running on OpenSolaris build 67.  Samba is integrated
with our Active Directory via Kerberos.  I do not have nsswitch running with
winbind at this time.

Issue #1: Samba denies access to a share set up with public = yes when
accessed by an AD integrated user account.

The share is defined as follows:
[open]
comment = Null Session Share
path = /pool/open
public = yes
browseable = yes
create mask = 0666
directory mask = 0777
guest account = nobody
force user = nobody
guest ok = yes

The directory is:
vault2:/pool#ls -al | grep open
drwxrwxrwx   2 nobody   sys2 May  8 11:16 open
vault2:/pool#

When I connect to the share with a valid AD user account, I receive the
following message on the client: The specified user does not exist.  The
log of the session on the server (snipped for brevity):

...
[2007/05/08 13:16:15, 3] smbd/sesssetup.c:(1060)
  NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 2002
5.1] PrimaryDomain=[]
[2007/05/08 13:16:15, 3] smbd/sesssetup.c:(697)
  reply_spnego_negotiate: Got secblob of size 1462
[2007/05/08 13:16:15, 3] libads/kerberos_verify.c:(172)
  ads_keytab_verify_ticket: krb5_rd_req failed for all 9 matched keytab
principals
[2007/05/08 13:16:15, 3] smbd/sesssetup.c:(321)
  Ticket name is [EMAIL PROTECTED]
[2007/05/08 13:16:15, 4] lib/substitute.c:(407)
  Home server: vault2
[2007/05/08 13:16:15, 4] lib/substitute.c:(407)
  Home server: vault2
[2007/05/08 13:16:15, 3] passdb/lookup_sid.c:(1115)
  store_gid_sid_cache: gid 15000 in cache -
S-1-5-21-1409556225-1798326808-5522801-512

[2007/05/08 13:16:16, 3] passdb/lookup_sid.c:(1071)
  fetch gid from cache 15002 - S-1-5-32-545
[2007/05/08 13:16:16, 3] smbd/password.c:(280)
  User name: wcerichReal name: Eric Hill
[2007/05/08 13:16:16, 3] smbd/password.c:(301)
  UNIX uid 1 is UNIX user wcerich, and will be vuid 102
[2007/05/08 13:16:16, 3] smbd/password.c:(332)
  Adding homes service for user 'wcerich' using home directory:
'/pool/home/wcerich'
[2007/05/08 13:16:16, 3] smbd/process.c:(1068)
  Transaction 3 of length 82
[2007/05/08 13:16:16, 3] smbd/process.c:(926)
  switch message SMBtconX (pid 1126) conn 0x0
[2007/05/08 13:16:16, 3] smbd/sec_ctx.c:(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/05/08 13:16:16, 4] smbd/reply.c:(506)
  Client requested device type [?] for share [OPEN]
[2007/05/08 13:16:16, 3] lib/access.c:(312)
  check_access: no hostnames in host allow/deny list.
[2007/05/08 13:16:16, 2] lib/access.c:(323)
  Allowed connection from  (10.3.10.3)

[2007/05/08 13:16:16, 3] smbd/sec_ctx.c:(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/05/08 13:16:16, 1] auth/auth_util.c:(1110)
  sid_to_uid for nobody (S-1-22-1-60001) failed
[2007/05/08 13:16:16, 3] smbd/error.c:(106)
  error packet at smbd/reply.c(514) cmd=117 (SMBtconX)
NT_STATUS_NO_SUCH_USER
[2007/05/08 13:16:16, 3] smbd/process.c:(1068)
  Transaction 4 of length 43
[2007/05/08 13:16:16, 3] smbd/process.c:(926)
  switch message SMBulogoffX (pid 1126) conn 0x0
[2007/05/08 13:16:16, 3] smbd/sec_ctx.c:(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/05/08 13:16:16, 3] smbd/reply.c:(1560)
  ulogoffX vuid=102

Is this failing because of the sid_to_uid for nobody ... failed message,
or some other problem?  Heck, maybe I'm just not setting the share up
correctly... :)

Issue #2: Unix users belonging to a unix group are denied access to a
directory/file, even though the unix user account is a member of the group.

Given the following file/account settings:

vault2:/pool/data#ls -al | grep example
drwxrwx---   2 nobody   group110 May  8 10:00 example
vault2:/pool/data#cat /etc/group | grep group1
group1::100:wcerich
vault2:/pool/data#

When I attach to the data share as wcerich, I do not have access to the
example directory, even though I am a member of unix group1 and the group
has full access to the directory.

Can anyone help me out with either of these two issues?

Eric


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


Re: [Samba] TDB functionality document

2007-05-08 Thread simo
On Wed, 2007-05-09 at 00:05 +0530, Aravinda Guzzar wrote:
 Hi,
 
 Does someone know a document which explains the TDB structure.
 functionalites, and format of the TDB files etc.
 
 I need to understand why some of the TDBs like messages.tdb, unexpected.tdb,
 brlock if not read_only, locking.tdb, session.tdb, wins.tdb are called with
 TDB_CLEAR_IF_FIRST tdb flags.

This flag is used to clean up the db contents on startup. If the process
is the first consumer it will clean out the TDB, otherwise not.

This is used because these are temporary TDBs, it make no sense to keep
the content when the consumers are restarted from scratch.

 Why some TDBs are opend with O_RDWR|O_CREAT flags viz. gencache.tdb,
 group_mapping.tdb, account_policy.tdb, share_info.tdb, secrets.tdb.
 schannel_store.tdb etc. etc.

These are permanent TDBs, you need to create them only if they do not
exists, otherwise just open RW.

 why registry.tdb is uniquely been tried to open with O_RDWR flag and if
 fails then tried with O_RDWR|O_CREAT flag.

no idea

 and such internal details of the TDBs.

I think the best we have right now is in tdb/docs/README

Feel free to post wuestions but you will have better chances to reach
the developers (ie people that understand TDB internals) by posting at
[EMAIL PROTECTED]

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: [EMAIL PROTECTED]
http://samba.org

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


Re: R: [Samba] LS not showing AD owner username and groupname

2007-05-08 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gianluca Culot wrote
:
 wbinfo -i returns correct infos about AD users, and none for local users
 mail# /usr/local/etc/apache22  wbinfo -i user1
 user1:*:2144:1513:User One:/home/user1:/bin/csh

 But I have NO GETENT executable

 perl -e '@user = getpwnam(DOMAIN\\user); print @user\n;'





cheers, jerry
=
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
What man is a man who does not make the world better?  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQPfGIR7qMdg1EfYRArBXAKCwdzHmigpI8JNbBOExtje80q4yJwCfQU31
NoMpUfHFprKCE5hAoOur2HQ=
=z093
-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] smbd crash with share security

2007-05-08 Thread Andrej Kacian
On Tue, 08 May 2007 08:02:55 -0500
Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:

  Server not using user level security and no password supplied.
  tree connect failed: Call returned zero bytes (EOF)  
 
 I thought we had already fixed this in the 3.0.25 code base.

If you did, that's great - I just wanted to make sure it gets fixed.

Thanks,
-- 
Andrej Kacian andrej at kacian dot sk


signature.asc
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] Samba on different subnets without wins

2007-05-08 Thread john hanson
Dear all 

i am running Samba 2.x  ,and want to share unix
directory with only one windows host in Windows 2003
domain . both Samba and windows are in differnet
subnet 

we are not using any wins server in my network , im
unable to jion the domain .

# Global parameters
[global]
workgroup = Domain925
netbios name = server
security = DOMAIN
encrypt passwords = Yes
password server = MYPDC
log level = 1
name resolve order = host bcast lmhosts wins
hosts allow = localhost, server, 192.168.1. 10.10.10.
hosts deny = All

[share]
comment = Solaris share
path = /share
read only = No
guest ok = Yes


Please advise 

Regards

JH


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Newbie Question - can users create directory on thier own from Win Client ???

2007-05-08 Thread Mike Rushton
Thak you for your response.  This may work well.  

Do you know if thier is a version of SAMBA that works with SCO Unixware 
7 ???I don't recall what is on that machine -  I think in the past 
someone tried to get SAMBA or some sort of filesharing to work and could 
not.I have to get the machine to boot so I can see what is on it.  

This could work. 

Above all, I must follow the Prime Directive - DON'T SPEND ANY MONEY 
!!! Windows 2003 CALS cost an arm and a leg.   I never was a real 
fan of NT 4.0 either. 




Gary Dale wrote:


Silly question actually.  :)

Basically, if a Windows client can do it while connected to a Windows 
server, they can do it while connected to a Samba server. This is a 
basic permissions issue. If the client has permission to create a 
directory on the share, it should work. The easiest way to set Windows 
permissions is to log on from a Windows client with a Domain 
Administrator account and set the group permissions, etc. from there.



Mike Rushton wrote:


First some background -

We got an old, tired PII, 233 server running NT 4.0

We have a Compaq Proliant that is a quad 550 Xeon CPU, 4 GB, 320 GB 
of HD, a tape drive etc.   It formerly was an Oracle Server that had 
SCO UnixWare 7 on it.  Currently it is having a problem - bad 
controller card, but we intend to get it fixed.  (Not sure if 
UnixWare comes with Samba or what version to use, but we also can get 
out hands on Red Hat Enterprise Linux)   The Idea is to put some sort 
of Unix / Linux on it and Samba, and replace the NT 4.0 machine.


Although we have some work ahead of us, I was wondering, if you set 
up a shared directory on a machine, can user create a directory in it 
on their own from a client Windows machine 


If it is not easy for the users to work with, they will not like it. ...






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


[Samba] Newbie User Migration Question

2007-05-08 Thread Mike Rushton
OK,  As I plan and plot this migration .  This is what I think I wanna 
try to do.   What do you thing of this -  

Our old NT server, has a Domain called Engineering.   We were not 
retiring users, because in NT, if you retire a user you can never use it 
again.  So when we retired  jones for Susie Jones, when Tom Jones  was 
hired we could not use jones as a user again.  So we had to make  user 
like tjones or jonest or jones1. 

When someone would leave we would just disable the account. 

We really never got into the roaming profiles or groups for that 
matter.  I see that there are migration tools, but if we have 50 users 
that must authenticate, that is a high estimate.


What I want to do is get the Linux/Samba box running, and maybe make a 
new domain, lets say Corporate.  Because the users are all screwed up 
and I don't want to import all of them, I guess I could create them on 
this new machine. 

From what I read, I would have to add the user to unix, add the user to 
Samba, and if the machine is Win2k or XP,  add the machine to the 
domain.   Then I would move everyone over to this new domain.  

The old NT PDC has DHCP on it, excluding likethe first 75 ip's for the 
servers.  I would have to set up DHCP the same way on the new server and 
disable it on the old one. 

Does this sound logical ??? 

We have a real, fussy application running on the old server, that I 
really can not change, nor change the client on the workstations - all 
of the stuff is written into the registry - we don't have support so I 
want to leave it on the old server until we can convert. 



We just may be able to pull this off.I never liked Microsoft's 
support.We may be better off on Linux or Unix. 



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


[Samba] SAMBA as PDC - Pls Help!

2007-05-08 Thread chris reyes

Hello guys!

I'm newbie in Linux and particularly in SAMBA.  You can call me
Microsoft centric but am veering away with MS and so my boss who wishes
for me to establish a SAMBA PDC Server who will authenticate users,
provide file and print services for WInXP and Mac users.

I've read a good number of SAMBA-HOW-TOS but unfortunately i'm not
going anywhere! thus this e-mail...I'm a bit desperate and confused
with what i read.

Anyway if you'll spare some time for this... if you do it will be
deeply appreciated...thanks in advanced!

Here's my smb.conf



# /etc/samba/smb.conf
# samba configuration file
# last updated: 06/06/2007 by chldr

[global]
;basic server settings
workgroup = testdomain
netbios name = phoenix
server string = Samba PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192

;PDC and Master Browser settings
os level = 80
preferred master = yes
local master = yes
dns proxy = no
wins support = yes
domain master = yes

;security and logging settings
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0

;user profiles and home directory
logon home = \\%L\%U\.profile
logon drive = H:
logon path = \\%L\profiles\%U
username map = /etc/samba/smbusers
logon script = netlogon.bat
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d
/dev/null -s /bin/false %u

;sync UNIX passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n
*Enter*new*Unix*password* %n\n *Retype*new*Unix*password* %n\n *passwd:
*all*authentication*tokens*updated*successfully*

#===SHARES===

   security = domain
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no

[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = root, chris

[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

[netlogon]
comment = Network Logon Service
path = /home/netlogon
browseable = no
write list = root, chris



The domain name testdomain might be a NetBIOS domain name.  If this is
the case, verify that the domain name is properly registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the
following information can help you troubleshoot your DNS configuration.

An error occurred when DNS was queried for the service location (SRV)
resource record used to locate a domain controller for domain
testdomain.

The error was: No DNS servers configured for local system.
(error code 0x267C DNS_ERROR_NO_DNS_SERVERS)

The query was for the SRV record for _ldap._tcp.dc._msdcs.testdomain

For more information, click Help.

My Private LAN - Lab Setup:

1 x Intel based PC acting to be the SAMBA PDC (Red Hat Linux Enterprise
Ed 4.0)
1 x Intel based notebook (WinXP SP2)
I have no DNS or WINS in the private network.
I have downloaded the WinXP patch = “requirenoseal = 0”


My HOSTS File at WinXP machine:

(Ip address of the Samba PDC) (NetBios name of the Samba PDC)

192.168.1.1 phoenix


Concerns  Questions:
1.  Do I need WINS  DNS to set SAMBAas PDC?
2.  I installed NetBeui and was able to ping the SAMBA PDC with its
NetBios name, without NetBeui I can only ping the IP but without the
NetBios name.
3.  I can also ping from Samba PDC the WinXP machine.
4.  I’ve already disabled the WinXP Personal Firewall Settings.
5.  The WinXP in the laptop is freshly installed with the default
workgroup membership as “WORKGROUP”
6.  The Samba PDC is supposedly be the Authentication, File and Print
server.
7.  Pag nag “testparm” ako lahat naman ok at running
8.  Am I missing something?

Our present network setup:

WinXP PCs and laptops who are member of “WORKGROUP” and with NetBIOS
over TCP/IP enabled.







 

Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=listsid=396546091
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] SAMBA as PDC - Pls Help!!

2007-05-08 Thread chris reyes

Hello guys!

I'm newbie in Linux and particularly in SAMBA.  You can call me
Microsoft centric but am veering away with MS and so my boss who wishes
for me to establish a SAMBA PDC Server who will authenticate users,
provide file and print services for WInXP and Mac users.

I've read a good number of SAMBA-HOW-TOS but unfortunately i'm not
going anywhere! thus this e-mail...I'm a bit desperate and confused
with what i read.

Anyway if you'll spare some time for this... if you do it will be
deeply appreciated...thanks in advanced!

Here's my smb.conf



# /etc/samba/smb.conf
# samba configuration file
# last updated: 06/06/2007 by chldr

[global]
;basic server settings
workgroup = testdomain
netbios name = phoenix
server string = Samba PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192

;PDC and Master Browser settings
os level = 80
preferred master = yes
local master = yes
dns proxy = no
wins support = yes
domain master = yes

;security and logging settings
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0

;user profiles and home directory
logon home = \\%L\%U\.profile
logon drive = H:
logon path = \\%L\profiles\%U
username map = /etc/samba/smbusers
logon script = netlogon.bat
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d
/dev/null -s /bin/false %u

;sync UNIX passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n
*Enter*new*Unix*password* %n\n *Retype*new*Unix*password* %n\n *passwd:
*all*authentication*tokens*updated*successfully*

#===SHARES===

   security = domain
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no

[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = root, chris

[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

[netlogon]
comment = Network Logon Service
path = /home/netlogon
browseable = no
write list = root, chris



The domain name testdomain might be a NetBIOS domain name.  If this is
the case, verify that the domain name is properly registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the
following information can help you troubleshoot your DNS configuration.

An error occurred when DNS was queried for the service location (SRV)
resource record used to locate a domain controller for domain
testdomain.

The error was: No DNS servers configured for local system.
(error code 0x267C DNS_ERROR_NO_DNS_SERVERS)

The query was for the SRV record for _ldap._tcp.dc._msdcs.testdomain

For more information, click Help.

My Private LAN - Lab Setup:

1 x Intel based PC acting to be the SAMBA PDC (Red Hat Linux Enterprise
Ed 4.0)
1 x Intel based notebook (WinXP SP2)
I have no DNS or WINS in the private network.
I have downloaded the WinXP patch = “requirenoseal = 0”


My HOSTS File at WinXP machine:

(Ip address of the Samba PDC) (NetBios name of the Samba PDC)

192.168.1.1 phoenix


Concerns  Questions:
1.  Do I need WINS  DNS to set SAMBAas PDC?
2.  I installed NetBeui and was able to ping the SAMBA PDC with its
NetBios name, without NetBeui I can only ping the IP but without the
NetBios name.
3.  I can also ping from Samba PDC the WinXP machine.
4.  I’ve already disabled the WinXP Personal Firewall Settings.
5.  The WinXP in the laptop is freshly installed with the default
workgroup membership as “WORKGROUP”
6.  The Samba PDC is supposedly be the Authentication, File and Print
server.
7.  Pag nag “testparm” ako lahat naman ok at running
8.  Am I missing something?

Our present network setup:

WinXP PCs and laptops who are member of “WORKGROUP” and with 
NetBIOS
over TCP/IP enabled.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Data missing in samba shares

2007-05-08 Thread Rahul

Hi List,
We have a Samba Server in which we have nearly 64 shares of nearly 1 TB
data. Last week we took a downtime of nearly 5 hours for this samba server.
After that when we boot the server and access the shares from the windows
host. To my surprise i found that some 8-10 shares are not having any
contents at all. Those shares are completely blank without even a single
file. Is it a problem that shares are not mounted properly or it has
something to deal with Samba.
We are using windows XP professional as the client OS and the samba version
is 3.0.x.

Please help to solve this issue. Thanks in advance.

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


svn commit: samba r22757 - in branches/SAMBA_4_0/source/lib/talloc: .

2007-05-08 Thread metze
Author: metze
Date: 2007-05-08 08:49:52 + (Tue, 08 May 2007)
New Revision: 22757

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

Log:
test if calling talloc_free() works on parent elements from within a destrutor

metze
Modified:
   branches/SAMBA_4_0/source/lib/talloc/testsuite.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/testsuite.c
===
--- branches/SAMBA_4_0/source/lib/talloc/testsuite.c2007-05-08 04:38:16 UTC 
(rev 22756)
+++ branches/SAMBA_4_0/source/lib/talloc/testsuite.c2007-05-08 08:49:52 UTC 
(rev 22757)
@@ -993,7 +993,7 @@
s4 = talloc_array_ptrtype(top, s4, 10);location4 = __location__;
 
if (talloc_get_size(s4) != (sizeof(struct struct1 **) * 10)) {
-   printf(failure: TALLOC PTRTYPE [\n
+   printf(failure: ptrtype [\n
  talloc_array_ptrtype() allocated the wrong size 
   %lu (should be %lu)\n]\n,
   (unsigned long)talloc_get_size(s4),
@@ -1010,6 +1010,45 @@
return true;
 }
 
+static int _test_talloc_free_in_destructor(void **ptr)
+{
+   talloc_free(*ptr);
+   return 0;
+}
+
+static bool test_talloc_free_in_destructor(void)
+{
+   void *level0;
+   void *level1;
+   void *level2;
+   void *level3;
+   void *level4;
+   void **level5;
+
+   printf(test: free_in_destructor [\nTALLOC FREE IN DESTRUCTOR\n]\n);
+
+   level0 = talloc_new(NULL);
+   level1 = talloc_new(level0);
+   level2 = talloc_new(level1);
+   level3 = talloc_new(level2);
+   level4 = talloc_new(level3);
+   level5 = talloc(level4, void *);
+
+   *level5 = level3;
+   (void)talloc_reference(level0, level3);
+   (void)talloc_reference(level3, level3);
+   (void)talloc_reference(level5, level3);
+
+   talloc_set_destructor(level5, _test_talloc_free_in_destructor);
+
+   talloc_free(level1);
+
+   talloc_free(level0);
+
+   printf(success: free_in_destructor\n);
+   return true;
+}
+
 static bool test_autofree(void)
 {
 #if _SAMBA_BUILD_  4
@@ -1055,6 +1094,7 @@
ret = test_loop();
ret = test_free_parent_deny_child(); 
ret = test_talloc_ptrtype();
+   ret = test_talloc_free_in_destructor();
 
if (ret) {
ret = test_speed();



svn commit: samba r22758 - in branches/SAMBA_4_0/source/lib/talloc: .

2007-05-08 Thread metze
Author: metze
Date: 2007-05-08 09:54:01 + (Tue, 08 May 2007)
New Revision: 22758

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

Log:
- add missing _talloc_set_name_const(ret, ret); to talloc_append_string()
- update manpage and add comments about _talloc_set_name_const(ret, ret);
  in all places which use them

metze
Modified:
   branches/SAMBA_4_0/source/lib/talloc/talloc.3.xml
   branches/SAMBA_4_0/source/lib/talloc/talloc.c
   branches/SAMBA_4_0/source/lib/talloc/talloc_guide.txt


Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.3.xml
===
--- branches/SAMBA_4_0/source/lib/talloc/talloc.3.xml   2007-05-08 08:49:52 UTC 
(rev 22757)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.3.xml   2007-05-08 09:54:01 UTC 
(rev 22758)
@@ -583,11 +583,27 @@
 /para
 programlistingtalloc_set_name_const(ptr, ptr)/programlisting
 /refsect2
+refsect2titlechar *talloc_append_string(const void *emphasis 
role=italict/emphasis, char *emphasis role=italicorig/emphasis, 
const char *emphasis role=italicappend/emphasis);/title
+para
+ The talloc_append_string() function appends the given formatted
+ string to the given string.
+/para
+para
+ This function sets the name of the new pointer to the new
+ string. This is equivalent to:
+/para
+programlistingtalloc_set_name_const(ptr, ptr)/programlisting
+/refsect2
 refsect2titlechar *talloc_vasprintf(const void *emphasis 
role=italict/emphasis, const char *emphasis role=italicfmt/emphasis, 
va_list emphasis role=italicap/emphasis);/title
 para
  The talloc_vasprintf() function is the talloc equivalent of the C
  library function vasprintf(3).
 /para
+para
+ This function sets the name of the new pointer to the new
+ string. This is equivalent to:
+/para
+programlistingtalloc_set_name_const(ptr, ptr)/programlisting
 /refsect2
 refsect2titlechar *talloc_asprintf(const void *emphasis 
role=italict/emphasis, const char *emphasis role=italicfmt/emphasis, 
...);/title
 para
@@ -605,6 +621,11 @@
  The talloc_asprintf_append() function appends the given formatted
  string to the given string.
 /para
+para
+ This function sets the name of the new pointer to the new
+ string. This is equivalent to:
+/para
+programlistingtalloc_set_name_const(ptr, ptr)/programlisting
 /refsect2
 refsect2title(type *)talloc_array(const void *ctx, type, uint_t 
count);/title
 para

Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.c
===
--- branches/SAMBA_4_0/source/lib/talloc/talloc.c   2007-05-08 08:49:52 UTC 
(rev 22757)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.c   2007-05-08 09:54:01 UTC 
(rev 22758)
@@ -1137,6 +1137,8 @@
/* append the string with the trailing \0 */
memcpy(ret[olen], append, alenz);
 
+   _talloc_set_name_const(ret, ret);
+
return ret;
 }
 

Modified: branches/SAMBA_4_0/source/lib/talloc/talloc_guide.txt
===
--- branches/SAMBA_4_0/source/lib/talloc/talloc_guide.txt   2007-05-08 
08:49:52 UTC (rev 22757)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc_guide.txt   2007-05-08 
09:54:01 UTC (rev 22758)
@@ -533,21 +533,34 @@
 string. This is equivalent to:
talloc_set_name_const(ptr, ptr)
 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+char *talloc_append_string(const void *t, char *orig, const char *append);
 
+The talloc_append_string() function appends the given formatted
+string to the given string.
+
+This function sets the name of the new pointer to the new
+string. This is equivalent to:
+   talloc_set_name_const(ptr, ptr)
+
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 char *talloc_vasprintf(const void *t, const char *fmt, va_list ap);
 
 The talloc_vasprintf() function is the talloc equivalent of the C
 library function vasprintf()
 
+This functions sets the name of the new pointer to the new
+string. This is equivalent to:
+   talloc_set_name_const(ptr, ptr)
 
+
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 char *talloc_asprintf(const void *t, const char *fmt, ...);
 
 The talloc_asprintf() function is the talloc equivalent of the C
 library function asprintf()
 
-This functions sets the name of the new pointer to the passed
+This functions sets the name of the new pointer to the new
 string. This is equivalent to:
talloc_set_name_const(ptr, ptr)
 
@@ -558,7 +571,11 @@
 The talloc_asprintf_append() function appends the given formatted 
 string to the given string. 
 
+This functions sets the name of the new pointer to the new
+string. 

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

2007-05-08 Thread metze
Author: metze
Date: 2007-05-08 11:12:11 + (Tue, 08 May 2007)
New Revision: 22759

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

Log:
sync lib/talloc with samba4

metze
Modified:
   branches/SAMBA_3_0/source/lib/talloc/Makefile.in
   branches/SAMBA_3_0/source/lib/talloc/configure.ac
   branches/SAMBA_3_0/source/lib/talloc/libtalloc.m4
   branches/SAMBA_3_0/source/lib/talloc/talloc.3.xml
   branches/SAMBA_3_0/source/lib/talloc/talloc.c
   branches/SAMBA_3_0/source/lib/talloc/talloc.pc.in
   branches/SAMBA_3_0/source/lib/talloc/talloc_guide.txt
   branches/SAMBA_3_0/source/lib/talloc/testsuite.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/talloc/Makefile.in
===
--- branches/SAMBA_3_0/source/lib/talloc/Makefile.in2007-05-08 09:54:01 UTC 
(rev 22758)
+++ branches/SAMBA_3_0/source/lib/talloc/Makefile.in2007-05-08 11:12:11 UTC 
(rev 22759)
@@ -12,12 +12,12 @@
 XSLTPROC = @XSLTPROC@
 INSTALLCMD = @INSTALL@
 CC = @CC@
-CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
+CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. [EMAIL PROTECTED]@
 EXTRA_TARGETS = @DOC_TARGET@
 
 .SUFFIXES: .c .o .3 .3.xml .xml .html
 
-LIBOBJ = @TALLOCOBJ@ @LIBREPLACEOBJ@
+LIBOBJ = @TALLOC_OBJ@ @LIBREPLACEOBJ@
 
 all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
 
@@ -34,13 +34,14 @@
@-ranlib $@
 
 install: all 
-   ${INSTALLCMD} -d ${libdir}
-   ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
-   ${INSTALLCMD} -d ${includedir}
-   ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
-   ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
-   if [ -f talloc.3 ];then ${INSTALLCMD} -d ${mandir}/man3; fi
-   if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3; fi
+   ${INSTALLCMD} -d $(DESTDIR)$(libdir)
+   ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
+   ${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
+   ${INSTALLCMD} -d $(DESTDIR)${includedir}
+   ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
+   ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
+   if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
+   if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 
$(DESTDIR)$(mandir)/man3; fi
 
 doc: talloc.3 talloc.3.html
 

Modified: branches/SAMBA_3_0/source/lib/talloc/configure.ac
===
--- branches/SAMBA_3_0/source/lib/talloc/configure.ac   2007-05-08 09:54:01 UTC 
(rev 22758)
+++ branches/SAMBA_3_0/source/lib/talloc/configure.ac   2007-05-08 11:12:11 UTC 
(rev 22759)
@@ -1,5 +1,5 @@
 AC_PREREQ(2.50)
-AC_INIT(talloc.h)
+AC_INIT(talloc, 1.0)
 AC_CONFIG_SRCDIR([talloc.c])
 AC_SUBST(datarootdir)
 AC_CONFIG_HEADER(config.h)

Modified: branches/SAMBA_3_0/source/lib/talloc/libtalloc.m4
===
--- branches/SAMBA_3_0/source/lib/talloc/libtalloc.m4   2007-05-08 09:54:01 UTC 
(rev 22758)
+++ branches/SAMBA_3_0/source/lib/talloc/libtalloc.m4   2007-05-08 11:12:11 UTC 
(rev 22759)
@@ -12,9 +12,15 @@
 if test x$tallocdir = x; then
AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
 fi
-TALLOCOBJ=talloc.o
-AC_SUBST(TALLOCOBJ)
+TALLOC_OBJ=talloc.o
+AC_SUBST(TALLOC_OBJ)
 
+TALLOC_CFLAGS=-I$tallocdir
+AC_SUBST(TALLOC_CFLAGS)
+
+TALLOC_LIBS=
+AC_SUBST(TALLOC_LIBS)
+
 AC_CHECK_SIZEOF(size_t,cross)
 AC_CHECK_SIZEOF(void *,cross)
 

Modified: branches/SAMBA_3_0/source/lib/talloc/talloc.3.xml
===
--- branches/SAMBA_3_0/source/lib/talloc/talloc.3.xml   2007-05-08 09:54:01 UTC 
(rev 22758)
+++ branches/SAMBA_3_0/source/lib/talloc/talloc.3.xml   2007-05-08 11:12:11 UTC 
(rev 22759)
@@ -583,11 +583,27 @@
 /para
 programlistingtalloc_set_name_const(ptr, ptr)/programlisting
 /refsect2
+refsect2titlechar *talloc_append_string(const void *emphasis 
role=italict/emphasis, char *emphasis role=italicorig/emphasis, 
const char *emphasis role=italicappend/emphasis);/title
+para
+ The talloc_append_string() function appends the given formatted
+ string to the given string.
+/para
+para
+ This function sets the name of the new pointer to the new
+ string. This is equivalent to:
+/para
+programlistingtalloc_set_name_const(ptr, ptr)/programlisting
+/refsect2
 refsect2titlechar *talloc_vasprintf(const void *emphasis 
role=italict/emphasis, const char *emphasis role=italicfmt/emphasis, 
va_list emphasis role=italicap/emphasis);/title
 para
  The talloc_vasprintf() function is the talloc equivalent of the C
  library function vasprintf(3).
 /para
+para
+ This function sets the name of the new pointer to the new
+ string. This is equivalent to:
+/para
+   

svn commit: samba r22760 - in branches/SAMBA_3_0_26/source/lib/talloc: .

2007-05-08 Thread metze
Author: metze
Date: 2007-05-08 11:14:21 + (Tue, 08 May 2007)
New Revision: 22760

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

Log:
sync lib/talloc with SAMBA_3_0 and SAMBA_4_0

metze
Modified:
   branches/SAMBA_3_0_26/source/lib/talloc/Makefile.in
   branches/SAMBA_3_0_26/source/lib/talloc/config.mk
   branches/SAMBA_3_0_26/source/lib/talloc/configure.ac
   branches/SAMBA_3_0_26/source/lib/talloc/libtalloc.m4
   branches/SAMBA_3_0_26/source/lib/talloc/talloc.3.xml
   branches/SAMBA_3_0_26/source/lib/talloc/talloc.c
   branches/SAMBA_3_0_26/source/lib/talloc/talloc.h
   branches/SAMBA_3_0_26/source/lib/talloc/talloc.pc.in
   branches/SAMBA_3_0_26/source/lib/talloc/talloc_guide.txt
   branches/SAMBA_3_0_26/source/lib/talloc/testsuite.c


Changeset:
Modified: branches/SAMBA_3_0_26/source/lib/talloc/Makefile.in
===
--- branches/SAMBA_3_0_26/source/lib/talloc/Makefile.in 2007-05-08 11:12:11 UTC 
(rev 22759)
+++ branches/SAMBA_3_0_26/source/lib/talloc/Makefile.in 2007-05-08 11:14:21 UTC 
(rev 22760)
@@ -12,12 +12,12 @@
 XSLTPROC = @XSLTPROC@
 INSTALLCMD = @INSTALL@
 CC = @CC@
-CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. [EMAIL PROTECTED]@ [EMAIL PROTECTED]@
+CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. [EMAIL PROTECTED]@
 EXTRA_TARGETS = @DOC_TARGET@
 
 .SUFFIXES: .c .o .3 .3.xml .xml .html
 
-LIBOBJ = @TALLOCOBJ@ @LIBREPLACEOBJ@
+LIBOBJ = @TALLOC_OBJ@ @LIBREPLACEOBJ@
 
 all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
 
@@ -34,13 +34,14 @@
@-ranlib $@
 
 install: all 
-   ${INSTALLCMD} -d ${libdir}
-   ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
-   ${INSTALLCMD} -d ${includedir}
-   ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
-   ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
-   if [ -f talloc.3 ];then ${INSTALLCMD} -d ${mandir}/man3; fi
-   if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3; fi
+   ${INSTALLCMD} -d $(DESTDIR)$(libdir)
+   ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
+   ${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
+   ${INSTALLCMD} -d $(DESTDIR)${includedir}
+   ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
+   ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
+   if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
+   if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 
$(DESTDIR)$(mandir)/man3; fi
 
 doc: talloc.3 talloc.3.html
 

Modified: branches/SAMBA_3_0_26/source/lib/talloc/config.mk
===
--- branches/SAMBA_3_0_26/source/lib/talloc/config.mk   2007-05-08 11:12:11 UTC 
(rev 22759)
+++ branches/SAMBA_3_0_26/source/lib/talloc/config.mk   2007-05-08 11:14:21 UTC 
(rev 22760)
@@ -11,8 +11,3 @@
 #
 # End LIBRARY LIBTALLOC
 
-
-[BINARY::TALLOC]
-OBJ_FILES = testsuite.o
-PRIVATE_DEPENDENCIES = LIBTALLOC
-INSTALLDIR = TORTUREDIR/LOCAL

Modified: branches/SAMBA_3_0_26/source/lib/talloc/configure.ac
===
--- branches/SAMBA_3_0_26/source/lib/talloc/configure.ac2007-05-08 
11:12:11 UTC (rev 22759)
+++ branches/SAMBA_3_0_26/source/lib/talloc/configure.ac2007-05-08 
11:14:21 UTC (rev 22760)
@@ -1,5 +1,5 @@
 AC_PREREQ(2.50)
-AC_INIT(talloc.h)
+AC_INIT(talloc, 1.0)
 AC_CONFIG_SRCDIR([talloc.c])
 AC_SUBST(datarootdir)
 AC_CONFIG_HEADER(config.h)

Modified: branches/SAMBA_3_0_26/source/lib/talloc/libtalloc.m4
===
--- branches/SAMBA_3_0_26/source/lib/talloc/libtalloc.m42007-05-08 
11:12:11 UTC (rev 22759)
+++ branches/SAMBA_3_0_26/source/lib/talloc/libtalloc.m42007-05-08 
11:14:21 UTC (rev 22760)
@@ -12,9 +12,15 @@
 if test x$tallocdir = x; then
AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
 fi
-TALLOCOBJ=talloc.o
-AC_SUBST(TALLOCOBJ)
+TALLOC_OBJ=talloc.o
+AC_SUBST(TALLOC_OBJ)
 
+TALLOC_CFLAGS=-I$tallocdir
+AC_SUBST(TALLOC_CFLAGS)
+
+TALLOC_LIBS=
+AC_SUBST(TALLOC_LIBS)
+
 AC_CHECK_SIZEOF(size_t,cross)
 AC_CHECK_SIZEOF(void *,cross)
 

Modified: branches/SAMBA_3_0_26/source/lib/talloc/talloc.3.xml
===
--- branches/SAMBA_3_0_26/source/lib/talloc/talloc.3.xml2007-05-08 
11:12:11 UTC (rev 22759)
+++ branches/SAMBA_3_0_26/source/lib/talloc/talloc.3.xml2007-05-08 
11:14:21 UTC (rev 22760)
@@ -583,11 +583,27 @@
 /para
 programlistingtalloc_set_name_const(ptr, ptr)/programlisting
 /refsect2
+refsect2titlechar *talloc_append_string(const void *emphasis 
role=italict/emphasis, char *emphasis role=italicorig/emphasis, 
const char *emphasis role=italicappend/emphasis);/title
+para
+ The talloc_append_string() function appends the given formatted
+ string 

Rev 264: fixed a problem with the number of timed events growing without bound with the new seqnum code in http://samba.org/~tridge/ctdb

2007-05-08 Thread tridge

revno: 264
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge
timestamp: Tue 2007-05-08 21:16:29 +1000
message:
  fixed a problem with the number of timed events growing without bound with 
the new seqnum code
modified:
  common/ctdb_ltdb.c ctdb_ltdb.c-20061128065342-to93h6eejj5kon81-2
  include/ctdb_private.h 
ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
=== modified file 'common/ctdb_ltdb.c'
--- a/common/ctdb_ltdb.c2007-05-05 07:35:28 +
+++ b/common/ctdb_ltdb.c2007-05-08 11:16:29 +
@@ -440,8 +440,9 @@
ctdb_db-seqnum = new_seqnum;
 
/* setup a new timer */
-   event_add_timed(ctdb-ev, ctdb_db, 
timeval_current_ofs(ctdb-seqnum_frequency, 0),
-   ctdb_ltdb_seqnum_check, ctdb_db);
+   ctdb_db-te = event_add_timed(ctdb-ev, ctdb_db, 
+ 
timeval_current_ofs(ctdb-seqnum_frequency, 0),
+ ctdb_ltdb_seqnum_check, ctdb_db);
 }
 
 /*
@@ -456,8 +457,11 @@
return -1;
}
 
-   event_add_timed(ctdb-ev, ctdb_db, 
timeval_current_ofs(ctdb-seqnum_frequency, 0),
-   ctdb_ltdb_seqnum_check, ctdb_db);
+   if (ctdb_db-te == NULL) {
+   ctdb_db-te = event_add_timed(ctdb-ev, ctdb_db, 
+ 
timeval_current_ofs(ctdb-seqnum_frequency, 0),
+ ctdb_ltdb_seqnum_check, ctdb_db);
+   }
 
tdb_enable_seqnum(ctdb_db-ltdb-tdb);
ctdb_db-seqnum = tdb_get_seqnum(ctdb_db-ltdb-tdb);

=== modified file 'include/ctdb_private.h'
--- a/include/ctdb_private.h2007-05-06 19:02:48 +
+++ b/include/ctdb_private.h2007-05-08 11:16:29 +
@@ -246,6 +246,7 @@
struct tdb_wrap *ltdb;
struct ctdb_registered_call *calls; /* list of registered calls */
uint32_t seqnum;
+   struct timed_event *te;
 };
 
 



svn commit: samba r22761 - in branches: SAMBA_3_0/source SAMBA_3_0/source/lib SAMBA_3_0/source/nmbd SAMBA_3_0/source/rpc_server SAMBA_3_0/source/smbd SAMBA_3_0/source/utils SAMBA_3_0/source/web SAMBA_

2007-05-08 Thread vlendec
Author: vlendec
Date: 2007-05-08 13:44:36 + (Tue, 08 May 2007)
New Revision: 22761

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

Log:
This introduces lib/conn_tdb.c with two main functions: connections_traverse
and connections_forall. This centralizes all the routines that did individual
tdb_open(connections.tdb) and direct tdb_traverse.

Volker

Added:
   branches/SAMBA_3_0/source/lib/conn_tdb.c
   branches/SAMBA_3_0_26/source/lib/conn_tdb.c
Modified:
   branches/SAMBA_3_0/source/Makefile.in
   branches/SAMBA_3_0/source/lib/messages.c
   branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c
   branches/SAMBA_3_0/source/rpc_server/srv_netlog_nt.c
   branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c
   branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c
   branches/SAMBA_3_0/source/smbd/connection.c
   branches/SAMBA_3_0/source/smbd/lanman.c
   branches/SAMBA_3_0/source/smbd/server.c
   branches/SAMBA_3_0/source/smbd/statcache.c
   branches/SAMBA_3_0/source/utils/net_status.c
   branches/SAMBA_3_0/source/utils/smbcontrol.c
   branches/SAMBA_3_0/source/utils/status.c
   branches/SAMBA_3_0/source/web/statuspage.c
   branches/SAMBA_3_0_26/source/Makefile.in
   branches/SAMBA_3_0_26/source/lib/messages.c
   branches/SAMBA_3_0_26/source/nmbd/nmbd_processlogon.c
   branches/SAMBA_3_0_26/source/rpc_server/srv_netlog_nt.c
   branches/SAMBA_3_0_26/source/rpc_server/srv_spoolss_nt.c
   branches/SAMBA_3_0_26/source/rpc_server/srv_srvsvc_nt.c
   branches/SAMBA_3_0_26/source/smbd/connection.c
   branches/SAMBA_3_0_26/source/smbd/lanman.c
   branches/SAMBA_3_0_26/source/smbd/server.c
   branches/SAMBA_3_0_26/source/smbd/statcache.c
   branches/SAMBA_3_0_26/source/utils/net_status.c
   branches/SAMBA_3_0_26/source/utils/smbcontrol.c
   branches/SAMBA_3_0_26/source/utils/status.c
   branches/SAMBA_3_0_26/source/web/statuspage.c


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


Rev 12010: Merge upstream. in file:///home/jelmer/bzr.samba/python/

2007-05-08 Thread Jelmer Vernooij
At file:///home/jelmer/bzr.samba/python/


revno: 12010
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
parent: svn-v2:[EMAIL PROTECTED]
committer: Jelmer Vernooij [EMAIL PROTECTED]
branch nick: python
timestamp: Tue 2007-05-08 22:02:13 +0200
message:
  Merge upstream.
removed:
  source/lib/ldb/include/includes.h svn-v2:[EMAIL PROTECTED]
added:
  source/lib/ldb/include/ldb_includes.h svn-v2:[EMAIL PROTECTED]
  source/lib/popt/config.mk  svn-v2:[EMAIL PROTECTED]
modified:
  source/auth/auth_winbind.c svn-v2:[EMAIL PROTECTED]
  source/build/m4/public.m4  svn-v2:[EMAIL PROTECTED]
  source/configure.acsvn-v2:[EMAIL PROTECTED]
  source/dsdb/samdb/ldb_modules/objectguid.c svn-v2:[EMAIL PROTECTED]
  source/dsdb/samdb/ldb_modules/partition.c svn-v2:[EMAIL PROTECTED]
  source/dsdb/samdb/ldb_modules/update_keytab.c svn-v2:[EMAIL PROTECTED]
  source/lib/basic.mksvn-v2:[EMAIL PROTECTED]
  source/lib/charset/util_unistr.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/Makefile.in svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/attrib_handlers.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb.csvn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_attributes.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_controls.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_debug.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_dn.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_ldif.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_match.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_modules.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_msg.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_parse.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/ldb_utf8.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/common/qsort.c  svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/config.mk   svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/examples/ldbreader.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/examples/ldifreader.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_ildap/ldb_ildap.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_ldap/ldb_ldap.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_cache.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_index.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_pack.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_search.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_tdb.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/asq.c   svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/ldb_map.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/ldb_map_inbound.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/ldb_map_outbound.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/ldb_map_private.h svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/objectclass.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/operational.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/paged_results.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/paged_searches.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/rdn_name.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/skel.c  svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/modules/sort.c  svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/samba/ldif_handlers.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ad2oLschema.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/cmdline.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/convert.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbadd.c  svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbdel.c  svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbedit.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbmodify.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbrename.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbsearch.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/ldbtest.c svn-v2:[EMAIL PROTECTED]
  source/lib/ldb/tools/oLschema2ldif.c svn-v2:[EMAIL PROTECTED]
  source/lib/messaging/irpc.hsvn-v2:[EMAIL PROTECTED]
  source/lib/messaging/messaging.c svn-v2:[EMAIL PROTECTED]
  source/lib/popt/samba.m4   svn-v2:[EMAIL PROTECTED]
  source/lib/talloc/talloc.3.xml svn-v2:[EMAIL PROTECTED]
  source/lib/talloc/talloc.c svn-v2:[EMAIL PROTECTED]
  source/lib/talloc/talloc_guide.txt svn-v2:[EMAIL PROTECTED]
  source/lib/talloc/testsuite.c  svn-v2:[EMAIL PROTECTED]
  source/libcli/finddcs.csvn-v2:[EMAIL PROTECTED]
  source/libcli/nbt/nbtsocket.c  svn-v2:[EMAIL PROTECTED]
  source/libnet/libnet_domain.c  svn-v2:[EMAIL PROTECTED]
  source/librpc/rpc/dcerpc_smb.c svn-v2:[EMAIL PROTECTED]
  source/librpc/rpc/dcerpc_smb2.c svn-v2:[EMAIL PROTECTED]
  source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm svn-v2:[EMAIL PROTECTED]
  source/scripting/ejs/smbcalls_rpc.c svn-v2:[EMAIL PROTECTED]
  

Rev 12011: Fix executable bit. in file:///home/jelmer/bzr.samba/python/

2007-05-08 Thread Jelmer Vernooij
At file:///home/jelmer/bzr.samba/python/


revno: 12011
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Jelmer Vernooij [EMAIL PROTECTED]
branch nick: python
timestamp: Tue 2007-05-08 22:22:21 +0200
message:
  Fix executable bit.
modified:
  source/setup/provision*svn-v2:[EMAIL PROTECTED]
=== modified file 'source/setup/provision' (properties changed)


svn commit: samba r22762 - in branches/SAMBA_4_0/source: dsdb/samdb/ldb_modules kdc lib lib/ldb lib/ldb/ldb_map lib/ldb/modules lib/ldb/samba lib/registry libcli nbt_server ntptr param

2007-05-08 Thread jelmer
Author: jelmer
Date: 2007-05-08 21:17:58 + (Tue, 08 May 2007)
New Revision: 22762

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

Log:
Some ldb_map changes:

* Change license to LGPL, so it can be used by non-Samba users of 
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory


Added:
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/ldb_map.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/ldb_map.h
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/ldb_map_inbound.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/ldb_map_outbound.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_map/ldb_map_private.h
   branches/SAMBA_4_0/source/lib/ldb/samba/config.mk
Removed:
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.h
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_inbound.c
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_private.h
Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/config.mk
   branches/SAMBA_4_0/source/kdc/config.mk
   branches/SAMBA_4_0/source/lib/basic.mk
   branches/SAMBA_4_0/source/lib/ldb/Makefile.in
   branches/SAMBA_4_0/source/lib/ldb/config.mk
   branches/SAMBA_4_0/source/lib/registry/config.mk
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/nbt_server/config.mk
   branches/SAMBA_4_0/source/ntptr/config.mk
   branches/SAMBA_4_0/source/param/config.mk


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


Rev 12012: Fix param module. in file:///home/jelmer/bzr.samba/python/

2007-05-08 Thread Jelmer Vernooij
At file:///home/jelmer/bzr.samba/python/


revno: 12012
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Jelmer Vernooij [EMAIL PROTECTED]
branch nick: python
timestamp: Tue 2007-05-08 23:57:44 +0200
message:
  Fix param module.
added:
  source/scripting/python/talloc.c talloc.c-20070508214200-ruf43htj5k9dlrwj-1
modified:
  .bzrignore svn-v2:[EMAIL PROTECTED]
  source/scripting/python/config.mk config.mk-20070425124132-wptmykwi2tvyqm26-1
  source/scripting/python/parammodule.c 
param.c-20070425124147-y6pej29g7xqsb3n6-1
  source/selftest/Samba4.pm  svn-v2:[EMAIL PROTECTED]
=== added file 'source/scripting/python/talloc.c'
--- a/source/scripting/python/talloc.c  1970-01-01 00:00:00 +
+++ b/source/scripting/python/talloc.c  2007-05-08 21:57:44 +
@@ -0,0 +1,30 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   Helper functions for using talloc and Python together
+
+   Copyright (C) Jelmer Vernooij 2007
+   
+   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 scripting/ejs/smbcalls.h
+#include Python.h
+#include param/param.h
+
+TALLOC_CTX *PyMemCtx() {
+   return talloc_autofree_context();
+}

=== modified file '.bzrignore'
--- a/.bzrignore2007-05-05 00:02:47 +
+++ b/.bzrignore2007-05-08 21:57:44 +
@@ -191,3 +191,4 @@
 source/lib/ldb/examples/ldifreader
 source/lib/tdb/bin/tdbbackup
 source/lib/tdb/bin/tdbdump
+source/scripting/python/talloc.h

=== modified file 'source/scripting/python/config.mk'
--- a/source/scripting/python/config.mk 2007-04-27 21:34:20 +
+++ b/source/scripting/python/config.mk 2007-05-08 21:57:44 +
@@ -1,4 +1,9 @@
+[SUBSYSTEM::talloc_python]
+PRIVATE_DEPENDENCIES = LIBTALLOC LIBPYTHON
+OBJ_FILES = talloc.o
+PUBLIC_PROTO_HEADER = talloc.h
+
 [PYTHON::python_param]
-PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG
+PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG talloc_python
 OBJ_FILES = \
parammodule.o

=== modified file 'source/scripting/python/parammodule.c'
--- a/source/scripting/python/parammodule.c 2007-04-27 21:34:20 +
+++ b/source/scripting/python/parammodule.c 2007-05-08 21:57:44 +
@@ -21,42 +21,55 @@
 */
 
 #include includes.h
-#include scripting/ejs/smbcalls.h
+#include scripting/python/talloc.h
 #include Python.h
 #include param/param.h
 
-PyTypeObject noddy_NoddyType;
+staticforward PyTypeObject param_ParamFileType;
 
 typedef struct {
-   PyObject_HEAD
-} noddy_NoddyObject;
-
-static PyObject *loadparm_object(void)
-{
-   PyObject *self = PyObject_New();
-
-   /* FIXME */
-
-   return self;
-}
+   PyObject_HEAD
+} param_ParamFileObject;
 
 static PyObject *param_load(PyObject *self, PyObject *args)
 {
+   int ret;
char *filename;
-   PyObject *param;
+   param_ParamFileObject *param;
 
if (!PyArg_ParseTuple(args, s:new, filename))
return NULL;
 
-   param = PyObject_New();
+   param = PyObject_New(param_ParamFileObject, param_ParamFileType);
+
+   ret = param_read(PyMemCtx(), filename);
+
+   if (ret == -1) {
+   PyErr_SetString(PyExc_TypeError, reading file failed);
+   return NULL;
+   }
 
/* FIXME: Add members:
 *   globals
 *   shares
 */
 
-   return param;
-}
+   return (PyObject *)param;
+}
+
+static void
+param_dealloc(PyObject* self)
+{
+   PyObject_Del(self);
+}
+
+static PyTypeObject param_ParamFileType = {
+   PyObject_HEAD_INIT(NULL) 0,
+   .tp_name = ParamFile,
+   .tp_basicsize = sizeof(param_ParamFileObject),
+   .tp_dealloc = param_dealloc,
+};
+
 
 static PyMethodDef methods[] = {
{ ParamFile, (PyCFunction)param_load, METH_VARARGS, NULL},
@@ -65,6 +78,12 @@
 
 PyDoc_STRVAR(param_doc, Simple wrappers around the smb.conf parsers);
 
+PyObject *loadparm_object(void)
+{
+
+   return NULL; /* FIXME */
+}
+
 PyMODINIT_FUNC initparam(void)
 {
PyObject *mod = Py_InitModule3(param, methods, param_doc);
@@ -72,5 +91,5 @@
return;
 
/* FIXME: Check error code */
-   PyModule_AddObject(mod, default_config, loadparm_object());
+   /*PyModule_AddObject(mod, default_config, loadparm_object());*/
 }


svn commit: samba r22763 - in branches/SAMBA_4_0/source/libnet: .

2007-05-08 Thread mimir
Author: mimir
Date: 2007-05-08 22:04:28 + (Tue, 08 May 2007)
New Revision: 22763

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

Log:
replace talloc_zero calls with composite_create and add more
allocation checks.


rafal


Modified:
   branches/SAMBA_4_0/source/libnet/userinfo.c
   branches/SAMBA_4_0/source/libnet/userman.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/userinfo.c
===
--- branches/SAMBA_4_0/source/libnet/userinfo.c 2007-05-08 21:17:58 UTC (rev 
22762)
+++ branches/SAMBA_4_0/source/libnet/userinfo.c 2007-05-08 22:04:28 UTC (rev 
22763)
@@ -262,24 +262,22 @@
 
if (!p || !io) return NULL;

-   c = talloc_zero(p, struct composite_context);
-   if (c == NULL) goto failure;
+   c = composite_create(p, dcerpc_event_context(p));
+   if (c == NULL) return c;

s = talloc_zero(c, struct userinfo_state);
-   if (s == NULL) goto failure;
+   if (composite_nomem(s, c)) return c;
 
+   c-private_data = s;
+
s-level = io-in.level;
s-pipe  = p;
s-domain_handle = io-in.domain_handle;
s-monitor_fn= monitor;
 
-   c-state= COMPOSITE_STATE_IN_PROGRESS;
-   c-private_data = s;
-   c-event_ctx= dcerpc_event_context(p);
-
if (io-in.sid) {
sid = dom_sid_parse_talloc(s, io-in.sid);
-   if (sid == NULL) goto failure;  
+   if (composite_nomem(sid, c)) return c;
 
s-openuser.in.domain_handle  = s-domain_handle;
s-openuser.in.access_mask= SEC_FLAG_MAXIMUM_ALLOWED;
@@ -288,7 +286,7 @@

/* send request */
s-req = dcerpc_samr_OpenUser_send(p, c, s-openuser);
-   if (s-req == NULL) goto failure;
+   if (composite_nomem(s-req, c)) return c;

s-stage = USERINFO_OPENUSER;
 
@@ -303,7 +301,7 @@

/* send request */
s-req = dcerpc_samr_LookupNames_send(p, c, s-lookup);
-   if (s-req == NULL) goto failure;
+   if (composite_nomem(s-req, c)) return c;

s-stage = USERINFO_LOOKUP;
}
@@ -313,10 +311,6 @@
s-req-async.private = c;
 
return c;
-   
-failure:
-   talloc_free(c);
-   return NULL;
 }
 
 

Modified: branches/SAMBA_4_0/source/libnet/userman.c
===
--- branches/SAMBA_4_0/source/libnet/userman.c  2007-05-08 21:17:58 UTC (rev 
22762)
+++ branches/SAMBA_4_0/source/libnet/userman.c  2007-05-08 22:04:28 UTC (rev 
22763)
@@ -127,16 +127,16 @@
struct composite_context *c;
struct useradd_state *s;
 
+   if (!p || !io) return NULL;
+
/* composite allocation and setup */
-   c = talloc_zero(p, struct composite_context);
+   c = composite_create(p, dcerpc_event_context(p));
if (c == NULL) return NULL;

s = talloc_zero(c, struct useradd_state);
if (composite_nomem(s, c)) return c;

-   c-state= COMPOSITE_STATE_IN_PROGRESS;
c-private_data = s;
-   c-event_ctx= dcerpc_event_context(p);
 
/* put passed arguments to the state structure */
s-domain_handle = io-in.domain_handle;
@@ -145,8 +145,13 @@

/* preparing parameters to send rpc request */
s-createuser.in.domain_handle = io-in.domain_handle;
+
s-createuser.in.account_name  = talloc_zero(c, struct 
lsa_String);
+   if (composite_nomem(s-createuser.in.account_name, c)) return c;
+
s-createuser.in.account_name-string  = talloc_strdup(c, 
io-in.username);
+   if (composite_nomem(s-createuser.in.account_name-string, c)) return c;
+
s-createuser.out.user_handle  = s-user_handle;
s-createuser.out.rid  = s-user_rid;
 



svn commit: samba r22764 - in branches/SAMBA_4_0/source/libnet: .

2007-05-08 Thread mimir
Author: mimir
Date: 2007-05-08 22:08:26 + (Tue, 08 May 2007)
New Revision: 22764

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

Log:
- replace talloc_zero with composite_create
- use event context provided with libnet context instead of creating
  a new one


rafal


Modified:
   branches/SAMBA_4_0/source/libnet/libnet_lookup.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_lookup.c
===
--- branches/SAMBA_4_0/source/libnet/libnet_lookup.c2007-05-08 22:04:28 UTC 
(rev 22763)
+++ branches/SAMBA_4_0/source/libnet/libnet_lookup.c2007-05-08 22:08:26 UTC 
(rev 22764)
@@ -59,22 +59,14 @@
const char** methods;
 
/* allocate context and state structures */
-   c = talloc_zero(NULL, struct composite_context);
+   c = composite_create(ctx, ctx-event_ctx);
if (c == NULL) return NULL;
 
s = talloc_zero(c, struct lookup_state);
-   if (s == NULL) {
-   composite_error(c, NT_STATUS_NO_MEMORY);
-   return c;
-   }
-   
-   /* prepare event context */
-   c-event_ctx = event_context_find(c);
-   if (c-event_ctx == NULL) {
-   composite_error(c, NT_STATUS_NO_MEMORY);
-   return c;
-   }
+   if (composite_nomem(s, c)) return c;
 
+   c-private_data = s;
+
if (io == NULL || io-in.hostname == NULL) {
composite_error(c, NT_STATUS_INVALID_PARAMETER);
return c;
@@ -92,14 +84,11 @@
methods = ctx-name_res_methods;
}
 
-   c-private_data = s;
-   c-state= COMPOSITE_STATE_IN_PROGRESS;
-
/* send resolve request */
cresolve_req = resolve_name_send(s-hostname, c-event_ctx, methods);
+   if (composite_nomem(cresolve_req, c)) return c;
 
composite_continue(c, cresolve_req, continue_name_resolved, c);
-
return c;
 }
 



Build status as of Wed May 9 00:00:02 2007

2007-05-08 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2007-05-08 
00:00:59.0 +
+++ /home/build/master/cache/broken_results.txt 2007-05-09 00:01:12.0 
+
@@ -1,4 +1,4 @@
-Build status as of Tue May  8 00:00:02 2007
+Build status as of Wed May  9 00:00:02 2007
 
 Build counts:
 Tree Total  Broken Panic 
@@ -8,18 +8,18 @@
 ctdb 0  0  0 
 distcc   3  0  0 
 ldb  34 6  0 
-libreplace   33 11 0 
+libreplace   33 10 0 
 lorikeet-heimdal 29 14 0 
-pidl 17 6  0 
-ppp  13 0  0 
+pidl 18 5  0 
+ppp  14 0  0 
 python   0  0  0 
 rsync35 18 0 
 samba0  0  0 
 samba-docs   0  0  0 
-samba-gtk3  3  0 
-samba4   35 27 4 
-samba_3_039 25 0 
+samba-gtk4  3  0 
+samba4   36 30 0 
+samba_3_040 26 0 
 smb-build31 30 0 
-talloc   35 3  0 
-tdb  34 5  0 
+talloc   35 1  0 
+tdb  34 3  0 
 


svn commit: samba r22765 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_25/source/smbd SAMBA_3_0_26/source/smbd

2007-05-08 Thread jra
Author: jra
Date: 2007-05-09 00:52:46 + (Wed, 09 May 2007)
New Revision: 22765

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

Log:
Fix from Alison Winters [EMAIL PROTECTED] for missing return
in sendfilereadbraw.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/reply.c
   branches/SAMBA_3_0_25/source/smbd/reply.c
   branches/SAMBA_3_0_26/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/reply.c
===
--- branches/SAMBA_3_0/source/smbd/reply.c  2007-05-08 22:08:26 UTC (rev 
22764)
+++ branches/SAMBA_3_0/source/smbd/reply.c  2007-05-09 00:52:46 UTC (rev 
22765)
@@ -2238,6 +2238,7 @@
exit_server_cleanly(send_file_readbraw sendfile 
failed);
}
 
+   return;
}
 
   normal_readbraw:

Modified: branches/SAMBA_3_0_25/source/smbd/reply.c
===
--- branches/SAMBA_3_0_25/source/smbd/reply.c   2007-05-08 22:08:26 UTC (rev 
22764)
+++ branches/SAMBA_3_0_25/source/smbd/reply.c   2007-05-09 00:52:46 UTC (rev 
22765)
@@ -2237,6 +2237,7 @@
exit_server_cleanly(send_file_readbraw sendfile 
failed);
}
 
+   return;
}
 
   normal_readbraw:

Modified: branches/SAMBA_3_0_26/source/smbd/reply.c
===
--- branches/SAMBA_3_0_26/source/smbd/reply.c   2007-05-08 22:08:26 UTC (rev 
22764)
+++ branches/SAMBA_3_0_26/source/smbd/reply.c   2007-05-09 00:52:46 UTC (rev 
22765)
@@ -2237,6 +2237,7 @@
exit_server_cleanly(send_file_readbraw sendfile 
failed);
}
 
+   return;
}
 
   normal_readbraw:



Rev 12123: Use context for loadparm functions. in file:///home/jelmer/bzr.samba/SAMBA_4_0/

2007-05-08 Thread Jelmer Vernooij
At file:///home/jelmer/bzr.samba/SAMBA_4_0/


revno: 12123
revision-id: [EMAIL PROTECTED]
parent: svn-v2:[EMAIL PROTECTED]
committer: Jelmer Vernooij [EMAIL PROTECTED]
branch nick: SAMBA_4_0
timestamp: Wed 2007-05-09 03:11:50 +0200
message:
  Use context for loadparm functions.
modified:
  source/client/cifsdd.c svn-v2:[EMAIL PROTECTED]
  source/lib/charset/charcnv.c   svn-v2:[EMAIL PROTECTED]
  source/lib/cmdline/popt_common.c svn-v2:[EMAIL PROTECTED]
  source/lib/cmdline/popt_credentials.c svn-v2:[EMAIL PROTECTED]
  source/param/loadparm.csvn-v2:[EMAIL PROTECTED]
  source/param/loadparm.hsvn-v2:[EMAIL PROTECTED]
  source/param/param.h   svn-v2:[EMAIL PROTECTED]
  source/param/share_classic.c   svn-v2:[EMAIL PROTECTED]
  source/scripting/ejs/smbcalls_config.c svn-v2:[EMAIL PROTECTED]
  source/scripting/ejs/smbscript.c svn-v2:[EMAIL PROTECTED]
  source/torture/basic/base.csvn-v2:[EMAIL PROTECTED]
  source/torture/local/irpc.csvn-v2:[EMAIL PROTECTED]
  source/torture/local/messaging.c svn-v2:[EMAIL PROTECTED]
  source/torture/locktest.c  svn-v2:[EMAIL PROTECTED]
  source/torture/masktest.c  svn-v2:[EMAIL PROTECTED]
  source/torture/raw/context.c   svn-v2:[EMAIL PROTECTED]
  source/torture/raw/samba3misc.c svn-v2:[EMAIL PROTECTED]
  source/torture/rpc/mgmt.c  svn-v2:[EMAIL PROTECTED]
  source/torture/rpc/scanner.c   svn-v2:[EMAIL PROTECTED]
  source/torture/smbtorture.csvn-v2:[EMAIL PROTECTED]
  source/torture/util_smb.c  svn-v2:[EMAIL PROTECTED]
  source/utils/testparm.csvn-v2:[EMAIL PROTECTED]

Diff too large for email (2334 lines, the limit is 1000).


Rev 265: merge from ronnie in http://samba.org/~tridge/ctdb

2007-05-08 Thread tridge

revno: 265
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge
timestamp: Wed 2007-05-09 11:54:37 +1000
message:
  merge from ronnie
added:
  tools/monitor_recovery.sh  
monitor_recovery.sh-20070508220533-oy7s689rcjsu7yte-1
renamed:
  direct/recoverd.c = direct/ctdb_recoverd.c 
recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
modified:
  Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1
  common/cmdline.c   cmdline.c-20070416041216-w1zvz91bkdsgjckw-1
  common/ctdb_control.c  
ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
  common/ctdb_daemon.c   ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
  include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11
  tests/recover.sh   recover.sh-20070502031230-tpuiet6m6tjdotta-1
  direct/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1

revno: 197.1.88
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Wed 2007-05-09 09:59:23 +1000
message:
  add a command line flag to ctdbd to start a recovery daemon.
  
  update the recovery test script to start all ctdb daemons with a 
  recovery daemon

revno: 197.1.87
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Wed 2007-05-09 09:31:53 +1000
message:
  change the name of the recovery daemon to ctdb_recoverd

revno: 197.1.86
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Wed 2007-05-09 08:05:53 +1000
message:
  add a small tool to monitor recovery

revno: 197.1.85
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Tue 2007-05-08 14:51:55 +1000
message:
  we must repoint dmaster to an invalid node during recovery to stop the 
  shortcut from working

revno: 197.1.84
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Tue 2007-05-08 14:42:00 +1000
message:
  fix alignment bug for pulldb

revno: 197.1.83
merged: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Ronnie Sahlberg [EMAIL PROTECTED]
branch nick: ctdb
timestamp: Mon 2007-05-07 08:07:26 +1000
message:
  merge from tridge

Diff too large for email (217, the limit is 200).