Re: RE [Samba] Bug? inherit acls not working as expected

2008-01-07 Thread [EMAIL PROTECTED]


Well, I'll try using default acls.

But from what I remember what ls -l is showing is not what you call 
unix rights for the owner group but the mask value given by getfacl, 
so that you can see what are the maximum rights on that file without 
having to do a getfacl.


If I give rx rights for the group smb-Users on test1 it inherits rx 
rights on test2 as expected, but if I give no rights for the group 
smb-Users on test1 it gets rwx on test2 somehow.



[EMAIL PROTECTED] a écrit :

not sure that you are right.

Samba use both unix right and posix acl right.

the directory test1 have unix right that autorise smb-Users to access-it.
And you cancel it with acl entry = the smb-users group have no right.
But you not have default acl entry, if you spec default acl entry with the 
same right that the acl entry, all directory created under test will take 
the value described by default acl entry.

Else take the unix value.





---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur 
04/01/2008 15:40:47 :



Hello

I'm running Debian Etch with distro kernel  Samba package (2.6.18-5-686
 3.0.24-6etch9).

In my smb.conf I have :

inherit owner = yes
inherit permissions = yes
inherit acls = yes


I start with a dir test1 with no rights for group smb-Users, rx for
group smb-Inf, and rwx for group smb-Bme-Fr :

[EMAIL PROTECTED]:/mnt/temp # ll
total 28
drwxr-xr-x  4 root root   4096 2008-01-04 15:08 .
drwxr-xr-x  4 root root 29 2008-01-04 14:38 ..
drwx--  2 root root  16384 2008-01-04 14:37 lost+found
drwxrwx---+ 2 root smb-Users  4096 2008-01-04 15:25 test1
[EMAIL PROTECTED]:/mnt/temp # getfacl test1/
# file: test1
# owner: root
# group: smb-Users
user::rwx
group::---
group:smb-Inf:r-x
group:smb-Bme-Fr:rwx
mask::rwx
other::---


From a Windows XP client with a user member of the group smb-Bme-Fr I
create a dir test2 in dir test1, then I have :

[EMAIL PROTECTED]:/mnt/temp # ll test1/
total 20
drwxrwx---+ 3 root smb-Users 4096 2008-01-04 15:26 .
drwxr-xr-x  4 root root  4096 2008-01-04 15:08 ..
drwxrwx---+ 2 root smb-Users 4096 2008-01-04 15:26 test2
[EMAIL PROTECTED]:/mnt/temp # getfacl test1/test2/
# file: test1/test2
# owner: root
# group: smb-Users
user::rwx
group::rwx
group:smb-Inf:r-x
group:smb-Bme-Fr:rwx
mask::rwx
other::---


The group smb-Users should have no rights on test2, inherited from the
test1 dir, but it has rwx. A user belonging to smb-Users and smb-Inf has
rwx access and he should have just rx.

I'm using XFS on my Samba server, I tried with ext3 with same results.

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

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


R: [Samba] Invalid request size nsswitch/winbindd

2008-01-07 Thread Gianluca Culot

 -Messaggio originale-
 Da: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
 g] Per conto di Volker Lendecke
 Inviato: mercoledì 19 dicembre 2007 18.06
 A: Charles Marcus
 Cc: '[EMAIL PROTECTED] Samba. Org'
 Oggetto: Re: [Samba] Invalid request size nsswitch/winbindd
 
 On Wed, Dec 19, 2007 at 11:37:36AM -0500, Charles Marcus wrote:
  On 12/19/2007, Volker Lendecke ([EMAIL PROTECTED]) wrote:
  Reboot your box. It's not only smbd, all processes in the system 
  potentially can trigger this error.
  
  Just to be clear - you're saying that anytime Samba is upgraded, I 
  should REBOOT??
 
 Well, I think almost everything uses nss. So it's not a Samba 
 thing, it's a problem that the nss subsystem does not reload 
 the shared libraries when they change. For example if you 
 install a new libnss_ldap.so, you have exactly the same problem.
 
 Volker
 

Hello List

Thanks for all replies 
And sorry for my late reply... I got busy with development problems... But
now I'm back to network

As I understand...
Nss is a shared subsystem in *NIX
As it is shared it can be used be EVERY service / subsystem
As NSS doesn't reload shwared library I should restart every service using
NSS

So far so good.
BUT I'm using NSS tu authenticate login, even to console. And I'd preferr
NOT TO reboot, but to restart service.

How can I restart the login subsystem (i.e. VTI) without rebooting ?
Every other services was already restarted (i.d. postfix dovecot samba
apache ftp proxy squid)

Thanks for every Hint!


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


Re: [Samba] LDAP problem

2008-01-07 Thread Rune Tønnesen
Hello to you

I've had the same problem on my old suse linux enterprise server 9, shutdown 
due to
powerissue.
I got the same errors from workstations (windows XP).
My problem was that corruption of openldaps databasefiles (Berkeley) had 
occured.
I've solved my problem by using the openldap database recovery tools to do a 
manual
recover.

http://www.google.co.uk/search?hl=enq=openldap+recovermeta=

Secondly some journaled filesystems aren't good at recovering corrupted files 
like
berkeley databases due powerfailure.

This problem occur if you enable use of diskcache on your harddrive without a 
UPS,
get one for your one safety and jobsecurity, it just have to be big enough to
shutdown the server in a prober way.

-- 
Rune Tønnesen
Venlig Hilsen/Best Regards


 Hello,

 I have a problem with my PDC server.
 It runs samba + openLDAP. It used to work fine.
 The machine was stopped today because of a power supply failure,
 and since it was restarted i have problems connecting to the domain.

 - The ldap data was restored from a ldif file, the ldap seems to work
 fine. when i type
 ldapsearch -x
 I see the contents of the ldap data.

 - When I try :
 smbclient -L \\pdc -U tleost
 it asks for my password, and i see the samba shares.

 - I tried, as root, on the pdc:
 smbpasswd -w
 which was successful.


 ... anyway, i cannot connect from my windows clients. I get an error
 message telling me the pdc is not available.


 Here is a log i get (/var/log/samba/devel2.log)
 -
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(219)
check_ntlm_password:  Checking password for unmapped user
 [EMAIL PROTECTED] with the new password interface
 [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(222)
check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2008/01/06 15:17:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511)
init_sam_from_ldap: Entry found for user: Invite
 [2008/01/06 15:17:45, 4] lib/substitute.c:automount_server(323)
Home server: servpdc
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 1] auth/auth_util.c:make_server_info_sam(822)
User Invite in passdb, but getpwnam() fails!
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2008/01/06 15:17:45, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1300)
ldapsam_getsampwnam: Unable to locate user [] count=0
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244)
check_sam_security: Couldn't find user '' in passdb file.
 [2008/01/06 15:17:45, 3] auth/auth_winbind.c:check_winbind_security(80)
check_winbind_security: Not using winbind, requested domain [COMPANY]
 was for this SAM.
 [2008/01/06 15:17:45, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password:  Authentication for user [] - [] FAILED with
 error NT_STATUS_NO_SUCH_USER
 [2008/01/06 15:17:45, 3] smbd/process.c:timeout_processing(1336)
timeout_processing: End of file from client (client has disconnected).
 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2008/01/06 15:17:45, 2] smbd/server.c:exit_server(571)
Closing connections
 [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
 [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(76)
yield_connection: tdb_delete for name  failed with error Record does
 not exist.
 [2008/01/06 15:17:45, 3] smbd/server.c:exit_server(614)
 


 Any help would be much appreciated.

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



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


Re: [Samba] Help removing many users

2008-01-07 Thread Rune Tønnesen
How many users do you have?

-- 
Rune Tønnesen
Venlig Hilsen/Best Regards


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 It would be a smart thing to do, but I had problems with it last time I
 tried. It seems that it would randomly stop authenticating people beyond
 a certain point in the file. I didn't get a chance to try this again.

 In any case, HP will not support tdbsam (I'm using CIFS/9000, but this
 question was relevant to Samba in any case) as the recommendation from
 Samba Team is not to use it for over 250 users. Oddly enough, they did
 not say that they wouldn't support smbpasswd.

 In any case, I'm hoping that a serious trim on that file will give me
 the breathing room I need to look at LDAP.

 Rune Tønnesen wrote:
 Hi Ryan

 Why don't you migrate your smbpasswd file to tdb?

 This could be done

 pdbedit -i smbpasswd:/etc/samba/smbpasswd -e tdbsam:/etc/samba/smbpasswd.tdb

 in smb.conf change passdb backend to
 passdb backend = tdbsam:/etc/samba/smbpasswd.tdb

 voila



 - --
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
  |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
  \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFHgYXgmb+gadEcsb4RAgqpAKCvhC4dssUIj17OZy827q8olrCUXgCgkc/N
 KrTHA0ZZAnoxZZkiij/YdD8=
 =mwED
 -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] LDAP problem

2008-01-07 Thread tanguy . leost
Selon Rune Tønnesen [EMAIL PROTECTED]:

 Hello to you

 I've had the same problem on my old suse linux enterprise server 9, shutdown
 due to
 powerissue.
 I got the same errors from workstations (windows XP).
 My problem was that corruption of openldaps databasefiles (Berkeley) had
 occured.
 I've solved my problem by using the openldap database recovery tools to do a
 manual
 recover.

 http://www.google.co.uk/search?hl=enq=openldap+recovermeta=

 Secondly some journaled filesystems aren't good at recovering corrupted files
 like
 berkeley databases due powerfailure.

 This problem occur if you enable use of diskcache on your harddrive without a
 UPS,
 get one for your one safety and jobsecurity, it just have to be big enough to
 shutdown the server in a prober way.

 --
 Rune Tønnesen
 Venlig Hilsen/Best Regards



Hello,


Can anyone help me? I have trouble even finding out what's wrong.
Here is what I get this morning:

- *some* windows clients manage to connect to the domain (very few of them,
though...).

- If I run:
smbclient -L \\pdc -U tleost
as root on the PDC server, it asks for my password and shows me the samba
shares.
I need to know: is this an evidence that smb+ldap are working fine?

- I still get the same error messages as the ones I described in my previous
posts.

- The network *seems* to work fine (clients can access the database servers, for
instance...)

Thanks in advance for your help

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


[Samba] Roaming profiles and case sensitivity

2008-01-07 Thread Niki Hammler

Hi,

Yesterday I found big problems concerning my roaming profiles. They seem
to work on some computers where they are always used, on some other the
did not load properly (i.e. a default profile was loaded instead).

After some debugging with userenv.log I found the very strange problem:
case sensitivity for ntuser.dat!:

[...]
IsCentralProfileReachable:  Testing F:\testuser\ntuser.dat
IsCentralProfileReachable:  Profile is not reachable, error = 2
[...]

The file on Linux was NTUSER.DAT, after renaming it to ntuser.dat it
worked! But it should not matter! Windows is case insensitive!

So on computers where the profile is always used (i.e. it was already
loaded) it worked because Windows took the local copy of ntuser.dat and
copied it back to the server as NTUSER.DAT when signing off. On other
computers where no local copy of ntuser.dat was available, the error
above occured and a default profile was loaded instead.
(This paragraph is my interpretation).

The second issue is that in the meantime the file is called NTUSER.DAT
again and it wasn't me! It was Windows itself!
So Windows on the one hand seems to save the file as NTUSER.DAT but on
the other hand complains if it's called NTUSER.DAT.

Before now, I had the following options in my globals-Section for having
the possibility to rename files from teSt.txt to TeSt.TxT on windows
side:

preserve case = yes
short preserve case = yes
default case = lower
case sensitive = yes

I removed all the lines in order to get default values.

I also found that this problem concerns all other files in the main
directory too (NTUSER.DAT.new, NTUSER.DAT.LOG, ntuser.ini).

My big questions is now how to prevent all types of such stupid (?)
windows errors (concerning case sensitivity) on samba side.

Currently my profiles share looks like this:

[profiles]
comment = Roaming profiles
path = /home/system/smb/profiles
read only = no
create mask = 0600
directory mask = 0700
public = no
browseable = no
; nt acl support = no
csc policy = disable
hide files = desktop.ini/Desktop.ini

If it should matter, here is my complete smb.conf:
http://pastebin.com/m66372d79

Thank you very much in advance!

Best regards,

Niki



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


Re: [Samba] Roaming profiles and case sensitivity

2008-01-07 Thread Francis Galiegue
Le lundi 07 janvier 2008, Niki Hammler a écrit :
 Hi,
 
[...]
 
 preserve case = yes
 short preserve case = yes
 default case = lower
 case sensitive = yes
 

Have you tried case sensitive = no?

-- 
Francis Galiegue, One2team - [EMAIL PROTECTED]
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
+33178945552, +33683877875, http://www.one2team.com
40 avenue Raymond Poincaré - 75116 PARIS
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[OT] Re: R: [Samba] Invalid request size nsswitch/winbindd

2008-01-07 Thread Francis Galiegue
Le lundi 07 janvier 2008, Gianluca Culot a écrit :
 
  -Messaggio originale-
  Da: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]
  g] Per conto di Volker Lendecke
  Inviato: mercoledì 19 dicembre 2007 18.06
  A: Charles Marcus
  Cc: '[EMAIL PROTECTED] Samba. Org'
  Oggetto: Re: [Samba] Invalid request size nsswitch/winbindd
  
  On Wed, Dec 19, 2007 at 11:37:36AM -0500, Charles Marcus wrote:
   On 12/19/2007, Volker Lendecke ([EMAIL PROTECTED]) wrote:
   Reboot your box. It's not only smbd, all processes in the system 
   potentially can trigger this error.
   
   Just to be clear - you're saying that anytime Samba is upgraded, I 
   should REBOOT??
  
  Well, I think almost everything uses nss. So it's not a Samba 
  thing, it's a problem that the nss subsystem does not reload 
  the shared libraries when they change. For example if you 
  install a new libnss_ldap.so, you have exactly the same problem.
  
  Volker
  
 
 Hello List
 
 Thanks for all replies 
 And sorry for my late reply... I got busy with development problems... But
 now I'm back to network
 
 As I understand...
 Nss is a shared subsystem in *NIX
 As it is shared it can be used be EVERY service / subsystem
 As NSS doesn't reload shwared library I should restart every service using
 NSS
 
 So far so good.
 BUT I'm using NSS tu authenticate login, even to console. And I'd preferr
 NOT TO reboot, but to restart service.
 
 How can I restart the login subsystem (i.e. VTI) without rebooting ?
 Every other services was already restarted (i.d. postfix dovecot samba
 apache ftp proxy squid)
 
 Thanks for every Hint!
 

Uhm, AFAIK you don't need to reboot at all, a restart will do fine. When you 
quit a program, nsswitch will dlclose() all libnss_*.so, and dlopen() them on 
startup. So, if you have changed them inbetween, on restart the new version 
WILL be used.

The same goes for /sbin/login: when you log out of a session on a VT, a 
new /sbin/login is started. There really is no need for a restart, unless you 
use nscd, which you shouldn't anyway: it's much more trouble than it's worth.

-- 
Francis Galiegue, One2team - [EMAIL PROTECTED]
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
+33178945552, +33683877875, http://www.one2team.com
40 avenue Raymond Poincaré - 75116 PARIS
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Problem with samba 3.0.25b-33

2008-01-07 Thread Mario Gzuk
Hi,

our window file server running 3.0.25b-33 (X64) (Sernet rpm)
on SLES 9 SP3 has been stoped working.
The log file shows nothing new. No error ...
Only the clients can not connect to the server. After a restart
of smbd it seems to work for a while.
Any idea ?

Any help is welcome !!

-The last logline before was 10:39; at10:42 no connection was 
possible-

Jan  7 10:42:30 modena smbd[9266]: nss_ldap: reconnected to LDAP server 
after 1 attempt(s)
Jan  7 10:42:40 modena smbd[9266]: [2008/01/07 10:42:40, 0] 
smbd/service.c:make_connection(1191)
Jan  7 10:42:40 modena smbd[9266]:   namibia (141.5.19.206) couldn't 
find service c-sid
Jan  7 10:42:42 modena smbd[9784]: nss_ldap: reconnecting to LDAP
server...
Jan  7 10:42:42 modena smbd[9784]: nss_ldap: reconnected to LDAP server 
after 1 attempt(s)
Jan  7 10:42:44 modena smbd[24293]: [2008/01/07 10:42:44, 0] 
lib/util_sock.c:get_peer_addr(1232)
Jan  7 10:42:44 modena smbd[24293]:   getpeername failed. Error was 
Transport endpoint is not connected
Jan  7 10:42:44 modena smbd[10567]: [2008/01/07 10:42:44, 0] 
lib/util_sock.c:get_peer_addr(1232)
Jan  7 10:42:44 modena smbd[10567]:   getpeername failed. Error was 
Transport endpoint is not connected
Jan  7 10:42:44 modena smbd[10567]: [2008/01/07 10:42:44, 0] 
lib/util_sock.c:write_data(562)
Jan  7 10:42:44 modena smbd[10567]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Jan  7 10:42:44 modena smbd[10567]: [2008/01/07 10:42:44, 0] 
lib/util_sock.c:send_smb(769)
Jan  7 10:42:44 modena smbd[10567]:   Error writing 4 bytes to client. 
-1. (Connection reset by peer)
Jan  7 10:42:46 modena smbd[9266]: [2008/01/07 10:42:46, 0] 
smbd/service.c:make_connection(1191)
Jan  7 10:42:46 modena smbd[9266]:   namibia (141.5.19.206) couldn't 
find service c-sid
Jan  7 10:42:52 modena smbd[10534]: nss_ldap: reconnecting to LDAP
server...
Jan  7 10:42:52 modena smbd[10534]: nss_ldap: reconnected to LDAP
server 
after 1 attempt(s)
Jan  7 10:43:04 modena smbd[10569]: [2008/01/07 10:43:04, 0] 
lib/util_sock.c:write_data(562)
Jan  7 10:43:04 modena smbd[10569]:   write_data: write failure in 
writing to client 141.5.16.46. Error Connection reset by peer
Jan  7 10:43:04 modena smbd[10569]: [2008/01/07 10:43:04, 0] 
lib/util_sock.c:send_smb(769)
Jan  7 10:43:04 modena smbd[10569]:   Error writing 4 bytes to client. 
-1. (Connection reset by peer)
Jan  7 10:43:15 modena smbd[9266]: [2008/01/07 10:43:15, 0] 
lib/util_sock.c:write_data(562)
Jan  7 10:43:15 modena smbd[9266]:   write_data: write failure in 
writing to client 141.5.19.206. Error Connection reset by peer
Jan  7 10:43:15 modena smbd[9266]: [2008/01/07 10:43:15, 0] 
lib/util_sock.c:send_smb(769)
Jan  7 10:43:15 modena smbd[9266]:   Error writing 88 bytes to client. 
-1. (Connection reset by peer)
Jan  7 10:43:15 modena smbd[9266]: [2008/01/07 10:43:15, 0] 
lib/util_sock.c:write_data(562)
Jan  7 10:43:15 modena smbd[9266]:   write_data: write failure in 
writing to client 141.5.19.206. Error Broken pipe
Jan  7 10:43:15 modena smbd[9266]: [2008/01/07 10:43:15, 0] 
lib/util_sock.c:send_smb(769)
Jan  7 10:43:15 modena smbd[9266]:   Error writing 75 bytes to client. 
-1. (Broken pipe)
Jan  7 10:44:20 modena smbd[9566]: nss_ldap: reconnecting to LDAP
server...
Jan  7 10:44:20 modena smbd[9566]: nss_ldap: reconnected to LDAP server 
after 1 attempt(s)
Jan  7 10:44:22 modena sshd[10574]: Accepted publickey for root from 
141.5.16.150 port 55694 ssh2
Jan  7 10:44:30 modena nmbd[10010]: [2008/01/07 10:44:30, 0] 
nmbd/nmbd_namequery.c:query_name_response(109)
Jan  7 10:44:30 modena nmbd[10010]:   query_name_response: Multiple (2) 
responses received for a query on subnet 141.5.16.61 for name BGC1d.
Jan  7 10:44:30 modena nmbd[10010]:   This response was from IP 
141.5.16.29, reporting an IP address of 141.5.16.29.
Jan  7 10:44:33 modena smbd[24293]: [2008/01/07 10:44:33, 0] 
lib/util_sock.c:get_peer_addr(1232)
Jan  7 10:44:33 modena smbd[24293]:   getpeername failed. Error was 
Transport endpoint is not connected
Jan  7 10:44:33 modena smbd[10607]: [2008/01/07 10:44:33, 0] 
lib/util_sock.c:get_peer_addr(1232)
Jan  7 10:44:33 modena smbd[10607]:   getpeername failed. Error was 
Transport endpoint is not connected
Jan  7 10:44:33 modena smbd[10607]: [2008/01/07 10:44:33, 0] 
lib/util_sock.c:write_data(562)
Jan  7 10:44:33 modena smbd[10607]:   write_data: write failure in 
writing to client 0.0.0.0. Error Connection reset by peer
Jan  7 10:44:33 modena smbd[10607]: [2008/01/07 10:44:33, 0] 
lib/util_sock.c:send_smb(769)
Jan  7 10:44:33 modena smbd[10607]:   Error writing 4 bytes to client. 
-1. (Connection reset by peer)
Jan  7 10:45:11 modena smbd[9065]: nss_ldap: reconnecting to LDAP
server...
Jan  7 10:45:11 modena smbd[9065]: nss_ldap: reconnected to LDAP server 
after 1 attempt(s)
Jan  7 10:45:34 modena smbd[10638]: [2008/01/07 10:45:34, 0] 
lib/util_tdb.c:tdb_chainlock_with_timeout_internal(84)
Jan  7 10:45:34 modena 

Re: [Samba] SLow cups printing, lots of get-printer-attributes

2008-01-07 Thread Emmanuel Lacour
On Wed, Jan 02, 2008 at 09:45:49AM -0800, Jeremy Allison wrote:
 On Wed, Jan 02, 2008 at 08:52:46AM +0100, Martin Zielinski wrote:
  Hello,
  
  This is the result of asking cups for a comment and location string to 
  sync them between cups and samba.
  I've allready asked the samba-team to replace it with a more general 
  approach but got no response until now.
 
 Sorry, your mail is sat in my inbox. I understand the issue and I'm planning
 to try and get the fix into 3.2.
 

Thanks.

I'm currently trying to create a script to maintain comment/location for
my printers, using rpcclient.
I can change comment with setprinter the_printer_name the_description
without problem.
But when I try this for setting the location, I get WERR_ACCESS_DENIED:

setprinterdata the_printer_name string location the_location


any idea to solve this would be welcome ;)

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


[Samba] net groupmap add problems since 3.0.23 version

2008-01-07 Thread Schreiber, Martin
 
Hello List,
 
As I didnt receive any answers on my first request regarding the new groupmap 
mechanism since samba version 3.0.23 I try it once again and more detailed.
 
Situation before upgrade to samba 3.0.28:
 
We run a solaris 9 server with samba 3.0.21 which serves a share named backup 
to which all domain users belonging to a special active directory group can 
connect and save their mail db and other data. This runs without any 
interaction, just net use x: \\servername\sharename. No users exist in 
/etc/passwd , access is handled only by Active Directory groups and the 
associated unix group(s). That has been realised via the net groupmap add 
command and worked perfectly over the years since samba version 3.0.7a ! .
 
Due to security riscs in samba we where forced to upgrade to version 3.0.28 
(all the same problems since version 3.0.24) I studied the whats changed logs 
and samba howto`s and think I ´ve done it right , but I fear I ´ve overlooked 
something essential.
 
Output from net groupmap list:
---
 # net groupmap list
Domain Users (S-1-5-21-1454471165-527237240-682003330-513) - users
sbs_ors (S-1-5-21-1454471165-527237240-682003330-133792) - sbs_ors_ux
Domain Guests (S-1-5-21-1454471165-527237240-682003330-514) - nobody
Administrators (S-1-5-32-544) - 10
adv (S-1-5-21-1454471165-527237240-682003330-48325) - adv
Domain Admins (S-1-5-21-1454471165-527237240-682003330-512) - ntadmin
Users (S-1-5-32-545) - 11

 
output from net groupmap add command:
 

 
 # net groupmap add sid=S-1-5-21-1454471165-527237240-682003330-133792 
ntgroup=sbs_ors unixgroup=sbs_ors_ux type=d
Successfully added group sbs_ors to the mapping db as a domain group

 
This is a major group with some nested groups and I ´m a member of one , Since 
version 3.0.7a nested groups are supported , but I ´m not able to connect , all 
I get is a pop up login window , also net view \\servername fails with access 
denied.
Now my question ; does that configuration is still supported at all , or has it 
broken due to security riscs ; if not pls tell me how to proceed with new samba 
version, what did I overlook
 
Best Regards  Martin  Schreiber
 
 
 
 

  Martin Schreiber

  Siemens IT Solutions and Services GmbH

  Gudrunstrasse 11 
  A-1101 Wien 
   Tel: +43(0)51707 47565
  Fax: +43(0) 51707 57560
 
  [EMAIL PROTECTED] 
  http://www.siemens.at/it-solutions

Siemens IT Solutions and Services GmbH, DVR 1009192, FN 180547k, Handelsgericht 
Wien, Firmensitz Wien

Wichtiger Hinweis: Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder 
sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail 
irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine 
Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte 
benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.

Important Note: This e-mail may contain trade secrets or privileged, 
undisclosed or otherwise confidential information. If you have received this 
e-mail in error, you are hereby notified that any review, copying or 
distribution of it is strictly prohibited. Please inform us immediately and 
destroy the original transmittal. Thank you for your cooperation

 

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


Re: [Samba] Roaming profiles and case sensitivity

2008-01-07 Thread Niki Hammler

Francis Galiegue schrieb:

Le lundi 07 janvier 2008, Niki Hammler a écrit :

Hi,


[...]

preserve case = yes
short preserve case = yes
default case = lower
case sensitive = yes



Have you tried case sensitive = no?


Hi,

Thank you for your reply.

But as I said, I *had* these settings before. I removed them now (so the 
default should be case sensitive = no).


The profile loads now but I'm not sure if it works because I renamed the 
files or this is by accident.


Also, I read somewhere in the Samba documentation that the case 
sensitivity for NTuser* matters on the linux drive (which I can't 
understand).


My question would be what are the safe options (or if they are correct 
now) for the profile folder in order to completely eliminate any 
possibility of such stupid errors in future.



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


Re: [Samba] SLow cups printing, lots of get-printer-attributes

2008-01-07 Thread Martin Zielinski

Hello Emmanuel,

If your can compile the sources yourself, you could try the attached 
diff to extend the setprinter call of rpcclient.


usage: setprinter comment [location]

CAVE: It's just a may-be-buggy patch from me. Not from the samba team.
Use at your own risk! :-)

Bye,

Martin

Emmanuel Lacour schrieb:

On Wed, Jan 02, 2008 at 09:45:49AM -0800, Jeremy Allison wrote:

On Wed, Jan 02, 2008 at 08:52:46AM +0100, Martin Zielinski wrote:

Hello,

This is the result of asking cups for a comment and location string to 
sync them between cups and samba.
I've allready asked the samba-team to replace it with a more general 
approach but got no response until now.

Sorry, your mail is sat in my inbox. I understand the issue and I'm planning
to try and get the fix into 3.2.



Thanks.

I'm currently trying to create a script to maintain comment/location for
my printers, using rpcclient.
I can change comment with setprinter the_printer_name the_description
without problem.
But when I try this for setting the location, I get WERR_ACCESS_DENIED:

setprinterdata the_printer_name string location the_location


any idea to solve this would be welcome ;)




--- samba-3.0.28.orig/source/rpcclient/cmd_spoolss.c2007-11-15 
04:15:04.0 +0100
+++ samba-3.0.28/source/rpcclient/cmd_spoolss.c 2008-01-07 13:12:14.0 
+0100
@@ -476,17 +476,28 @@
fstring printername,
servername,
user,
-   comment;
+   comment,
+   location;
 
-   if (argc == 1 || argc  3) {
-   printf(Usage: %s printername comment\n, argv[0]);
+/* Added the option to change the printer location */
+   
+   if (argc == 1 || argc  4) {
+   printf(Usage: %s printername comment [location]\n, argv[0]);
 
return WERR_OK;
}
 
+   comment[0] = '\0';
+   location[0] = '\0';
+   
/* Open a printer handle */
-   if (argc == 3) {
-   fstrcpy(comment, argv[2]);
+   if (argc = 3) {
+   if (argv[2][0] != '-' || argv[2][1] != '\0') {
+   fstrcpy(comment, argv[2]);
+   }
+   }
+   if (argc  3) {
+   fstrcpy(location, argv[3]);
}
 
slprintf(servername, sizeof(servername)-1, %s, 
cli-cli-desthost);
@@ -513,12 +524,15 @@
 
/* Modify the comment. */
init_unistr(ctr.printers_2-comment, comment);
+   /* Modify the location. */
+   if (argc  3) 
+   init_unistr(ctr.printers_2-location, location);
ctr.printers_2-devmode = NULL;
ctr.printers_2-secdesc = NULL;
 
result = rpccli_spoolss_setprinter(cli, mem_ctx, pol, info_level, 
ctr, 0);
if (W_ERROR_IS_OK(result))
-   printf(Success in setting comment.\n);
+   printf(Success in setting comment%s.\n, argc3? and 
location:);
 
  done:
if (opened_hnd)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Another Uploading Printer drivers problem.

2008-01-07 Thread Adam Tauno Williams
 Misinterpretation. With Samba, the only thing you can do is have them
 available for download. The drivers always run on the client side
 (HP-UX, in my example, isn't actually going to do anything server-side
 with the drivers). 

That isn't entirely true;  some Win32 drivers do run code on both the
client and the server,  those kind of drivers will not work with Samba.
Drivers at least modify registry settings on the server which can also
fail on Samba - although they usually work.  Normal printer drivers like
those for HP Laserjets, etc... should work without an issue.  Drivers
for multi-function devices such as document centers frequently don't
work or work only if the user avoids certain features.

 Use client driver means something like completely
 ignore the server side drivers and use a local one.

IMHO, a better interpretation of user client driver is it breaks
print serving and it shouldn't be used unless you explicitly know [and
understand] why you DO want to use it.

-- 
Adam Tauno Williams, Network  Systems Administrator
Consultant - http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

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


[Samba] HPLASER Jet printer setup in Opensuse 10.3 over network

2008-01-07 Thread Vijay Thakur
Dear Experts,

i have configured HP LASER JET 1010 printer on Opensuse 10.3 samba-3.0.26a-3 
and cups-1.2.12-22). This printer is working very fine locally.  But When i am 
trying to configure this printer over mix network of MS windows XP or Upensuse 
10.3, It is giving printing in MS Windows XP after a long time.  When I am 
trying to browse the printer in explorer, i am able to see the printer with 
text that access denied and unable to connect. 

In opensuse's network PC, the printer is configured, but there is no printing.

help !!!

Vijay Thakur 
Allengers Medical Systems Ltd.
Chandgiarh
   
-
 Chat on a cool, new interface. No download required. Click here.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbspool with cups

2008-01-07 Thread John Hodrien

I'm trying to use CUPS with kerberos to forward on to smbspool.  CUPS appears
to make the assumption that smbspool will use the environment variable
KRB5CCNAME, but it doesn't appear to, instead looking for the submitting
user's credential in the expected location in /tmp.  This isn't much use in my
case where the user's credential has been saved to /tmp in a different
location, owned by root.

I've currently just inserted code that skips trying to find the user's
credential cache if KRB5CCNAME is already defined.

Is there a better wat I should be doing this?

jh

--
Forgive, O Lord, my little jokes on Thee
 And I'll forgive Thy great big one on me.  -- Robert Frost
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] LDAP problem

2008-01-07 Thread tanguy . leost
Selon Rune Tønnesen [EMAIL PROTECTED]:


 I've solved my problem by using the openldap database recovery tools to do a
 manual
 recover.

 http://www.google.co.uk/search?hl=enq=openldap+recovermeta=



You're right, this works.
I managed to repair my database, thanks to you.
My ldap runs as it was before the 'crash'.

Unfortunately it is still impossible to connect
from a window station.

By the way, my ldap manager is 'Manager';
I noticed that I have no entry for Manager when
I perform a ldapsearch.
Is it normal?



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


[Samba] samba - wins? dns ? ldap?

2008-01-07 Thread infolistas listas
Hello users,
I'm having the floowing problem, I just configured a new machine with
ubuntu+ ldap + samba, all conections are OK!, I've set up the users and
machines for the domain , testparm says everything is ok, but when trying to
add a windows 2000 machine on the domain I get a message that alerts a
possible problem with the dns.
I thought I forgot to configure the wins but it was there.
ANy Ideias? the message is in Portugues and I'm not sure my translation will
follow the english standards

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


Re: [Samba] samba - wins? dns ? ldap?

2008-01-07 Thread Mike Eggleston
On Mon, 07 Jan 2008, infolistas listas might have said:

 Hello users,
 I'm having the floowing problem, I just configured a new machine with
 ubuntu+ ldap + samba, all conections are OK!, I've set up the users and
 machines for the domain , testparm says everything is ok, but when trying to
 add a windows 2000 machine on the domain I get a message that alerts a
 possible problem with the dns.
 I thought I forgot to configure the wins but it was there.
 ANy Ideias? the message is in Portugues and I'm not sure my translation will
 follow the english standards

Please post the exact error message.

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


[Samba] msdfs problem

2008-01-07 Thread Yan Seiner
I think I've set up my msdfs correctly, but I keep getting the following 
message when I try to connect to it:


[2008/01/07 05:00:45, 0] smbd/service.c:make_connection_snum(1003)
 '/etc/samba/xyz' does not exist or permission denied when connecting 
to [beaufort] Error was No such file or directory


I have kahn in both hosts and lmhosts.

Any suggestions on what I am doing wrong?

[EMAIL PROTECTED]:/etc/samba# ls -l
-rw-r--r--1 root root   14 Jan  7 01:38 lmhosts
-rw---1 root root 8192 Jan  6 00:36 secrets.tdb
-rw-r--r--1 root root 1033 Jan  7 05:00 smb.conf
-rw---1 root root  103 Jan  7 04:55 smbpasswd
drwxr-xr-x1 root root0 Jan  7 02:08 x
lrwxrwxrwx1 root root   15 Jan  7 04:10 xyz - 
msdfs:kahn\data

[EMAIL PROTECTED]:/etc/samba#


#=== Global Settings 
=

[global]
syslog = 0
syslog only = yes
wins support = yes
# wins server = 10.8.0.1
dns proxy = yes
workgroup = tnddc.lan
server string = VPN Server %h
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
guest account = nobody
local master = yes
domain master = yes
name resolve order = lmhosts hosts wins bcast
log file = /var/log/samba/log.smbd
# hosts allow = 127. 192.168.
interfaces = 192.168.128.0/24 10.8.0.0/255.255.255.0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Share Definitions 
==

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

[tmp]
comment = /tmp
path = /tmp
browseable = yes
public = yes
only guest = no
writeable = no
printable = no

[beaufort]
   path = /etc/samba/xyz
   msdfs root = true
   guest ok = yes

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


Re: [Samba] Help removing many users

2008-01-07 Thread Ryan Novosielski

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

After that sweep, ~9000. However, that's a slight red herring, as only a
fraction of that number will ever be logged in simultaneously (maybe 100
maximum?). It is an entire campus full of students, but they only log in
via 2 computer labs with a total of maybe 70 PC's.

Rune Tønnesen wrote:
| How many users do you have?
|

- --
~  _  _ _  _ ___  _  _  _
~ |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
~ |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
~ \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgkSgmb+gadEcsb4RAjMcAKCJh117ZWL7q8f/iYm9jrIPRQIp6wCdGGh3
Y4GF7QfFNcZZDTf5Ta3Us14=
=cmMQ
-END PGP SIGNATURE-

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


[Samba] Multiple mount instead of remount?

2008-01-07 Thread Kyle Schmitt
I'm having issues trying to remount any shares using samba.

Super Short version
mount -o remount /some_windows_share creates a duplicate mount instead
of properly remounting.

Full details...
I have many shares served off of NT4 boxes, mounted via samba on a
linux box (RHEL 4).
Since long dormant (12 hour) shares from one server in particular
always have problems for a few seconds when accessing files, I altered
my scripts to mount -o remount.  I expected it would freshen the
mount.  Instead of doing a remount however, it appears to be mounting
_over_ the original.   Not really what I wanted.  Any idea why it's
doing this?  I wanted to avoid doing an unmount then a mount, as some
of these scripts may, on occasion, be run in parallel.  I know at
least on local drives remounting while in use (at least for read
operations), doesn't appear to cause problems..

Thanks,
Kyle

PS: I seem to be having trouble posting to this list, so if this
message appears (in various forms) more than once, I apologize.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Multiple mount instead of remount?

2008-01-07 Thread Francis Galiegue
Le lundi 07 janvier 2008, Kyle Schmitt a écrit :
 I'm having issues trying to remount any shares using samba.
 
 Super Short version
 mount -o remount /some_windows_share creates a duplicate mount instead
 of properly remounting.
 
 Full details...
 I have many shares served off of NT4 boxes, mounted via samba on a
 linux box (RHEL 4).
 Since long dormant (12 hour) shares from one server in particular
 always have problems for a few seconds when accessing files, I altered
 my scripts to mount -o remount.  I expected it would freshen the
 mount.  Instead of doing a remount however, it appears to be mounting
 _over_ the original.   Not really what I wanted.  Any idea why it's
 doing this?  I wanted to avoid doing an unmount then a mount, as some
 of these scripts may, on occasion, be run in parallel.  I know at
 least on local drives remounting while in use (at least for read
 operations), doesn't appear to cause problems..
 

You can always make these scripts avoid running in parallel in the first 
place, say, using a sentinel file (not under the mount point of course).

As to why smbfs (or cifs?) acts this way, good question... On both a local, 
ext3 mounted filesystem and a remote, NFS mounted filesystem, when I attempt 
to remount, I don't see any duplicates.

But what does /proc/mounts say? It may well be different of what the mount 
command says, since mount reads /etc/mtab.

-- 
Francis Galiegue, One2team - [EMAIL PROTECTED]
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
+33178945552, +33683877875, http://www.one2team.com
40 avenue Raymond Poincaré - 75116 PARIS
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Unmatched entries - Failed to Create Administrators/Users/

2008-01-07 Thread Boaz Bezborodko

With a recent upgrade to Centos 4.6 my system's Samba was also upgraded
to 3.0.25b.  Now I get the following errors in my log every day.



**Unmatched Entries**
auth/auth_util.c:create_builtin_administrators(792)  
create_builtin_administrators: Failed to create Administrators : 1430 Time(s)
auth/auth_util.c:create_builtin_users(758)  create_builtin_users: Failed to 
create Users : 1430 Time(s)
lib/util_sock.c:get_peer_addr(1232)  getpeername failed. Error was Transport 
endpoint is not connected : 30 Time(s)
libsmb/clientgen.c:cli_receive_smb(112)  Receiving SMB: Server stopped 
responding : 774 Time(s)
nsswitch/idmap.c:idmap_alloc_init(679)  ERROR: Initialization failed for alloc 
backend, deferred! : 2860 Time(s)
param/loadparm.c:lp_do_parameter(3523)  Global parameter guest account found in 
service section! : 2 Time(s)



Here is my config:


[global]
workgroup = MWG
netbios name = MWG-SERVER
server string = MWG-Samba
interfaces = 192.168.1.0/24
debug uid = Yes
time server = Yes
printcap name = cups
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/gpasswd -a '%u' '%g'
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody 
'%u'
logon script = stdlogon.bat
	logon path = 
	logon drive = q:
	logon home = 
	domain logons = Yes

os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
path = /data/printspool
admin users = @Domain Admins
printer admin = @smbadmins
hide dot files = No
share modes = No


Currently the system seems to be working properly except for the errors. 
 What do I need to do to fix this?


Boaz

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


[Samba] Propose mount.cifs/smbfs able to mount the child folder of share folder

2008-01-07 Thread kstan
Hi Samba team,

I feel user will feel more confortable when they can mount folder (via
mount.cifs or mount.smbfs) under particular shared folder.

Example:
I have a share folder call department, all department's folder arrange
inside

so I have a share folder call \\server\department

if I have a linux client under purchasing, I 2 command to get the
correct place, and I feel it is giving more trouble

command 1
===
mount -t cifs  -o (with necessary
option) //server/department /sharefolder/.pathtoatempararyfolder


command 2:
==
ln -s /sharefolder/.pathtoatempararyfolder/purchasing


It is much more better if we can simplied the share via this command:
mount -t cifs  -o (with necessary
option) //server/department/purchasing 
/home/purchasinguser/Desktop/mydepartmentdata

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


Re: [Samba] msdfs problem

2008-01-07 Thread John Drescher
On Jan 7, 2008 10:29 AM, Yan Seiner [EMAIL PROTECTED] wrote:
 I think I've set up my msdfs correctly, but I keep getting the following
 message when I try to connect to it:

 [2008/01/07 05:00:45, 0] smbd/service.c:make_connection_snum(1003)
   '/etc/samba/xyz' does not exist or permission denied when connecting
 to [beaufort] Error was No such file or directory

 I have kahn in both hosts and lmhosts.

 Any suggestions on what I am doing wrong?

 [EMAIL PROTECTED]:/etc/samba# ls -l
 -rw-r--r--1 root root   14 Jan  7 01:38 lmhosts
 -rw---1 root root 8192 Jan  6 00:36 secrets.tdb
 -rw-r--r--1 root root 1033 Jan  7 05:00 smb.conf
 -rw---1 root root  103 Jan  7 04:55 smbpasswd
 drwxr-xr-x1 root root0 Jan  7 02:08 x
 lrwxrwxrwx1 root root   15 Jan  7 04:10 xyz -
 msdfs:kahn\data
 [EMAIL PROTECTED]:/etc/samba#

xyz should be a folder and inside this folder you put the msdfs link.

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


[Samba] Samba on Linux + Windows Server 2003 R2 / ADS: Clients can connect using IP but no hostname

2008-01-07 Thread Bogdan Taru



Hello everyone,

 I'm trying to make Samba authenticate clients against an Active  
Directory Server running on W2k3 R2. Samba is running on a Debian Linux:


virtual-101:~# dpkg -l | egrep -i '(samba|kerb)'
ii  krb5-config   1.17   Configuration  
files for Kerberos Version 5
ii  krb5-user 1.6.dfsg.3~beta1-2 Basic  
programs to authenticate using MIT Kerberos
ii  libkadm55 1.6.dfsg.3~beta1-2 MIT Kerberos  
administration runtime libraries
ii  libkrb53  1.6.dfsg.3~beta1-2 MIT Kerberos  
runtime libraries
ii  samba 3.0.28-1   a LanManager- 
like file and printer server for Unix
ii  samba-common  3.0.28-1   Samba common  
files used by both the server and the client


 This is the Samba and Kerberos configuration:

virtual-101:~# egrep -v '^(#|;|$)' /etc/samba/smb.conf
[global]
   workgroup = INTERNAL
   realm = INTERNAL.TESTLABOR.XX.COM
   preferred master = no
   server string = Samba Public Server
   include = /etc/samba/dhcp.conf
   dns proxy = no
   log file = /var/log/samba/log.%m
   log level = 5
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
security = ADS
   encrypt passwords = yes
   passdb backend = tdbsam
   obey pam restrictions = yes
   invalid users = root
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX 
\spassword:* %n\n *password\supdated\ssuccessfully* .

   printcap name = cups
   printing = cups
   socket options = TCP_NODELAY
   idmap uid = 1-2
   idmap gid = 1-2
   winbind enum groups = yes
   winbind enum users = yes
   winbind separator = +
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   public = no
   writable = no
   create mode = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
[ftp]
   comment = Public FTP Resource
   writable = no
   locking = no
   path = /home/ftp
   public = yes
   guest ok = no


virtual-101:~# egrep -v '^$' /etc/krb5.conf
[libdefaults]
default_realm = INTERNAL.TESTLABOR.XX.COM
default_tgs_enctypes = des-cbc-crc des-cbc-md5
default_tkt_enctypes = des-cbc-crc des-cbc-md5
permitted_enctypes = des-cbc-crc des-cbc-md5
[realms]
INTERNAL.TESTLABOR.XX.COM = {
kdc = virtual-100.internal.testlabor.xx.com
#admin_server = virtual-100.internal.testlabor.xx.com
}
[domain_realms]
.kerberos.server = INTERNAL.TESTLABOR.XX.COM


 From the Samba Server, I was able to get a Kerberos ticket from the  
AD:

virtual-101:~# kinit  [EMAIL PROTECTED]
Password for [EMAIL PROTECTED]:
virtual-101:~# klist -e
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: [EMAIL PROTECTED]

Valid starting ExpiresService principal
01/07/08 17:06:58  01/08/08 03:07:00  krbtgt/[EMAIL PROTECTED]
	renew until 01/08/08 17:06:58, Etype (skey, tkt): DES cbc mode with  
CRC-32, DES cbc mode with CRC-32


Kerberos 4 ticket cache: /tmp/tkt0
klist: You have no tickets cached

 From the Samba Server I am able to mount a local resource, either by  
using the Kerberos ticket or by authentication with a Domain User:

virtual-101:~# smbclient -k //virtual-101/ftp
OS=[Unix] Server=[Samba 3.0.28]
smb: \
virtual-101:~# smbclient  -U INTERNAL+test1 //virtual-101/ftp
Password:
Domain=[INTERNAL] OS=[Unix] Server=[Samba 3.0.28]
smb: \

 The problem is that from a Windows 2k workstation (also part of the  
Domain), the mapping of the Samba resource is possible only when using  
the IP adress of the Samba server (net use y: \\10.10.0.101\ftp / 
USER:INTERNAL\test1) but not when using the Hostname of the Samba  
server (net use y: \\virtual-101\ftp /USER:INTERNAL\test1). When  
using the Hostname of the Samba server, this is what Samba is logging:


..
[2008/01/07 17:46:37, 2] smbd/sesssetup.c:setup_new_vc_session(1200)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would  
close all old resources.
[2008/01/07 17:46:37, 3] smbd/ 
sesssetup.c:reply_sesssetup_and_X_spnego(1029)

  Doing spnego session setup
[2008/01/07 17:46:37, 3] smbd/ 
sesssetup.c:reply_sesssetup_and_X_spnego(1060)
  NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0]  
PrimaryDomain=[]

[2008/01/07 17:46:37, 5] smbd/sesssetup.c:parse_spnego_mechanisms(667)
  parse_spnego_mechanisms: Got OID 1 2 840 48018 1 2 2
[2008/01/07 17:46:37, 5] smbd/sesssetup.c:parse_spnego_mechanisms(667)
  parse_spnego_mechanisms: Got OID 1 3 6 1 4 1 311 2 2 10
[2008/01/07 17:46:37, 3] smbd/sesssetup.c:reply_spnego_negotiate(697)
  reply_spnego_negotiate: Got secblob of size 1236
[2008/01/07 17:46:37, 3] libads/ 
kerberos_verify.c:ads_secrets_verify_ticket(279)
  ads_secrets_verify_ticket: enc type [23] 

Re: Fw: [Samba] printer admin option replacement on stand alone (not domain) print server running version 3.0.25

2008-01-07 Thread Vickie L. Kidder
I was able to get my print drivers to upload after doing the following.

1) Checked that the settings for the printer driver upload directory were 
set to allow my account to write to it.
/# ls -l /s01/samba
drwxrwsr-x   3 vlkidder samba   512 Jan 06 21:45 drivers

2) Removed the printer admin option from smb.conf file. 
These are my current smb.conf settings related to printing.
; Global Settings for Printers
  printing = aix
  load printers = yes
  printcap name = /etc/printcap
  print command = /usr/bin/lpr -P%p -h -r %s
  lpq command = enq -e -As -P'%p'
  use client driver = no
[printers]
   comment = samba printers
   path = /var/spool/samba
   printable = yes
   browseable = no
   guest ok = no 
   public = no
   read only = yes
   writeable = no
[print$]
   comment = samba printer driver upload
   path = /s01/samba/drivers
   write list = vlkidder
   browseable = yes
   guest ok = no
   read only = yes


3) Ran net rpc rights grant vlkidder SePrintOperatorPrivilege to grant 
my account vlkidder printer admin rights.
I'm not sure why, but when I run a net rpc command I get this the error 
message 
Could not connect to server 127.0.0.1 The username or password was not 
correct. Connection failed: NT_STATUS_LOGON_FAILURE.  There is a password 
for root account in the smbpasswd file. If I reset the samba password for 
root using smbpasswd root, I can run the net rpc commands with no 
problem.


That's it.  Now driver upload works fine.

The error I originally posted _spoolss_addprinterdriver: Failed to send 
message about upgrading driver[]! still shows up in my log file. The 
driver uploads and I'm able to modify the printer properties, connect the 
printer to a client computer, and print, so I'm not going to worry about 
it.


Richard Chapman [EMAIL PROTECTED] wrote on 01/05/2008 06:42:11 
PM:

 Hi Vickie
 
 I have been following your thread in the samba list - and I think I am 
 wrestling with a similar problem. I want to upload windows printer 
 drivers to a workgroup samba server. My samba is also 3.0.25. on a 
 Centos 5.1 server.
 
 I have put the enable privilege = yes into smb.conf - and restarted 
samba.
 However - unlike you - when I try the command:
 
 #net rpc rights grant 'rhc' SePrintOperatorPrivilege
 And give the root password, I get the error:
 Failed to grant privileges for rhc (NT_STATUS_ACCESS_DENIED)
 
 rhc is a user on both the linux server and a windows client 
 machine - though I must admit I am confused about how the two user5 
 groups relate to each other in a workgroup samba setup.
 
 Curiously - if I attempt to grant the right to a non-existent user -
 I do not get an error.
 
 Since you seem to be trying to achieve the same thing - you may have
 encountered similar problems. Can you throw any light on this problem?
 
 Thanks
 
 Richard.
 
 
 
 
 
 Vickie L. Kidder wrote:
  Thanks to those who responded to my original question.
 
  I ran this command and it accepted it after I provided the root 
password.
  # net rpc rights grant 'vlkidder' SePrintOperatorPrivilege
 
  Checked to see if 'vlkidder' had printer admin privilege and it seems 
ok.
  # net rpc rights list accounts
  Password:
  BUILTIN\Print Operators
  No privileges assigned
 
  SMBTEST\vlkidder
  SePrintOperatorPrivilege
 
  BUILTIN\Account Operators
  No privileges assigned
 
  BUILTIN\Backup Operators
  No privileges assigned
 
  BUILTIN\Server Operators
  No privileges assigned
 
  BUILTIN\Administrators
  SeMachineAccountPrivilege
  SeTakeOwnershipPrivilege
  SeBackupPrivilege
  SeRestorePrivilege
  SeRemoteShutdownPrivilege
  SePrintOperatorPrivilege
  SeAddUsersPrivilege
  SeDiskOperatorPrivilege
 
  Everyone
  No privileges assigned
 
  After using the Printer Wizard from Windows to upload the driver, it 
goes 
  through the process of copying the driver files to the [print$] 
directory, 
  but there is still an error in my log file.
 
_spoolss_addprinterdriver: Failed to send message about upgrading 
driver 
  []!
  [2007/12/27 15:59:26, 1] smbd/service.c:close_cnum(1230)
vlkidder-06212 (10.1.3.8) closed connection to service print$
 
 
 
  
  I'm trying to upload print drivers to a stand-alone samba server 
running 
  
 
  
  version 3.0.25.
  The server is part of a workgroup (not domain).
 
  My log files show messages that it cannot update the driver.
  Before I had the printer admin option set in my smb.conf file to 
allow a 
  
 
  
  non-root user to do the printer admin and everything worked fine.
 
  I have read the Samba How To Notes section on important changes since 

  
  3.x, 
  
  it says the following.
  Group mappings are essential only if the Samba server is running as 
a 
  PDC/BDC.  Stand-alone servers do not require these group mappings..
 
  Can anyone help me to understand what I need to do to allow a 
non-root 
  user to perform printer admin functions on a stand-alone server?
 
  -- 
  To unsubscribe from this list go to the following URL and read the
  

Re: [Samba] LDAP problem

2008-01-07 Thread Rune Tønnesen

[EMAIL PROTECTED] skrev:

Selon Rune Tønnesen [EMAIL PROTECTED]:


  

I've solved my problem by using the openldap database recovery tools to do a
manual
recover.

http://www.google.co.uk/search?hl=enq=openldap+recovermeta=





You're right, this works.
I managed to repair my database, thanks to you.
My ldap runs as it was before the 'crash'.

Unfortunately it is still impossible to connect
from a window station.

By the way, my ldap manager is 'Manager';
I noticed that I have no entry for Manager when
I perform a ldapsearch.
Is it normal?



  

The LDAP problem:

There should be a manager account, which is also defined in the 
/etc/openldap/slapd.conf otherwise you need to create one.
The manager account is used to add accounts for users and workstation to 
the ldap database.


The connection problem:
Have you tried to turnoff all the workstations restart samba and see 
whether they still won't connect?
E.g. try add a computer to the domain and see whether this is possible 
or not.
Has the output from the logs changed since ldap got up and running? is 
there any erros when smb and nmb is restartet e.g. like can't bind to ldap.


--
Rune Tønnesen
Bedste Hilsner/Best Regards


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


Re: [Samba] Samba 4 Alpha - Compile on Debian etch

2008-01-07 Thread Ryan Novosielski

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sounds like you need python-dev, or equivalent Debian package installed.

Chris Robinson wrote:
| Hi
|
| I keep getting the following errors when I do ./configure:
|
| configure: WARNING: No python-config found
|
| Developer mode:
| no Automatic
| dependencies: no (install GNU make = 3.81 and see
| --enable-automatic-dependencies)

|
| Building shared libraries:
| yes Using shared
| libraries internally: no (specify
| --enable-dso)

|
| To run binaries without installing, set the following environment
| variable: LD_LIBRARY_PATH=./bin/shared
| I have set and exported LD_LIBRARY_PATH
|

- --
~  _  _ _  _ ___  _  _  _
~ |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
~ |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
~ \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgmx/mb+gadEcsb4RArcpAKDG2LlQ552ePLmkWnqm+PLzm4EStACfZNOc
+0ySDi493Lmqtw/ZZQ08IYA=
=UeoH
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Group Policy in Samba 4 Alpha 1, not available?

2008-01-07 Thread Adam McCarthy
I got Samba 4 Alpha 1 up and running nice and smoothly. I followed the wiki
instructions for group policy but when I right click the Organizational
Unit, it doesn't not seem to have Group Policy in the properties.

Also, the latest Samba 4 just seems to crash MMC, so I can't really try it
with the latest. I'm trying Alpha 2 though.

Anyone know what I'm having this problem?

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


[Samba] [ Fixed :) ] LDAP problem

2008-01-07 Thread Tanguy Léost

le 07.01.2008 18:43  Rune Tønnesen ecrivait :

E.g. try add a computer to the domain and see whether this is possible 
or not.



Yes, that did the trick.
I tried to take my computer out of the domain, and put it back again,
and it worked, I could connect to the domain as before !
I just tested with a few other stations and they're acting the
same way.

So now I just have to do the same with all the computers in the factory,
but it is much less pain than what's happening for many hours now.
Some windows stations seem quite happy with it and don't even need to be
put back in the domain, so i guess it's just a matter of a couple
of hours tomorrow.


By the way, thanks *very much* to everyone for your help !

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


[Samba] Samba locking with NFS backend.

2008-01-07 Thread Jan Hugo Prins

Hello,

I'm in a bit of a loss at the moment.
We have the following situation, we are running Samba for a lot of small 
companies that need fileservices for there Windows Terminal Servers that 
they use through a thin client on a Fiber / Lan extention to our datacentre.
We have this samba running on 2 linux hosts (Fedora Core 5 and Fedora 7) 
with a ldap backend for all the domains.

This works ok, except for 1 thing.
In the past we synced server1 to server2 every hour and when there was a 
problems with a server, the users would only loose 1 hour of work at 
most and server 2 would take over all configurations. So far so good, 
when there are not too much customers.
But we have had some growth recently and we added a central NFS server 
to our setup. This server (Isilon IQ9000) is fully redundant so in 
theory we could put any number of Samba frontend servers in front of it, 
and we don't have to sync anymore.
But now the problem, when we put the user data on the NFS backend, users 
are complaining that they are not able to edit documents in Word because 
they get a error that they can only open the file readonly. Excell the 
same problem. But copying a file for example works ok. In general you 
can divide the applications in 2 groups, 1 only readonly access to the 
data, and 1 no problem.
I found the following link that describes my problem rather well, but 
I'm not able to test this sollution because it involved some patch 
reverting etc to old kernels.
http://blog.notreally.org/ (blog entry of dec, 19th 2007). I could do 
the memory hack that is described there to test if this is actually my 
problem, but I thought, let's first ask here.


The following lines from the blog seem to describe my problem really 
well, don't know if it really is my problem though, because I really 
don't know how to check this appart from memory hacking:


Unfortunately, linux 2.6.12 adds flock() emulation to the Linux NFS 
client by translating it into a file-wide fcntl(). This means that 
flock()s and fcntl()s *do collide* on remote NFS shares, which 
introduces all the potential application race conditions which Linux 
avoided by having them oblivious to each other locally. The practical 
upshot of this is that if you re-share an NFS share via samba, then if a 
Windows client (e.g. Outlook opening a PST file) opens a file with a 
share mode, then byte-range locking operations will fail as the lock has 
already been acquired. (The fact that NFS doesn’t realise the same PID 
has both locks and allow them both is probably an even bigger problem).


Is this a known issue with a sollution, or have I fould a problem here 
without a current sollution?


Thanks a lot,
Greetings,
Jan Hugo Prins

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


[Samba] Group Policy - Network Path Not Found - Samba 4

2008-01-07 Thread Adam McCarthy
Every time I try to add a Group Policy in to Samba 4, it just says network
path not found over and over. It does nothing else, but it seems like it
does create a few policy directories, but that may just be normal, I don't
know.

Is there some special things, you have to do, to use Group Policy on Samba
4?

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


Re: [Samba] Propose mount.cifs/smbfs able to mount the child folder of share folder

2008-01-07 Thread Michael Heydon

kstan wrote:

Hi Samba team,

I feel user will feel more confortable when they can mount folder (via
mount.cifs or mount.smbfs) under particular shared folder.

Example:
I have a share folder call department, all department's folder arrange
inside

so I have a share folder call \\server\department
snip
It is much more better if we can simplied the share via this command:
mount -t cifs  -o (with necessary
option) //server/department/purchasing 
/home/purchasinguser/Desktop/mydepartmentdata

  
While this should be possible to implement (I'm not a programmer so I 
won't guarantee it), it looks kind of ugly to me. You wouldn't expect to 
be able to mount some directory inside an iso9660 or ntfs filesystem, 
why should cifs be different?


Surely if you want people to be limited to just subdirectories of a 
share, you should be sharing those subdirectories instead of the parent 
(which would probably make security easier to manage as well). If you 
just want to shorten the path so people can get to it quickly, well 
that's what symlinks are for.


(I have removed samba-technical from this reply as this particular 
message isn't terribly technical)


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


Re: [Samba] Propose mount.cifs/smbfs able to mount the child folder of share folder

2008-01-07 Thread Chris Smith
On Monday 07 January 2008, Michael Heydon wrote:
  It is much more better if we can simplied the share via this
  command: mount -t cifs  -o (with necessary
  option) //server/department/purchasing
  /home/purchasinguser/Desktop/mydepartmentdata

One can already do this with cifs. Unfortunately the unount doesn't work 
correctly (at least last time I tested it).

 You wouldn't expect
 to be able to mount some directory inside an iso9660 or ntfs
 filesystem, why should cifs be different?

I'm missing the point with the local file system (which are generally 
transparent over the network) comparison. But cifs should be able to do 
it because modern Windows clients can.

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


Re: [Samba] Samba locking with NFS backend.

2008-01-07 Thread Greg Byshenk
On Mon, Jan 07, 2008 at 10:38:30PM +0100, Jan Hugo Prins wrote:
 
 I'm in a bit of a loss at the moment.
 We have the following situation, we are running Samba for a lot of small 
 companies that need fileservices for there Windows Terminal Servers that 
 they use through a thin client on a Fiber / Lan extention to our datacentre.
 We have this samba running on 2 linux hosts (Fedora Core 5 and Fedora 7) 
 with a ldap backend for all the domains.
 This works ok, except for 1 thing.
 In the past we synced server1 to server2 every hour and when there was a 
 problems with a server, the users would only loose 1 hour of work at 
 most and server 2 would take over all configurations. So far so good, 
 when there are not too much customers.
 But we have had some growth recently and we added a central NFS server 
 to our setup. This server (Isilon IQ9000) is fully redundant so in 
 theory we could put any number of Samba frontend servers in front of it, 
 and we don't have to sync anymore.
 But now the problem, when we put the user data on the NFS backend, users 
 are complaining that they are not able to edit documents in Word because 
 they get a error that they can only open the file readonly. Excell the 
 same problem. But copying a file for example works ok. In general you 
 can divide the applications in 2 groups, 1 only readonly access to the 
 data, and 1 no problem.

[...]
 
 Is this a known issue with a sollution, or have I fould a problem here 
 without a current sollution?

I'm no Samba or Linux kernel expert, but in my experience, re-exporting
is almost always a bad idea.

I could be mistaken, but it strikes me that the best solution, if you have
something like the Isilon system, would be to use the Isilon's own CIFS
capabilities. What is the gain from exporting from the Isilon via NFS and
then trying to re-export using a separate Samba server?


-- 
greg byshenk  -  [EMAIL PROTECTED]  -  Leiden, NL
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba locking with NFS backend.

2008-01-07 Thread Jan Hugo Prins

Greg Byshenk wrote:

On Mon, Jan 07, 2008 at 10:38:30PM +0100, Jan Hugo Prins wrote:
 
  

I'm in a bit of a loss at the moment.
We have the following situation, we are running Samba for a lot of small 
companies that need fileservices for there Windows Terminal Servers that 
they use through a thin client on a Fiber / Lan extention to our datacentre.
We have this samba running on 2 linux hosts (Fedora Core 5 and Fedora 7) 
with a ldap backend for all the domains.

This works ok, except for 1 thing.
In the past we synced server1 to server2 every hour and when there was a 
problems with a server, the users would only loose 1 hour of work at 
most and server 2 would take over all configurations. So far so good, 
when there are not too much customers.
But we have had some growth recently and we added a central NFS server 
to our setup. This server (Isilon IQ9000) is fully redundant so in 
theory we could put any number of Samba frontend servers in front of it, 
and we don't have to sync anymore.
But now the problem, when we put the user data on the NFS backend, users 
are complaining that they are not able to edit documents in Word because 
they get a error that they can only open the file readonly. Excell the 
same problem. But copying a file for example works ok. In general you 
can divide the applications in 2 groups, 1 only readonly access to the 
data, and 1 no problem.



[...]
 
  
Is this a known issue with a sollution, or have I fould a problem here 
without a current sollution?



I'm no Samba or Linux kernel expert, but in my experience, re-exporting
is almost always a bad idea.

I could be mistaken, but it strikes me that the best solution, if you have
something like the Isilon system, would be to use the Isilon's own CIFS
capabilities. What is the gain from exporting from the Isilon via NFS and
then trying to re-export using a separate Samba server?


  
The main reason we don't use the Cifs capabilities of the Isilon cluster 
is that it doesn't support how we use Samba / Ldap.
We have 1 LDAP tree, with all little OU's and each OU is the container 
for 1 domain.
We use a filter to make sure that a user that connect to the samba he 
has access to, only sees his part of the LDAP tree.
This filter functionality is something that is not available in the 
stock samba, it was before, and we patch it back into every samba we use 
in production.

We can't patch it into the Cifs server on the Isilon cluster.

Greetings,
Jan Hugo Prins

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


Re: [Samba] msdfs problem

2008-01-07 Thread Yan Seiner

John Drescher wrote:

On Jan 7, 2008 10:29 AM, Yan Seiner [EMAIL PROTECTED] wrote:
  

I think I've set up my msdfs correctly, but I keep getting the following
message when I try to connect to it:

[2008/01/07 05:00:45, 0] smbd/service.c:make_connection_snum(1003)
  '/etc/samba/xyz' does not exist or permission denied when connecting
to [beaufort] Error was No such file or directory

I have kahn in both hosts and lmhosts.

Any suggestions on what I am doing wrong?

[EMAIL PROTECTED]:/etc/samba# ls -l
-rw-r--r--1 root root   14 Jan  7 01:38 lmhosts
-rw---1 root root 8192 Jan  6 00:36 secrets.tdb
-rw-r--r--1 root root 1033 Jan  7 05:00 smb.conf
-rw---1 root root  103 Jan  7 04:55 smbpasswd
drwxr-xr-x1 root root0 Jan  7 02:08 x
lrwxrwxrwx1 root root   15 Jan  7 04:10 xyz -
msdfs:kahn\data
[EMAIL PROTECTED]:/etc/samba#



xyz should be a folder and inside this folder you put the msdfs link.
  


OK, thanks, got that fixed - but the problem persists.

My test winXP install just comes back with a 'network path was not 
found' error.


There are no errors in the log files

The remote server is not directly accessible from the test winXP install.

In other words,

remote server \\kahn --- vpn server \\lethe  -- WinXP

I can't send broadcasts through the vpn.  There is no route between 
winXP and \\kahn; in fact winXP cannot resolve kahn.  Is there some way 
I can connect to kahn from winXP?


I can't find any documentation on msdfs proxy ; could that be what I am 
looking for?


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


[Samba] No protocol supported

2008-01-07 Thread Yan Seiner
I'm trying to log into a problem server.  The server is running an old 
kernel - 2.6.10 - and samba 3.0.25C.


When I try to mount a share from another server running samba 3.0.26b, I 
get:


[EMAIL PROTECTED]:/tmp/log/samba# mount.cifs //kahn/yan /tmp/x --verbose -o 
user=xxx,pass=yyy,ip=10.8.0.1

parsing options: user=xxx,pass=yyy,ip=10.8.0.1
ip address 10.8.0.1 override specified
ip address specified explicitly

mount.cifs kernel mount options 
unc=//kahn\yan,ver=1,user=xxx,pass=yyy,ip=10.8.0.1

mount error 22 = Invalid argument
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


[2008/01/07 21:24:27, 0] smbd/negprot.c:reply_negprot(608)
 No protocol supported !

or, with the verbosity turned all the way up:

[2008/01/07 21:29:24, 6] param/loadparm.c:lp_file_list_changed(3070)
 lp_file_list_changed()
 file /etc/samba/smb.conf - /etc/samba/smb.conf  last mod_time: Mon 
Jan  7 21:03:12 2008


[2008/01/07 21:29:24, 3] smbd/oplock.c:init_oplocks(863)
 init_oplocks: initializing messages.
[2008/01/07 21:29:24, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(276)
 Linux kernel oplocks enabled
[2008/01/07 21:29:24, 10] 
lib/util_sock.c:read_smb_length_return_keepalive(623)

 got smb length of 47
[2008/01/07 21:29:24, 6] smbd/process.c:process_smb(1067)
 got message type 0x0 of len 0x2f
[2008/01/07 21:29:24, 3] smbd/process.c:process_smb(1068)
 Transaction 0 of length 51
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(484)
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(494)
 size=47
 smb_com=0x72
 smb_rcls=0
 smb_reh=0
 smb_err=0
 smb_flg=0
 smb_flg2=32769
 smb_tid=0
 smb_pid=8136
 smb_uid=0
 smb_mid=58
 smt_wct=0
 smb_bcc=12
[2008/01/07 21:29:24, 10] lib/util.c:dump_data(2263)
 [000] 02 4E 54 20 4C 4D 20 30  2E 31 32 00  .NT LM 0 .12.
[2008/01/07 21:29:24, 3] smbd/process.c:switch_message(926)
 switch message SMBnegprot (pid 13533) conn 0x0
[2008/01/07 21:29:24, 0] smbd/process.c:smb_dump(881)
 created /tmp/SMBnegprot.75.req len 51
[2008/01/07 21:29:24, 3] smbd/sec_ctx.c:set_sec_ctx(241)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_nt_user_token(448)
 NT user token: (NULL)
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_unix_user_token(474)
 UNIX token of user 0
 Primary group is 0 and contains 0 supplementary groups
[2008/01/07 21:29:24, 5] smbd/uid.c:change_to_root_user(288)
 change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/01/07 21:29:24, 3] smbd/negprot.c:reply_negprot(505)
 Requested protocol [NT LM 0.12]
[2008/01/07 21:29:24, 10] lib/util.c:set_remote_arch(2238)
 set_remote_arch: Client arch is 'CIFSFS'
[2008/01/07 21:29:24, 6] param/loadparm.c:lp_file_list_changed(3070)
 lp_file_list_changed()
 file /etc/samba/smb.conf - /etc/samba/smb.conf  last mod_time: Mon 
Jan  7 21:03:12 2008


[2008/01/07 21:29:24, 5] smbd/connection.c:claim_connection(182)
 claiming  0
[2008/01/07 21:29:24, 0] smbd/negprot.c:reply_negprot(608)
 No protocol supported !
[2008/01/07 21:29:24, 5] smbd/negprot.c:reply_negprot(612)
 negprot index=-1
[2008/01/07 21:29:24, 0] smbd/process.c:smb_dump(881)
 created /tmp/SMBnegprot.75.resp len 41
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(484)
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(494)
 size=37
 smb_com=0x72
 smb_rcls=0
 smb_reh=0
 smb_err=0
 smb_flg=128
 smb_flg2=49153
 smb_tid=0
 smb_pid=8136
 smb_uid=0
 smb_mid=58
 smt_wct=1
 smb_vwv[ 0]=65535 (0x)
 smb_bcc=0
[2008/01/07 21:29:24, 10] lib/util_sock.c:read_data(525)
 read_data: read of 4 returned 0. Error = Success
[2008/01/07 21:29:24, 10] lib/util_sock.c:receive_smb_raw(672)
 receive_smb_raw: length  0!
[2008/01/07 21:29:24, 3] smbd/process.c:timeout_processing(1328)
 timeout_processing: End of file from client (client has disconnected).
[2008/01/07 21:29:24, 5] lib/gencache.c:gencache_shutdown(94)
 Closing cache file
[2008/01/07 21:29:24, 5] libsmb/namecache.c:namecache_shutdown(79)
 namecache_shutdown: netbios namecache closed successfully.
[2008/01/07 21:29:24, 3] smbd/sec_ctx.c:set_sec_ctx(241)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_nt_user_token(448)
 NT user token: (NULL)
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_unix_user_token(474)
 UNIX token of user 0
 Primary group is 0 and contains 0 supplementary groups
[2008/01/07 21:29:24, 5] smbd/uid.c:change_to_root_user(288)
 change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/01/07 21:29:24, 3] smbd/connection.c:yield_connection(69)
 Yielding connection to
[2008/01/07 21:29:24, 3] smbd/server.c:exit_server_common(768)
 Server exit (normal exit)

I can mount shares on other servers, but I cannot mount shares on kahn 
from samba servers.  I can mount kahn shares from windows just fine



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


Re: [Samba] msdfs problem

2008-01-07 Thread John Drescher
 The remote server is not directly accessible from the test winXP install.

Then you can not use msdfs because all msdfs does is to redirect
windows to contact the second server for the files and not the first.

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


Re: [Samba] No protocol supported

2008-01-07 Thread Yan Seiner

Yan Seiner wrote:
I'm trying to log into a problem server.  The server is running an old 
kernel - 2.6.10 - and samba 3.0.25C.


When I try to mount a share from another server running samba 3.0.26b, 
I get:


[EMAIL PROTECTED]:/tmp/log/samba# mount.cifs //kahn/yan /tmp/x --verbose -o 
user=xxx,pass=yyy,ip=10.8.0.1

parsing options: user=xxx,pass=yyy,ip=10.8.0.1
ip address 10.8.0.1 override specified
ip address specified explicitly

mount.cifs kernel mount options 
unc=//kahn\yan,ver=1,user=xxx,pass=yyy,ip=10.8.0.1

mount error 22 = Invalid argument
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


[2008/01/07 21:24:27, 0] smbd/negprot.c:reply_negprot(608)
 No protocol supported !


OK, the problem, as usual, was between the keyboard and the monitor.

Way back when I was troubleshooting a really misbehaved windows app on
kahn, and I put

max protocol = LANMAN2

into the smb.conf file.

I've removed the line and I can mount shares

--Yan


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


Re: [Samba] Samba locking with NFS backend.

2008-01-07 Thread Volker Lendecke
On Mon, Jan 07, 2008 at 10:38:30PM +0100, Jan Hugo Prins wrote:
 Is this a known issue with a sollution, or have I fould a problem here 
 without a current sollution?

https://bugzilla.samba.org/show_bug.cgi?id=5168

See the module that is attached in comment#2.

Volker


pgptzevJ3ytIt.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] Issues with samba PDC + WinXP clients

2008-01-07 Thread theands

Hello
I also have the same problem, would anyone have a solution for me?



Cybionet wrote:
 
 Greeting mikko,
 
   Don't use the registry modification! It is not necessary and cause 
 security vulnerability on the Windows professionnal client.
 
   Your LDAP section seen not to be configure correctly on the smb.conf. 
 But it's is not the actual problem with the error message. I can't 
 remember what is the problem, but it is very simple to resolve. I will 
 make some test to have the same error...surely not to long to reproduce
 :-).
 
   If you use LDAP, I suggest you to not use logon options in Samba but 
 use the LDAP options in the directory.
 
   By example:
 
logon home --  sambaHomePath
logon path   --  sambaProfilePath
logon drive  --  sambaHomeDrive
logon script --  sambaLogonScript
 
 Robert
 
 Hello,

 I've been trying to configure samba 3.0.23d to work as PDC for a few 
 days now. I can successfully join computer to domain but logging with 
 user credentials fails with error message:

 The system can not log you on due to the following error:

 The system cannot find message text for message number 0x%1 in the 
 message file for %2


 Eventlog on windows side doesnt show anything usefull. I did all 
 registry tricks on windows side (Sign secure channel).

 Heres my smb.conf:

 [global]
 ; General setting
 netbios name = SMBADS
 workgroup = TESTDOMAIN
 os level = 64
 wins support = true

 ; PDC Settings
 preferred master = yes
 local master = yes

 domain master = yes
 domain logons = yes

 security = user
 encrypt passwords = true

 ; Log settings
 log level = 2
 log file = /var/log/samba/log.%m
 syslog = 0
 server string = SAMBA-LDAP PDC Server %v

 ; user profiles and home directory
 logon home = \\%L\%U\
 logon drive = h:
 logon path = \\%L\profiles\%U
 logon script = netlogon.bat

 ; LDAP Configuration
 passdb backend = ldapsam:ldap://127.0.0.1
 ldap suffix = dc=example,dc=com
 ldap machine suffix = ou=machines
 ldap user suffix = ou=users
 ldap group suffix = ou=groups
 ldap admin dn = cn=admin,dc=example,dc=com
 ldap delete dn = no
 ldap password sync = yes
 enable privileges = yes


 [homes]
 comment = Home Directories
 browseable = no
 writeable = yes

 [netlogon]
 comment = Network Logon Service
 path = /var/lib/samba/netlogon
 guest ok = Yes
 browseable = No

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


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

-- 
View this message in context: 
http://www.nabble.com/Issues-with-samba-PDC-%2B-WinXP-clients-tp7755676p14683249.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


Re: Record format

2008-01-07 Thread Aravinda Guzzar
Hi,

HP has recently released a version of samba that do support Variable length
record format files through VFS modules. It automatically converts the file
formats from Variable-length record format to Stream (seperate VFS exists
for StreamLF support) if there is any Write operation on the file.

-Aravind

On 1/8/08, John Santos [EMAIL PROTECTED] wrote:

 David J Dachtera wrote:
  RMS Sequential Variable files produced on VMS cannot be read as expected
 by
  Windows programs. They expect CRLF pairs to be embedded in the data,
 and
  they aren't there. The Record Attributes are meaningless here (no
  extraneous data is retieved from/written to the file).
 
  In order to be readable by Windows programs, files on VMS must have RMS
  attributes showing a record format of Stream or Stream_LF.

 In addition to having record attributes showing a format of Stream,
 it must actually be in stream format, i.e. it must actually contain
 the CRLF between each line.  So it doesn't do any good to just
   $ set file/attributes=rfm=STM,
 you need to convert the file to stream (or create it that way in the
 first place.)  The easiest way to do that is to use convert/fdl with
 a .fdl file specifying (from TCPWARE:STREAMCRLF.FDL):

 IDENT   28-OCT-1991 13:22:18   VAX-11 FDL Editor

 SYSTEM
 SOURCE  VAX/VMS

 FILE
 BEST_TRY_CONTIGUOUS no
 CONTIGUOUS  no
 NAME
 ORGANIZATIONsequential

 RECORD
 BLOCK_SPAN  yes
 CARRIAGE_CONTROLcarriage_return
 FORMAT  stream
 SIZE0

 (Example .FDL file courtesy TCPware.  There's no copyright in it, so
 I assume I can post it here.)

 On the other hand, it *might* be possible to get coerce the Samba
 server into converting Seq Var files to Stream on the fly, much as
 the POP, IMAP, FTP, NFS and Apache 2.1 servers do.  I've messed
 around a little with Samba, but am certainly not an expert...
 Does anyone else know for sure if this is possible.



 
  David J Dachtera
  DJE Systems
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
 Of
  [EMAIL PROTECTED]
  Sent: Thursday, January 03, 2008 2:38 AM
  To: samba-vms@lists.samba.org
  Subject: Record format
 
  We have recently installed Samba on VMS (Itanium).
 
  We have problems in reading text-files produced on VMS. The CR/LF does
 not
  work. The data stream appears in a long line.
 
  The file attributes on VMS are:
 
  Record format: Variable length, maximum 0 bytes, longest 75 bytes
  Record attributes: Carriage return carriage control
 
  Do I have to change these attributes or is there anything to do in the
  SMB.CONF file?
 
  RG Rolf


 PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

 http://www.catb.org/~esr/faqs/smart-questions.html




-- 
Aravinda
(Views expressed here are my personal opinion ONLY)
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1124-g6f673b7

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  6f673b7f10c145d88e6a6d3072b5f8cd98837304 (commit)
   via  62d6d4fff2edcce04e793d2a2f877cb3f4fedbdb (commit)
   via  dba24ceae78ffc49200b647838b6bf3657275add (commit)
   via  66fc1db1d19d11792d9506b06ad914d88b7e0663 (commit)
   via  d0c0f91fb9f3438a18c6f47ed894f525beb75cbf (commit)
  from  d9d6775878f8b3425665c6a45a5ef9cb92932cf8 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 6f673b7f10c145d88e6a6d3072b5f8cd98837304
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 11:27:54 2008 +0100

Use the proper boolean constants.

Michael

commit 62d6d4fff2edcce04e793d2a2f877cb3f4fedbdb
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 11:19:27 2008 +0100

Fix a comment.

Michael

commit dba24ceae78ffc49200b647838b6bf3657275add
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 10:59:14 2008 +0100

Make wcache_invalidate_cache() return bool, not int.

Michael

commit 66fc1db1d19d11792d9506b06ad914d88b7e0663
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 10:41:09 2008 +0100

Add some braces to if statement.

Michael

commit d0c0f91fb9f3438a18c6f47ed894f525beb75cbf
Author: Andreas Schneider [EMAIL PROTECTED]
Date:   Mon Nov 26 11:44:30 2007 +0100

Prevent winbindd from segfaulting due to corrupted cache tdb.

If we try to flush the caches and due to a corrupted tdb we and have no tdb
context close the tdb and validate it. Initialize the cache afterwards 
again.

---

Summary of changes:
 source/winbindd/winbindd.c   |   19 -
 source/winbindd/winbindd_cache.c |  209 -
 2 files changed, 131 insertions(+), 97 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbindd/winbindd.c b/source/winbindd/winbindd.c
index 07cf226..5e9900d 100644
--- a/source/winbindd/winbindd.c
+++ b/source/winbindd/winbindd.c
@@ -121,7 +121,24 @@ static void flush_caches(void)
otherwise cached access denied errors due to restrict anonymous
hang around until the sequence number changes. */
 
-   wcache_invalidate_cache();
+   if (!wcache_invalidate_cache()) {
+   DEBUG(0, (invalidating the cache failed; revalidate the 
cache\n));
+   /* Close the cache to be able to valdite the cache */
+   close_winbindd_cache();
+   /*
+* Ensure all cache and idmap caches are consistent
+* before we initialize the cache again.
+*/
+   if (winbindd_validate_cache()  0) {
+   DEBUG(0, (winbindd cache tdb corrupt and no backup 
+ could be restore.\n));
+   }
+
+   /* Initialize cache again. */
+   if (!initialize_winbindd_cache()) {
+   exit(1);
+   }
+   }
 }
 
 /* Handle the signal by unlinking socket and exiting */
diff --git a/source/winbindd/winbindd_cache.c b/source/winbindd/winbindd_cache.c
index f63c7a5..fc71868 100644
--- a/source/winbindd/winbindd_cache.c
+++ b/source/winbindd/winbindd_cache.c
@@ -62,7 +62,7 @@ static bool is_non_centry_key(TDB_DATA kbuf)
int i;
 
if (kbuf.dptr == NULL || kbuf.dsize == 0) {
-   return False;
+   return false;
}
for (i = 0; non_centry_keys[i] != NULL; i++) {
size_t namelen = strlen(non_centry_keys[i]);
@@ -70,10 +70,10 @@ static bool is_non_centry_key(TDB_DATA kbuf)
continue;
}
if (strncmp(non_centry_keys[i], (const char *)kbuf.dptr, 
namelen) == 0) {
-   return True;
+   return true;
}
}
-   return False;
+   return false;
 }
 
 /* Global online/offline state - False when online. winbindd starts up online
@@ -210,9 +210,9 @@ static bool centry_check_bytes(struct cache_entry *centry, 
size_t nbytes)
DEBUG(0,(centry corruption? needed %u bytes, have %d\n, 
 (unsigned int)nbytes,
 centry-len - centry-ofs));
-   return False;
+   return false;
}
-   return True;
+   return true;
 }
 
 /*
@@ -348,9 +348,9 @@ static bool centry_sid(struct cache_entry *centry, 
TALLOC_CTX *mem_ctx, DOM_SID
char *sid_string;
sid_string = centry_string(centry, mem_ctx);
if ((sid_string == NULL) || (!string_to_sid(sid, sid_string))) {
-   return False;
+   return false;
}
-   return True;
+   return true;
 }
 
 
@@ -372,7 +372,7 @@ static bool wcache_server_down(struct winbindd_domain 
*domain)
bool ret;
 
if 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1129-gd73bde9

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  d73bde99e8518607bb78b5625ce5fb1991d8e402 (commit)
   via  dd3fbd93b6e5fe8b5e3a3727a64a38d5ae46fcbf (commit)
   via  48f09ca376f9fc7923309f3466e5d72f7c21a56f (commit)
   via  bf9ce2a928e3136d3bfe368f75d5b99273c5b04f (commit)
   via  bc025a3860483e8cdbd0f61579689c9edadd3af0 (commit)
  from  6f673b7f10c145d88e6a6d3072b5f8cd98837304 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit d73bde99e8518607bb78b5625ce5fb1991d8e402
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 12:44:25 2008 +0100

Fix two memleaks in libnetapi.

Guenther

commit dd3fbd93b6e5fe8b5e3a3727a64a38d5ae46fcbf
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 12:42:16 2008 +0100

Add secrets_shutdown().

Guenther

commit 48f09ca376f9fc7923309f3466e5d72f7c21a56f
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 12:41:18 2008 +0100

In gfree_debugsyms() free the format_bufr as well.

Guenther

commit bf9ce2a928e3136d3bfe368f75d5b99273c5b04f
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 12:19:56 2008 +0100

Failure while unjoining a domain is non-critical.
Just continue joining to the workgroup in that case.

Guenther

commit bc025a3860483e8cdbd0f61579689c9edadd3af0
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Jan 4 23:11:53 2008 +0100

Only create machine account in libnetjoin when requested to.

Guenther

---

Summary of changes:
 source/lib/debug.c |2 +
 .../examples/netdomjoin-gui/netdomjoin-gui.c   |   10 +---
 source/lib/netapi/netapi.c |5 +++-
 source/libnet/libnet_join.c|   22 +++
 source/passdb/secrets.c|   13 +++
 5 files changed, 34 insertions(+), 18 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/debug.c b/source/lib/debug.c
index 9ea2dc1..6c1bfea 100644
--- a/source/lib/debug.c
+++ b/source/lib/debug.c
@@ -199,6 +199,8 @@ void gfree_debugsyms(void)
 
if ( DEBUGLEVEL_CLASS_ISSET != debug_all_class_isset_hack )
SAFE_FREE( DEBUGLEVEL_CLASS_ISSET );
+
+   SAFE_FREE(format_bufr);
 }
 
 /
diff --git a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 
b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index d12e66b..1e1681b 100644
--- a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -449,14 +449,8 @@ static void callback_do_join(GtkWidget *widget,
initial_workgroup_type,

state-name_buffer_initial,
err_str);
-
-   g_signal_connect_swapped(dialog, response,
-G_CALLBACK(gtk_widget_destroy),
-dialog);
-
-   gtk_widget_show(dialog);
-
-   return;
+   gtk_dialog_run(GTK_DIALOG(dialog));
+   gtk_widget_destroy(dialog);
}
 
}
diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c
index 032798d..9c418f2 100644
--- a/source/lib/netapi/netapi.c
+++ b/source/lib/netapi/netapi.c
@@ -1,7 +1,7 @@
 /*
  *  Unix SMB/CIFS implementation.
  *  NetApi Support
- *  Copyright (C) Guenther Deschner 2007
+ *  Copyright (C) Guenther Deschner 2007-2008
  *
  *  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
@@ -90,6 +90,9 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx)
gfree_charcnv();
gfree_interfaces();
 
+   gencache_shutdown();
+   secrets_shutdown();
+
TALLOC_FREE(ctx);
TALLOC_FREE(frame);
 
diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 95b643f..36d5c0a 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -138,17 +138,21 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX 
*mem_ctx,
strlower_m(acct_name);
const_acct_name = acct_name;
 
-   status = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx, domain_pol,
-acct_name, ACB_WSTRUST,
-0xe005000b, user_pol, user_rid);
-   if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
-   if (!(r-in.join_flags  
WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED)) {
- 

Rev 734: background the smbstatus -n command in http://samba.org/~tridge/ctdb

2008-01-07 Thread tridge

revno: 734
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge.stable
timestamp: Mon 2008-01-07 23:41:07 +1100
message:
  background the smbstatus -n command
modified:
  config/events.d/50.samba   samba-20070601105340-vlcvnp6euoj3zdwy-3
=== modified file 'config/events.d/50.samba'
--- a/config/events.d/50.samba  2008-01-07 03:31:13 +
+++ b/config/events.d/50.samba  2008-01-07 12:41:07 +
@@ -36,7 +36,7 @@
 # running smbstatus scrubs any dead entries from the connections
 # and sessionid database
 echo `date` Running periodic cleanup of samba databases
-smbstatus -n  /dev/null 21
+smbstatus -n  /dev/null 21 
 }
 
 case $cmd in 



[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1131-g73233a0

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  73233a06d6f0f1346c48b465750af4b532cd7306 (commit)
   via  f3ebb4f96bb0364dae9924e798652e759b63bb52 (commit)
  from  d73bde99e8518607bb78b5625ce5fb1991d8e402 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 73233a06d6f0f1346c48b465750af4b532cd7306
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 14:51:11 2008 +0100

Fix build warning.

Guenther

commit f3ebb4f96bb0364dae9924e798652e759b63bb52
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 14:15:48 2008 +0100

Add free_local_machine_name().

Guenther

---

Summary of changes:
 source/lib/substitute.c   |5 +
 source/lib/util.c |1 +
 source/winbindd/winbindd_cm.c |   34 ++
 3 files changed, 24 insertions(+), 16 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index 80feee9..59b54c4 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -34,6 +34,11 @@ fstring remote_proto=UNKNOWN;
 
 static char *local_machine;
 
+void free_local_machine_name(void)
+{
+   SAFE_FREE(local_machine);
+}
+
 bool set_local_machine_name(const char *local_name, bool perm)
 {
static bool already_perm = false;
diff --git a/source/lib/util.c b/source/lib/util.c
index c69a145..25b2700 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -183,6 +183,7 @@ void gfree_names(void)
SAFE_FREE( smb_myworkgroup );
SAFE_FREE( smb_scope );
free_netbios_names_array();
+   free_local_machine_name();
 }
 
 void gfree_all( void )
diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c
index 99e401d..a9155a5 100644
--- a/source/winbindd/winbindd_cm.c
+++ b/source/winbindd/winbindd_cm.c
@@ -74,7 +74,7 @@ extern bool override_logfile;
 
 static NTSTATUS init_dc_connection_network(struct winbindd_domain *domain);
 static void set_dc_type_and_flags( struct winbindd_domain *domain );
-static bool get_dcs(TALLOC_CTX *mem_ctx, const struct winbindd_domain *domain,
+static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
struct dc_name_ip **dcs, int *num_dcs);
 
 /
@@ -560,7 +560,7 @@ static void cm_get_ipc_userpass(char **username, char 
**domain, char **password)
}
 }
 
-static bool get_dc_name_via_netlogon(const struct winbindd_domain *domain,
+static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
 fstring dcname,
 struct sockaddr_storage *dc_ss)
 {
@@ -600,12 +600,12 @@ static bool get_dc_name_via_netlogon(const struct 
winbindd_domain *domain,
   35 seconds should do it. */
 
orig_timeout = cli_set_timeout(netlogon_pipe-cli, 35000);
-   
+
if (our_domain-active_directory) {
struct DS_DOMAIN_CONTROLLER_INFO *domain_info = NULL;
-   
-   werr = rpccli_netlogon_dsr_getdcname(netlogon_pipe, 
-mem_ctx, 
+
+   werr = rpccli_netlogon_dsr_getdcname(netlogon_pipe,
+mem_ctx,
 our_domain-dcname,
 domain-name,
 NULL,
@@ -615,19 +615,21 @@ static bool get_dc_name_via_netlogon(const struct 
winbindd_domain *domain,
if (W_ERROR_IS_OK(werr)) {
fstrcpy(tmp, domain_info-domain_controller_name);
if (strlen(domain-alt_name) == 0) {
-   fstrcpy(domain-alt_name, 
-   CONST_DISCARD(char*, 
domain_info-domain_name));
+   fstrcpy(domain-alt_name,
+   domain_info-domain_name);
}
if (strlen(domain-forest_name) == 0) {
-   fstrcpy(domain-forest_name, 
-   CONST_DISCARD(char*, 
domain_info-dns_forest_name));
+   fstrcpy(domain-forest_name,
+   domain_info-dns_forest_name);
}
-   }   
+   }
} else {
-   
-   werr = rpccli_netlogon_getanydcname(netlogon_pipe, mem_ctx, 
+
+   werr = rpccli_netlogon_getanydcname(netlogon_pipe,
+   mem_ctx,
our_domain-dcname,
-  

svn commit: samba r26687 - in branches/SAMBA_4_0: . source/scripting/python

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 14:11:19 + (Mon, 07 Jan 2008)
New Revision: 26687

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

Log:
python: Update status after feedback from abartlett.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/scripting/python/STATUS


Changeset:

Property changes on: branches/SAMBA_4_0
___
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/scripting/python/STATUS
===
--- branches/SAMBA_4_0/source/scripting/python/STATUS   2008-01-07 05:50:04 UTC 
(rev 26686)
+++ branches/SAMBA_4_0/source/scripting/python/STATUS   2008-01-07 14:11:19 UTC 
(rev 26687)
@@ -1,6 +1,9 @@
 dsdb/samdb/ldb_modules/tests/samba3sam.py
 lib/ldb/tests/python/ldap.py
+provisioning in LDAP mode
 SWAT
+command-line vampire
+provisioning: combine some of the python dictionaries
 hierarchy
 DCE/RPC bindings
  - pidl:



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

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 14:11:25 + (Mon, 07 Jan 2008)
New Revision: 26688

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

Log:
Fix listing remote predefined keys and subkeys. This fixes bug 3431.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/registry/local.c
   branches/SAMBA_4_0/source/lib/registry/registry.h
   branches/SAMBA_4_0/source/lib/registry/rpc.c
   branches/SAMBA_4_0/source/lib/registry/tools/common.c


Changeset:

Property changes on: branches/SAMBA_4_0
___
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/registry/local.c
===
--- branches/SAMBA_4_0/source/lib/registry/local.c  2008-01-07 14:11:19 UTC 
(rev 26687)
+++ branches/SAMBA_4_0/source/lib/registry/local.c  2008-01-07 14:11:25 UTC 
(rev 26688)
@@ -30,7 +30,7 @@
 };
 
 struct registry_local {
-   struct registry_context registry;
+   const struct registry_operations *ops;
 
struct mountpoint {
struct reg_key_path path;
@@ -299,7 +299,7 @@
 
W_ERROR_HAVE_NO_MEMORY(ret);
 
-   ret-registry.ops = local_ops;
+   ret-ops = local_ops;
ret-session_info = session_info;
ret-credentials = credentials;
 

Modified: branches/SAMBA_4_0/source/lib/registry/registry.h
===
--- branches/SAMBA_4_0/source/lib/registry/registry.h   2008-01-07 14:11:19 UTC 
(rev 26687)
+++ branches/SAMBA_4_0/source/lib/registry/registry.h   2008-01-07 14:11:25 UTC 
(rev 26688)
@@ -80,7 +80,6 @@
 typedef void (*reg_value_notification_function) (void);
 
 struct cli_credentials;
-struct registry_context;
 
 struct registry_operations {
const char *name;

Modified: branches/SAMBA_4_0/source/lib/registry/rpc.c
===
--- branches/SAMBA_4_0/source/lib/registry/rpc.c2008-01-07 14:11:19 UTC 
(rev 26687)
+++ branches/SAMBA_4_0/source/lib/registry/rpc.c2008-01-07 14:11:25 UTC 
(rev 26688)
@@ -96,10 +96,11 @@
 struct registry_key **k)
 {
int n;
-   struct rpc_registry_context *rctx = talloc_get_type(ctx,
-   struct 
rpc_registry_context);
struct rpc_key *mykeydata;
+   struct rpc_registry_context *rctx = talloc_get_type(ctx, struct 
rpc_registry_context);
 
+   *k = NULL;
+
for(n = 0; known_hives[n].hkey; n++) {
if(known_hives[n].hkey == hkey_type)
break;
@@ -110,11 +111,13 @@
return WERR_NO_MORE_ITEMS;
}
 
-   mykeydata = talloc(ctx, struct rpc_key);
-   mykeydata-pipe = rctx-pipe;
+   mykeydata = talloc_zero(ctx, struct rpc_key);
+   mykeydata-key.context = ctx;
+   mykeydata-pipe = talloc_reference(mykeydata, rctx-pipe);
mykeydata-num_values = -1;
mykeydata-num_subkeys = -1;
-   return known_hives[n].open(mykeydata-pipe, *k, (mykeydata-pol));
+   *k = (struct registry_key *)mykeydata;
+   return known_hives[n].open(mykeydata-pipe, mykeydata, 
(mykeydata-pol));
 }
 
 #if 0
@@ -146,21 +149,32 @@
 static WERROR rpc_open_key(TALLOC_CTX *mem_ctx, struct registry_key *h,
   const char *name, struct registry_key **key)
 {
-   struct rpc_key *mykeydata = talloc_get_type(h, struct rpc_key),
-   *newkeydata;
+   struct rpc_key *parentkeydata = talloc_get_type(h, struct rpc_key),
+   *mykeydata;
struct winreg_OpenKey r;
+   NTSTATUS status;
 
mykeydata = talloc(mem_ctx, struct rpc_key);
 
+   mykeydata-key.context = parentkeydata-key.context;
+   mykeydata-pipe = talloc_reference(mykeydata, parentkeydata-pipe);
+   mykeydata-num_values = -1;
+   mykeydata-num_subkeys = -1;
+   *key = (struct registry_key *)mykeydata;
+
/* Then, open the handle using the hive */
-   memset(r, 0, sizeof(struct winreg_OpenKey));
-   r.in.parent_handle = mykeydata-pol;
+   ZERO_STRUCT(r);
+   r.in.parent_handle = parentkeydata-pol;
init_winreg_String(r.in.keyname, name);
r.in.unknown = 0x;
r.in.access_mask = 0x0200;
-   r.out.handle = newkeydata-pol;
+   r.out.handle = mykeydata-pol;
 
-   dcerpc_winreg_OpenKey(mykeydata-pipe, mem_ctx, r);
+   status = dcerpc_winreg_OpenKey(mykeydata-pipe, mem_ctx, r);
+   if (NT_STATUS_IS_ERR(status)) {
+   DEBUG(0,(Error executing openkey: %s\n, nt_errstr(status)));
+   return ntstatus_to_werror(status);
+   }
 
return r.out.result;
 }
@@ -175,29 +189,29 @@
struct rpc_key 

svn commit: samba r26689 - in branches/SAMBA_4_0: . source/lib/registry source/lib/registry/tests source/lib/registry/tools source/rpc_server/winreg

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 14:11:29 + (Mon, 07 Jan 2008)
New Revision: 26689

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

Log:
registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in 
getkeyinfo().

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/registry/dir.c
   branches/SAMBA_4_0/source/lib/registry/hive.c
   branches/SAMBA_4_0/source/lib/registry/hive.h
   branches/SAMBA_4_0/source/lib/registry/interface.c
   branches/SAMBA_4_0/source/lib/registry/ldb.c
   branches/SAMBA_4_0/source/lib/registry/local.c
   branches/SAMBA_4_0/source/lib/registry/patchfile.c
   branches/SAMBA_4_0/source/lib/registry/regf.c
   branches/SAMBA_4_0/source/lib/registry/registry.h
   branches/SAMBA_4_0/source/lib/registry/rpc.c
   branches/SAMBA_4_0/source/lib/registry/tests/hive.c
   branches/SAMBA_4_0/source/lib/registry/tests/registry.c
   branches/SAMBA_4_0/source/lib/registry/tools/regshell.c
   branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c


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


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1138-g2ad6605

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  2ad66050a0452b8e7e08b1e7a01efa00c72fd451 (commit)
   via  fbb193db3e0dc51cb000ae406a68bc547f31d9ab (commit)
   via  a54d5604da556d1250ca9948d4acc4a187a9fede (commit)
   via  0b86c420be94d295f6917a220b5d699f65b46711 (commit)
   via  8f83c9a7b245dbfef28195f9a7f33047a8ba95a0 (commit)
   via  df929796f2698698d2875227bda8500589cca2df (commit)
   via  8c4901a19ae2fd3ee085f9499f33aa7db016d182 (commit)
  from  73233a06d6f0f1346c48b465750af4b532cd7306 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 2ad66050a0452b8e7e08b1e7a01efa00c72fd451
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 15:55:09 2008 +0100

Remove redundant parameter fd from SMB_VFS_FTRUNCATE().

Michael

commit fbb193db3e0dc51cb000ae406a68bc547f31d9ab
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 14:26:00 2008 +0100

Remove redundant parameter fd from SMB_VFS_FCHOWN().

Michael

commit a54d5604da556d1250ca9948d4acc4a187a9fede
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 13:44:37 2008 +0100

Remove redundant parameter fd from SMB_VFS_FCHMOD().

Michael

commit 0b86c420be94d295f6917a220b5d699f65b46711
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 13:21:26 2008 +0100

Remove redundant parameter fd from SMB_VFS_FSTAT().

Michael

commit 8f83c9a7b245dbfef28195f9a7f33047a8ba95a0
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 12:49:02 2008 +0100

Remove redundant parameter fd from SMB_VFS_FSYNC().

Michael

commit df929796f2698698d2875227bda8500589cca2df
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 10:15:08 2008 +0100

Remove redundant parameter fd from SMB_VFS_LSEEK().

Michael

commit 8c4901a19ae2fd3ee085f9499f33aa7db016d182
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 09:23:04 2008 +0100

Remove redundant parameter fd from SMB_VFS_PWRITE().

Michael

---

Summary of changes:
 examples/VFS/skel_opaque.c  |   28 +++---
 examples/VFS/skel_transparent.c |   28 +++---
 source/include/vfs.h|   22 
 source/include/vfs_macros.h |   42 +++---
 source/modules/nfs4_acls.c  |2 +-
 source/modules/vfs_afsacl.c |2 +-
 source/modules/vfs_audit.c  |6 ++--
 source/modules/vfs_commit.c |8 ++---
 source/modules/vfs_default.c|   72 +++---
 source/modules/vfs_extd_audit.c |6 ++--
 source/modules/vfs_fake_perms.c |4 +-
 source/modules/vfs_full_audit.c |   42 +++---
 source/modules/vfs_gpfs.c   |6 ++--
 source/modules/vfs_prealloc.c   |3 +-
 source/printing/nt_printing.c   |   12 +++---
 source/printing/printfsp.c  |2 +-
 source/smbd/dosmode.c   |2 +-
 source/smbd/fileio.c|8 ++--
 source/smbd/open.c  |   12 +++---
 source/smbd/posix_acls.c|8 ++--
 source/smbd/reply.c |   14 
 source/smbd/trans2.c|4 +-
 source/smbd/vfs.c   |   14 
 source/torture/cmd_vfs.c|   12 +++---
 24 files changed, 182 insertions(+), 177 deletions(-)


Changeset truncated at 500 lines:

diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 21b39c1..2ecfcf1 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -145,14 +145,14 @@ static ssize_t skel_write(vfs_handle_struct *handle, 
files_struct *fsp, int fd,
return vfswrap_write(NULL, fsp, fd, data, n);
 }
 
-ssize_t skel_pwrite(vfs_handle_struct *handle, struct files_struct *fsp, int 
fd, const void *data, size_t n, SMB_OFF_T offset)
+ssize_t skel_pwrite(vfs_handle_struct *handle, struct files_struct *fsp, const 
void *data, size_t n, SMB_OFF_T offset)
 {
-   return vfswrap_pwrite(NULL, fsp, fd, data, n, offset);
+   return vfswrap_pwrite(NULL, fsp, data, n, offset);
 }
 
-static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, int 
filedes, SMB_OFF_T offset, int whence)
+static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, 
SMB_OFF_T offset, int whence)
 {
-   return vfswrap_lseek(NULL, fsp, filedes, offset, whence);
+   return vfswrap_lseek(NULL, fsp, offset, whence);
 }
 
 static ssize_t skel_sendfile(vfs_handle_struct *handle, int tofd, files_struct 
*fsp, int fromfd, const DATA_BLOB *hdr,
@@ -171,9 +171,9 @@ static int skel_rename(vfs_handle_struct *handle,  const 
char *oldname, const ch
return vfswrap_rename(NULL,  oldname, newname);
 }
 
-static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp, int fd)
+static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp)
 {
-   return vfswrap_fsync(NULL, fsp, fd);
+   return 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1139-g2069127

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  20691272a1e2562ab8c6143978d324af0334f871 (commit)
  from  2ad66050a0452b8e7e08b1e7a01efa00c72fd451 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 20691272a1e2562ab8c6143978d324af0334f871
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 16:12:03 2008 +0100

Fix the build: Fix caller of strict_allocate_ftruncate().

Michael

---

Summary of changes:
 source/modules/vfs_default.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c
index 6ac8cc5..4505695 100644
--- a/source/modules/vfs_default.c
+++ b/source/modules/vfs_default.c
@@ -736,7 +736,7 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, 
files_struct *fsp, SMB_O
START_PROFILE(syscall_ftruncate);
 
if (lp_strict_allocate(SNUM(fsp-conn))) {
-   result = strict_allocate_ftruncate(handle, fsp, fsp-fh-fd, 
len);
+   result = strict_allocate_ftruncate(handle, fsp, len);
END_PROFILE(syscall_ftruncate);
return result;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1140-g4f3ab2c

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  4f3ab2c406072e0b43581057e7e785e8ad454cfa (commit)
  from  20691272a1e2562ab8c6143978d324af0334f871 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 4f3ab2c406072e0b43581057e7e785e8ad454cfa
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 16:38:23 2008 +0100

Remove redundant parameter fd from SMB_VFS_LOCK().

Michael

---

Summary of changes:
 examples/VFS/skel_opaque.c  |4 ++--
 examples/VFS/skel_transparent.c |4 ++--
 source/include/vfs.h|3 ++-
 source/include/vfs_macros.h |6 +++---
 source/locking/posix.c  |4 ++--
 source/modules/vfs_default.c|4 ++--
 source/modules/vfs_full_audit.c |6 +++---
 source/torture/cmd_vfs.c|2 +-
 8 files changed, 17 insertions(+), 16 deletions(-)


Changeset truncated at 500 lines:

diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 2ecfcf1..d5cedaf 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -241,9 +241,9 @@ static int skel_ftruncate(vfs_handle_struct *handle, 
files_struct *fsp, SMB_OFF_
return vfswrap_ftruncate(NULL, fsp, offset);
 }
 
-static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, 
int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
+static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, 
SMB_OFF_T offset, SMB_OFF_T count, int type)
 {
-   return vfswrap_lock(NULL, fsp, fd, op, offset, count, type);
+   return vfswrap_lock(NULL, fsp, op, offset, count, type);
 }
 
 static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, int fd, 
SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 5d3103e..37570b8 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -234,9 +234,9 @@ static int skel_ftruncate(vfs_handle_struct *handle, 
files_struct *fsp, SMB_OFF_
return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
 }
 
-static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, 
int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
+static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, 
SMB_OFF_T offset, SMB_OFF_T count, int type)
 {
-   return SMB_VFS_NEXT_LOCK(handle, fsp, fd, op, offset, count, type);
+   return SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
 }
 
 static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, int fd, 
SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
diff --git a/source/include/vfs.h b/source/include/vfs.h
index a36cd55..9cf49bf 100644
--- a/source/include/vfs.h
+++ b/source/include/vfs.h
@@ -87,6 +87,7 @@
 /* Leave at 22 - not yet released. Remove parameter fd from fchmod. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from fchown. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from ftruncate. - obnox 
*/
+/* Leave at 22 - not yet released. Remove parameter fd from lock. - obnox */
 
 
 #define SMB_VFS_INTERFACE_VERSION 22
@@ -299,7 +300,7 @@ struct vfs_ops {
char *(*getwd)(struct vfs_handle_struct *handle, char *buf);
int (*ntimes)(struct vfs_handle_struct *handle, const char 
*path, const struct timespec ts[2]);
int (*ftruncate)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, SMB_OFF_T offset);
-   bool (*lock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
+   bool (*lock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
int (*kernel_flock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, uint32 share_mode);
int (*linux_setlease)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, int leasetype);
bool (*getlock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, 
pid_t *ppid);
diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h
index 2fc0dda..5bc2cbc 100644
--- a/source/include/vfs_macros.h
+++ b/source/include/vfs_macros.h
@@ -70,7 +70,7 @@
 #define SMB_VFS_GETWD(conn, buf) 
((conn)-vfs.ops.getwd((conn)-vfs.handles.getwd, (buf)))
 #define SMB_VFS_NTIMES(conn, path, ts) 
((conn)-vfs.ops.ntimes((conn)-vfs.handles.ntimes, (path), (ts)))
 #define SMB_VFS_FTRUNCATE(fsp, offset) 
((fsp)-conn-vfs.ops.ftruncate((fsp)-conn-vfs.handles.ftruncate, (fsp), 
(offset)))
-#define SMB_VFS_LOCK(fsp, fd, op, offset, count, type) 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1142-g195c519

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  195c519377c2fdc655e25760b52bc0694b8dda81 (commit)
   via  5c01309a2b078f08c4f0caf802d81c9b3d53382f (commit)
  from  4f3ab2c406072e0b43581057e7e785e8ad454cfa (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 195c519377c2fdc655e25760b52bc0694b8dda81
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 17:14:20 2008 +0100

Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().

Michael

commit 5c01309a2b078f08c4f0caf802d81c9b3d53382f
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 16:59:10 2008 +0100

Fix wrong unused opaque macro for kernel_flock().

Michael

---

Summary of changes:
 source/include/vfs.h|3 ++-
 source/include/vfs_macros.h |6 +++---
 source/modules/vfs_default.c|4 ++--
 source/modules/vfs_full_audit.c |6 +++---
 source/modules/vfs_gpfs.c   |2 +-
 source/smbd/open.c  |2 +-
 6 files changed, 12 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/vfs.h b/source/include/vfs.h
index 9cf49bf..3ca602c 100644
--- a/source/include/vfs.h
+++ b/source/include/vfs.h
@@ -88,6 +88,7 @@
 /* Leave at 22 - not yet released. Remove parameter fd from fchown. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from ftruncate. - obnox 
*/
 /* Leave at 22 - not yet released. Remove parameter fd from lock. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from kernel_flock. - 
obnox */
 
 
 #define SMB_VFS_INTERFACE_VERSION 22
@@ -301,7 +302,7 @@ struct vfs_ops {
int (*ntimes)(struct vfs_handle_struct *handle, const char 
*path, const struct timespec ts[2]);
int (*ftruncate)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, SMB_OFF_T offset);
bool (*lock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
-   int (*kernel_flock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, uint32 share_mode);
+   int (*kernel_flock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, uint32 share_mode);
int (*linux_setlease)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, int leasetype);
bool (*getlock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, 
pid_t *ppid);
int (*symlink)(struct vfs_handle_struct *handle, const char 
*oldpath, const char *newpath);
diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h
index 5bc2cbc..b1f094f 100644
--- a/source/include/vfs_macros.h
+++ b/source/include/vfs_macros.h
@@ -71,7 +71,7 @@
 #define SMB_VFS_NTIMES(conn, path, ts) 
((conn)-vfs.ops.ntimes((conn)-vfs.handles.ntimes, (path), (ts)))
 #define SMB_VFS_FTRUNCATE(fsp, offset) 
((fsp)-conn-vfs.ops.ftruncate((fsp)-conn-vfs.handles.ftruncate, (fsp), 
(offset)))
 #define SMB_VFS_LOCK(fsp, op, offset, count, type) 
((fsp)-conn-vfs.ops.lock((fsp)-conn-vfs.handles.lock, (fsp), (op), 
(offset), (count), (type)))
-#define SMB_VFS_KERNEL_FLOCK(fsp, fd, share_mode) 
((fsp)-conn-vfs.ops.kernel_flock((fsp)-conn-vfs.handles.kernel_flock, 
(fsp), (fd), (share_mode)))
+#define SMB_VFS_KERNEL_FLOCK(fsp, share_mode) 
((fsp)-conn-vfs.ops.kernel_flock((fsp)-conn-vfs.handles.kernel_flock, 
(fsp), (share_mode)))
 #define SMB_VFS_LINUX_SETLEASE(fsp, fd, leasetype) 
((fsp)-conn-vfs.ops.linux_setlease((fsp)-conn-vfs.handles.linux_setlease, 
(fsp), (fd), (leasetype)))
 #define SMB_VFS_GETLOCK(fsp, fd, poffset, pcount, ptype, ppid) 
((fsp)-conn-vfs.ops.getlock((fsp)-conn-vfs.handles.getlock, (fsp), (fd) 
,(poffset), (pcount), (ptype), (ppid)))
 #define SMB_VFS_SYMLINK(conn, oldpath, newpath) 
((conn)-vfs.ops.symlink((conn)-vfs.handles.symlink, (oldpath), (newpath)))
@@ -190,7 +190,7 @@
 #define SMB_VFS_OPAQUE_NTIMES(conn, path, ts) 
((conn)-vfs_opaque.ops.ntimes((conn)-vfs_opaque.handles.ntimes, (path), (ts)))
 #define SMB_VFS_OPAQUE_FTRUNCATE(fsp, offset) 
((fsp)-conn-vfs_opaque.ops.ftruncate((fsp)-conn-vfs_opaque.handles.ftruncate,
 (fsp), (offset)))
 #define SMB_VFS_OPAQUE_LOCK(fsp, op, offset, count, type) 
((fsp)-conn-vfs_opaque.ops.lock((fsp)-conn-vfs_opaque.handles.lock, (fsp), 
(op), (offset), (count), (type)))
-#define SMB_VFS_OPAQUE_FLOCK(fsp, fd, share_mode) 
((fsp)-conn-vfs_opaque.ops.lock((fsp)-conn-vfs_opaque.handles.kernel_flock, 
(fsp), (fd), (share_mode)))
+#define SMB_VFS_OPAQUE_KERNEL_FLOCK(fsp, share_mode) 
((fsp)-conn-vfs_opaque.ops.kernel_flock((fsp)-conn-vfs_opaque.handles.kernel_flock,
 (fsp), (share_mode)))
 #define SMB_VFS_OPAQUE_LINUX_SETLEASE(fsp, fd, leasetype) 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1151-gf550ed0

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  f550ed02ff9e0546c63064ab9dac760eac7e1e16 (commit)
   via  ed164b523e63c3ebf2c822a00a877ef169738a3a (commit)
   via  18ae8580420c37aa4b189eb5ce53cc65a9827d95 (commit)
   via  985d45206990988894e05ea6fb0aacc7396a6db4 (commit)
   via  4f9985bb33aa5973e6b685a45039c8e227487db1 (commit)
   via  89669c66f27fb47c9769d1058e29bff83f862752 (commit)
   via  5abae9ef15fa9884c5c4a0e256274f70f6ecd779 (commit)
   via  e7258a4408e40686ff090d0f8e120ce78acbd097 (commit)
   via  a72ad63163a8c642ea762087a739e6d63c37647a (commit)
  from  195c519377c2fdc655e25760b52bc0694b8dda81 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit f550ed02ff9e0546c63064ab9dac760eac7e1e16
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 19:31:20 2008 +0100

Add libnet_join_find_machine_acct().

Guenther

commit ed164b523e63c3ebf2c822a00a877ef169738a3a
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 19:11:26 2008 +0100

Honor the WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag when unjoining from AD.

Guenther

commit 18ae8580420c37aa4b189eb5ce53cc65a9827d95
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 19:07:38 2008 +0100

Rearrange libnet join code and add support for account pre-creation in AD.

Guenther

commit 985d45206990988894e05ea6fb0aacc7396a6db4
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:58:04 2008 +0100

Add ADS_STRUCTs to libnetjoin and -unjoin, with talloc destructors.

Guenther

commit 4f9985bb33aa5973e6b685a45039c8e227487db1
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:46:07 2008 +0100

Add error_string to libnetjoin and libnetunjoin structures incl. set 
functions.

Guenther

commit 89669c66f27fb47c9769d1058e29bff83f862752
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:41:49 2008 +0100

Rearrange order of libnet join context init.

Guenther

commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:40:25 2008 +0100

Free libnet_JoinCtx after joining.

Guenther

commit e7258a4408e40686ff090d0f8e120ce78acbd097
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:37:04 2008 +0100

Close registry in libnetapi_free().

Guenther

commit a72ad63163a8c642ea762087a739e6d63c37647a
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 18:36:06 2008 +0100

Add NET_API_STATUS_SUCCESS define.

Guenther

---

Summary of changes:
 source/lib/netapi/joindomain.c |   11 +-
 source/lib/netapi/netapi.c |   19 +-
 source/lib/netapi/netapi.h |6 +-
 source/libnet/libnet_join.c|  397 +---
 source/libnet/libnet_join.h|5 +
 5 files changed, 402 insertions(+), 36 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/joindomain.c b/source/lib/netapi/joindomain.c
index c7849c9..ceb7ca1 100644
--- a/source/lib/netapi/joindomain.c
+++ b/source/lib/netapi/joindomain.c
@@ -33,13 +33,13 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx 
*mem_ctx,
struct libnet_JoinCtx *r = NULL;
WERROR werr;
 
-   werr = libnet_init_JoinCtx(mem_ctx, r);
-   W_ERROR_NOT_OK_RETURN(werr);
-
if (!domain_name) {
return WERR_INVALID_PARAM;
}
 
+   werr = libnet_init_JoinCtx(mem_ctx, r);
+   W_ERROR_NOT_OK_RETURN(werr);
+
r-in.domain_name = talloc_strdup(mem_ctx, domain_name);
W_ERROR_HAVE_NO_MEMORY(r-in.domain_name);
 
@@ -77,7 +77,10 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx 
*mem_ctx,
r-in.join_flags = join_flags;
r-in.modify_config = true;
 
-   return libnet_Join(mem_ctx, r);
+   werr = libnet_Join(mem_ctx, r);
+   TALLOC_FREE(r);
+
+   return werr;
 }
 
 static WERROR NetJoinDomainRemote(struct libnetapi_ctx *ctx,
diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c
index 9c418f2..33ca67e 100644
--- a/source/lib/netapi/netapi.c
+++ b/source/lib/netapi/netapi.c
@@ -32,7 +32,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
 
if (stat_ctx  libnetapi_initialized) {
*context = stat_ctx;
-   return W_ERROR_V(WERR_OK);
+   return NET_API_STATUS_SUCCESS;
}
 
frame = talloc_stackframe();
@@ -69,14 +69,14 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx 
**context)
 
*context = stat_ctx = ctx;
 
-   return W_ERROR_V(WERR_OK);
+   return NET_API_STATUS_SUCCESS;
 }
 
 NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx)
 {
if (stat_ctx) {
*ctx = stat_ctx;
-   return W_ERROR_V(WERR_OK);
+ 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1156-gb624db9

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  b624db92d61809a44881abbdd09dfa3a74ff7a88 (commit)
   via  0f0f0e13022da584b77e850fec2cef6169e1ac28 (commit)
   via  f8806bad8134d544229c426f58bee143ba752cf8 (commit)
   via  df2b078fa1658bdbff1280f7fe0b062d9eabd60c (commit)
   via  863fb30038e384585502f0154a742481594b99d0 (commit)
  from  f550ed02ff9e0546c63064ab9dac760eac7e1e16 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit b624db92d61809a44881abbdd09dfa3a74ff7a88
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:10:47 2008 +0100

In libnetapi example, use libnetapi_get_error_string().

Guenther

commit 0f0f0e13022da584b77e850fec2cef6169e1ac28
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:08:45 2008 +0100

In the local path of NetJoinDomain, try to get error string from libnetjoin.

Guenther

commit f8806bad8134d544229c426f58bee143ba752cf8
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:06:41 2008 +0100

Add libnetapi_set_error_string and libnetapi_get_error_string.

Guenther

commit df2b078fa1658bdbff1280f7fe0b062d9eabd60c
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:03:32 2008 +0100

Add krb5 cc env to libnetapi_ctx.

Guenther

commit 863fb30038e384585502f0154a742481594b99d0
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:01:28 2008 +0100

Let libnetapi use it's own krb5 cred cache in memory if necessary.

Guenther

---

Summary of changes:
 source/lib/netapi/examples/netdomjoin/netdomjoin.c |7 ++-
 source/lib/netapi/joindomain.c |3 +
 source/lib/netapi/netapi.c |   60 +++-
 source/lib/netapi/netapi.h |   14 -
 4 files changed, 79 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/examples/netdomjoin/netdomjoin.c 
b/source/lib/netapi/examples/netdomjoin/netdomjoin.c
index 634d265..a0ac0b1 100644
--- a/source/lib/netapi/examples/netdomjoin/netdomjoin.c
+++ b/source/lib/netapi/examples/netdomjoin/netdomjoin.c
@@ -104,7 +104,12 @@ int main(int argc, char **argv)
   password,
   join_flags);
if (status != 0) {
-   printf(Join failed with: %s\n, libnetapi_errstr(ctx, status));
+   const char *errstr = NULL;
+   errstr = libnetapi_get_error_string(ctx);
+   if (!errstr) {
+   errstr = libnetapi_errstr(ctx, status);
+   }
+   printf(Join failed with: %s\n, errstr);
} else {
printf(Successfully joined\n);
}
diff --git a/source/lib/netapi/joindomain.c b/source/lib/netapi/joindomain.c
index ceb7ca1..aa8ec6e 100644
--- a/source/lib/netapi/joindomain.c
+++ b/source/lib/netapi/joindomain.c
@@ -78,6 +78,9 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx 
*mem_ctx,
r-in.modify_config = true;
 
werr = libnet_Join(mem_ctx, r);
+   if (!W_ERROR_IS_OK(werr)  r-out.error_string) {
+   libnetapi_set_error_string(mem_ctx, r-out.error_string);
+   }
TALLOC_FREE(r);
 
return werr;
diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c
index 33ca67e..d5527dc 100644
--- a/source/lib/netapi/netapi.c
+++ b/source/lib/netapi/netapi.c
@@ -26,9 +26,13 @@ struct libnetapi_ctx *stat_ctx = NULL;
 TALLOC_CTX *frame = NULL;
 static bool libnetapi_initialized = false;
 
+/
+/
+
 NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
 {
struct libnetapi_ctx *ctx = NULL;
+   char *krb5_cc_env = NULL;
 
if (stat_ctx  libnetapi_initialized) {
*context = stat_ctx;
@@ -65,6 +69,12 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
 
BlockSignals(True, SIGPIPE);
 
+   krb5_cc_env = getenv(KRB5_ENV_CCNAME);
+   if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {
+   ctx-krb5_cc_env = talloc_strdup(frame, MEMORY:libnetapi);
+   setenv(KRB5_ENV_CCNAME, ctx-krb5_cc_env, 1);
+   }
+
libnetapi_initialized = true;
 
*context = stat_ctx = ctx;
@@ -72,6 +82,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
return NET_API_STATUS_SUCCESS;
 }
 
+/
+/
+
 NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx)
 {
if (stat_ctx) {
@@ -82,6 +95,9 @@ NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx)
return 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1157-g3e816d7

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  3e816d7555218192881d79645fca26981a7099c7 (commit)
  from  b624db92d61809a44881abbdd09dfa3a74ff7a88 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 3e816d7555218192881d79645fca26981a7099c7
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:16:57 2008 +0100

Merge remaining post-AD-join functions from net into libnet_join.

Guenther

---

Summary of changes:
 source/libnet/libnet_join.c |  184 +++
 source/libnet/libnet_join.h |3 +-
 2 files changed, 186 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index bc775a9..4149116 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -252,6 +252,190 @@ static ADS_STATUS 
libnet_join_find_machine_acct(TALLOC_CTX *mem_ctx,
 /
 /
 
+static ADS_STATUS libnet_join_set_machine_spn(TALLOC_CTX *mem_ctx,
+ struct libnet_JoinCtx *r)
+{
+   ADS_STATUS status;
+   ADS_MODLIST mods;
+   fstring my_fqdn;
+   const char *spn_array[3] = {NULL, NULL, NULL};
+   char *spn = NULL;
+
+   if (!r-in.ads) {
+   status = libnet_join_connect_ads(mem_ctx, r);
+   if (!ADS_ERR_OK(status)) {
+   return status;
+   }
+   }
+
+   status = libnet_join_find_machine_acct(mem_ctx, r);
+   if (!ADS_ERR_OK(status)) {
+   return status;
+   }
+
+   spn = talloc_asprintf(mem_ctx, HOST/%s, r-in.machine_name);
+   if (!spn) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+   strupper_m(spn);
+   spn_array[0] = spn;
+
+   if (name_to_fqdn(my_fqdn, r-in.machine_name) 
+   !strequal(my_fqdn, r-in.machine_name)) {
+
+   strlower_m(my_fqdn);
+   spn = talloc_asprintf(mem_ctx, HOST/%s, my_fqdn);
+   if (!spn) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+   spn_array[1] = spn;
+   }
+
+   mods = ads_init_mods(mem_ctx);
+   if (!mods) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+
+   status = ads_mod_str(mem_ctx, mods, dNSHostName, my_fqdn);
+   if (!ADS_ERR_OK(status)) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+
+   status = ads_mod_strlist(mem_ctx, mods, servicePrincipalName,
+spn_array);
+   if (!ADS_ERR_OK(status)) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+
+   return ads_gen_mod(r-in.ads, r-out.dn, mods);
+}
+
+/
+/
+
+static ADS_STATUS libnet_join_set_machine_upn(TALLOC_CTX *mem_ctx,
+ struct libnet_JoinCtx *r)
+{
+   ADS_STATUS status;
+   ADS_MODLIST mods;
+
+   if (!r-in.create_upn) {
+   return ADS_SUCCESS;
+   }
+
+   if (!r-in.ads) {
+   status = libnet_join_connect_ads(mem_ctx, r);
+   if (!ADS_ERR_OK(status)) {
+   return status;
+   }
+   }
+
+   status = libnet_join_find_machine_acct(mem_ctx, r);
+   if (!ADS_ERR_OK(status)) {
+   return status;
+   }
+
+   if (!r-in.upn) {
+   r-in.upn = talloc_asprintf(mem_ctx,
+   host/[EMAIL PROTECTED],
+   r-in.machine_name,
+   r-out.dns_domain_name);
+   if (!r-in.upn) {
+   return ADS_ERROR(LDAP_NO_MEMORY);
+   }
+   }
+
+   mods = ads_init_mods(mem_ctx);
+   if (!mods) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+
+   status = ads_mod_str(mem_ctx, mods, userPrincipalName, r-in.upn);
+   if (!ADS_ERR_OK(status)) {
+   return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
+   }
+
+   return ads_gen_mod(r-in.ads, r-out.dn, mods);
+}
+
+
+/
+/
+
+static ADS_STATUS libnet_join_set_os_attributes(TALLOC_CTX *mem_ctx,
+   struct libnet_JoinCtx *r)
+{
+   ADS_STATUS status;
+   ADS_MODLIST mods;
+   char *os_sp = NULL;
+
+   if (!r-in.os_name || !r-in.os_version ) {
+   return ADS_SUCCESS;
+   }
+
+   if 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1158-g1436670

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  1436670854ae635cfa2a69939d3ac31da87c3f66 (commit)
  from  3e816d7555218192881d79645fca26981a7099c7 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 1436670854ae635cfa2a69939d3ac31da87c3f66
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:20:03 2008 +0100

Finally use libnet_join_set_* functions in libnetjoin.

Guenther

---

Summary of changes:
 source/libnet/libnet_join.c |   30 ++
 1 files changed, 30 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 4149116..94fa62e 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -990,6 +990,36 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
return WERR_SETUP_NOT_JOINED;
}
 
+   ads_status = libnet_join_set_machine_spn(mem_ctx, r);
+   if (!ADS_ERR_OK(ads_status)) {
+   libnet_join_set_error_string(mem_ctx, r,
+   failed to set machine spn: %s\n,
+   ads_errstr(ads_status));
+   return WERR_GENERAL_FAILURE;
+   }
+
+   ads_status = libnet_join_set_os_attributes(mem_ctx, r);
+   if (!ADS_ERR_OK(ads_status)) {
+   libnet_join_set_error_string(mem_ctx, r,
+   failed to set machine os attributes: %s\n,
+   ads_errstr(ads_status));
+   return WERR_GENERAL_FAILURE;
+   }
+
+   ads_status = libnet_join_set_machine_upn(mem_ctx, r);
+   if (!ADS_ERR_OK(ads_status)) {
+   libnet_join_set_error_string(mem_ctx, r,
+   failed to set machine upn: %s\n,
+   ads_errstr(ads_status));
+   return WERR_GENERAL_FAILURE;
+   }
+
+   if (!libnet_join_create_keytab(mem_ctx, r)) {
+   libnet_join_set_error_string(mem_ctx, r,
+   failed to create kerberos keytab\n);
+   return WERR_GENERAL_FAILURE;
+   }
+
return WERR_OK;
 }
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1159-g83ed370

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  83ed37023c2be4c6b4d99d8117ac8438a413112c (commit)
  from  1436670854ae635cfa2a69939d3ac31da87c3f66 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 83ed37023c2be4c6b4d99d8117ac8438a413112c
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:41:55 2008 +0100

There is no LDAP in some corners of this world. Fix the build...

Guenther

---

Summary of changes:
 source/libnet/libnet_join.c |   16 
 1 files changed, 12 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 94fa62e..5c64778 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -58,6 +58,8 @@ static void libnet_unjoin_set_error_string(TALLOC_CTX 
*mem_ctx,
r-out.error_string = tmp;
 }
 
+#ifdef WITH_LDAP
+
 /
 /
 
@@ -416,6 +418,8 @@ static ADS_STATUS libnet_join_set_os_attributes(TALLOC_CTX 
*mem_ctx,
return ads_gen_mod(r-in.ads, r-out.dn, mods);
 }
 
+#endif
+
 /
 /
 
@@ -426,10 +430,11 @@ static bool libnet_join_create_keytab(TALLOC_CTX *mem_ctx,
return true;
}
 
+#ifdef WITH_ADS
if (!ads_keytab_create_default(r-in.ads)) {
return false;
}
-
+#endif
return true;
 }
 
@@ -959,6 +964,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
struct libnet_JoinCtx *r)
 {
NTSTATUS status;
+#ifdef WITH_LDAP
ADS_STATUS ads_status;
 
if (r-in.account_ou) {
@@ -977,7 +983,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
 
r-in.join_flags = ~WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE;
}
-
+#endif
status = libnet_join_joindomain_rpc(mem_ctx, r);
if (!NT_STATUS_IS_OK(status)) {
if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
@@ -990,6 +996,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
return WERR_SETUP_NOT_JOINED;
}
 
+#ifdef WITH_LDAP
ads_status = libnet_join_set_machine_spn(mem_ctx, r);
if (!ADS_ERR_OK(ads_status)) {
libnet_join_set_error_string(mem_ctx, r,
@@ -1013,7 +1020,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
ads_errstr(ads_status));
return WERR_GENERAL_FAILURE;
}
-
+#endif
if (!libnet_join_create_keytab(mem_ctx, r)) {
libnet_join_set_error_string(mem_ctx, r,
failed to create kerberos keytab\n);
@@ -1074,6 +1081,7 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
return ntstatus_to_werror(status);
}
 
+#ifdef WITH_LDAP
if (r-in.unjoin_flags  WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE) {
ADS_STATUS ads_status;
libnet_unjoin_connect_ads(mem_ctx, r);
@@ -1084,7 +1092,7 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
ads_errstr(ads_status));
}
}
-
+#endif
libnet_join_unjoindomain_remove_secrets(mem_ctx, r);
 
return WERR_OK;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1160-g079f2eb

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  079f2eba81886707ea4b18f103e097dbac994b2f (commit)
  from  83ed37023c2be4c6b4d99d8117ac8438a413112c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 079f2eba81886707ea4b18f103e097dbac994b2f
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 20:56:34 2008 +0100

Trying to make the buildfarm w/o krb5 happy.

Guenther

---

Summary of changes:
 source/libnet/libnet_join.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 5c64778..f4c0dfa 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -430,7 +430,7 @@ static bool libnet_join_create_keytab(TALLOC_CTX *mem_ctx,
return true;
}
 
-#ifdef WITH_ADS
+#ifdef WITH_KRB5
if (!ads_keytab_create_default(r-in.ads)) {
return false;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1164-g66be770

2008-01-07 Thread Volker Lendecke
The branch, v3-2-test has been updated
   via  66be770993acf4e1673e9615bcddb21768c33e62 (commit)
   via  88d82d0623e71ae1ef4f8fdefba10e3a230ea526 (commit)
   via  921c8657e2eeb71d5b9ae2675255a852b26cc30d (commit)
   via  c0c2084d40b79e949dab7c68626aa665b9ea1a8e (commit)
  from  079f2eba81886707ea4b18f103e097dbac994b2f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 66be770993acf4e1673e9615bcddb21768c33e62
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon Jan 7 12:57:10 2008 +0100

Do not talloc_strdup filename and servicepath

commit 88d82d0623e71ae1ef4f8fdefba10e3a230ea526
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon Jan 7 00:41:26 2008 +0100

make db_tdb_fetch use tdb_parse_record

commit 921c8657e2eeb71d5b9ae2675255a852b26cc30d
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon Jan 7 00:14:24 2008 +0100

Change db_tdb_fetch_locked to use only one talloc

commit c0c2084d40b79e949dab7c68626aa665b9ea1a8e
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Sun Jan 6 17:25:20 2008 +0100

talloc_stackframe only needs 1 talloc

---

Summary of changes:
 source/lib/dbwrap_tdb.c   |  132 +
 source/lib/talloc_stack.c |   18 +++
 source/locking/locking.c  |   24 +++--
 3 files changed, 100 insertions(+), 74 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/dbwrap_tdb.c b/source/lib/dbwrap_tdb.c
index b24fd06..83a0d11 100644
--- a/source/lib/dbwrap_tdb.c
+++ b/source/lib/dbwrap_tdb.c
@@ -43,33 +43,50 @@ static int db_tdb_record_destr(struct db_record* data)
return 0;
 }
 
-static struct db_record *db_tdb_fetch_locked(struct db_context *db,
-TALLOC_CTX *mem_ctx, TDB_DATA key)
-{
-   struct db_tdb_ctx *ctx = talloc_get_type_abort(db-private_data,
-  struct db_tdb_ctx);
+struct tdb_fetch_locked_state {
+   TALLOC_CTX *mem_ctx;
struct db_record *result;
-   TDB_DATA value;
+};
 
-   result = TALLOC_P(mem_ctx, struct db_record);
-   if (result == NULL) {
-   DEBUG(0, (talloc failed\n));
-   return NULL;
+static int db_tdb_fetchlock_parse(TDB_DATA key, TDB_DATA data,
+ void *private_data)
+{
+   struct tdb_fetch_locked_state *state =
+   (struct tdb_fetch_locked_state *)private_data;
+
+   state-result = (struct db_record *)talloc_size(
+   state-mem_ctx,
+   sizeof(struct db_record) + key.dsize + data.dsize);
+
+   if (state-result == NULL) {
+   return 0;
}
 
-   result-key.dsize = key.dsize;
-   result-key.dptr = (uint8 *)talloc_memdup(result, key.dptr, key.dsize);
-   if (result-key.dptr == NULL) {
-   DEBUG(0, (talloc failed\n));
-   TALLOC_FREE(result);
-   return NULL;
+   state-result-key.dsize = key.dsize;
+   state-result-key.dptr = ((uint8 *)state-result)
+   + sizeof(struct db_record);
+   memcpy(state-result-key.dptr, key.dptr, key.dsize);
+
+   state-result-value.dsize = data.dsize;
+
+   if (data.dsize  0) {
+   state-result-value.dptr = state-result-key.dptr+key.dsize;
+   memcpy(state-result-value.dptr, data.dptr, data.dsize);
}
+   else {
+   state-result-value.dptr = NULL;
+   }
+
+   return 0;
+}
 
-   result-value.dptr = NULL;
-   result-value.dsize = 0;
-   result-private_data = talloc_reference(result, ctx);
-   result-store = db_tdb_store;
-   result-delete_rec = db_tdb_delete;
+static struct db_record *db_tdb_fetch_locked(struct db_context *db,
+TALLOC_CTX *mem_ctx, TDB_DATA key)
+{
+   struct db_tdb_ctx *ctx = talloc_get_type_abort(db-private_data,
+  struct db_tdb_ctx);
+   struct tdb_fetch_locked_state state;
+   int res;
 
if (DEBUGLEVEL = 10) {
char *keystr = hex_encode(NULL, key.dptr, key.dsize);
@@ -81,32 +98,56 @@ static struct db_record *db_tdb_fetch_locked(struct 
db_context *db,
 
if (tdb_chainlock(ctx-wtdb-tdb, key) != 0) {
DEBUG(3, (tdb_chainlock failed\n));
-   TALLOC_FREE(result);
return NULL;
}
 
-   talloc_set_destructor(result, db_tdb_record_destr);
+   state.mem_ctx = mem_ctx;
+   state.result = NULL;
 
-   value = tdb_fetch(ctx-wtdb-tdb, key);
+   res = tdb_parse_record(ctx-wtdb-tdb, key, db_tdb_fetchlock_parse,
+  state);
 
-   if (value.dptr == NULL) {
-   return result;
+   if (state.result == NULL) {
+   

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1166-gee5a20b

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  ee5a20becdcdb20d7012732b324c6938fab44f67 (commit)
   via  8880eb82f16d561a4023ec8426f8ea35c579a7a6 (commit)
  from  66be770993acf4e1673e9615bcddb21768c33e62 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit ee5a20becdcdb20d7012732b324c6938fab44f67
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 22:18:50 2008 +0100

Remove redundant parameter fd from SMB_VFS_GETLOCK().

Michael

commit 8880eb82f16d561a4023ec8426f8ea35c579a7a6
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 21:47:53 2008 +0100

Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().

Michael

---

Summary of changes:
 source/include/vfs.h|6 --
 source/include/vfs_macros.h |   12 ++--
 source/locking/posix.c  |4 ++--
 source/modules/vfs_default.c|   10 +-
 source/modules/vfs_full_audit.c |   12 ++--
 source/modules/vfs_gpfs.c   |8 
 source/smbd/oplock_linux.c  |4 ++--
 7 files changed, 29 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/vfs.h b/source/include/vfs.h
index 3ca602c..8fbf3ea 100644
--- a/source/include/vfs.h
+++ b/source/include/vfs.h
@@ -89,6 +89,8 @@
 /* Leave at 22 - not yet released. Remove parameter fd from ftruncate. - obnox 
*/
 /* Leave at 22 - not yet released. Remove parameter fd from lock. - obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from kernel_flock. - 
obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from linux_setlease. - 
obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from getlock. - obnox */
 
 
 #define SMB_VFS_INTERFACE_VERSION 22
@@ -303,8 +305,8 @@ struct vfs_ops {
int (*ftruncate)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, SMB_OFF_T offset);
bool (*lock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
int (*kernel_flock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, uint32 share_mode);
-   int (*linux_setlease)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, int leasetype);
-   bool (*getlock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, 
pid_t *ppid);
+   int (*linux_setlease)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int leasetype);
+   bool (*getlock)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t 
*ppid);
int (*symlink)(struct vfs_handle_struct *handle, const char 
*oldpath, const char *newpath);
int (*readlink)(struct vfs_handle_struct *handle, const char 
*path, char *buf, size_t bufsiz);
int (*link)(struct vfs_handle_struct *handle, const char 
*oldpath, const char *newpath);
diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h
index b1f094f..35b2630 100644
--- a/source/include/vfs_macros.h
+++ b/source/include/vfs_macros.h
@@ -72,8 +72,8 @@
 #define SMB_VFS_FTRUNCATE(fsp, offset) 
((fsp)-conn-vfs.ops.ftruncate((fsp)-conn-vfs.handles.ftruncate, (fsp), 
(offset)))
 #define SMB_VFS_LOCK(fsp, op, offset, count, type) 
((fsp)-conn-vfs.ops.lock((fsp)-conn-vfs.handles.lock, (fsp), (op), 
(offset), (count), (type)))
 #define SMB_VFS_KERNEL_FLOCK(fsp, share_mode) 
((fsp)-conn-vfs.ops.kernel_flock((fsp)-conn-vfs.handles.kernel_flock, 
(fsp), (share_mode)))
-#define SMB_VFS_LINUX_SETLEASE(fsp, fd, leasetype) 
((fsp)-conn-vfs.ops.linux_setlease((fsp)-conn-vfs.handles.linux_setlease, 
(fsp), (fd), (leasetype)))
-#define SMB_VFS_GETLOCK(fsp, fd, poffset, pcount, ptype, ppid) 
((fsp)-conn-vfs.ops.getlock((fsp)-conn-vfs.handles.getlock, (fsp), (fd) 
,(poffset), (pcount), (ptype), (ppid)))
+#define SMB_VFS_LINUX_SETLEASE(fsp, leasetype) 
((fsp)-conn-vfs.ops.linux_setlease((fsp)-conn-vfs.handles.linux_setlease, 
(fsp), (leasetype)))
+#define SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, ppid) 
((fsp)-conn-vfs.ops.getlock((fsp)-conn-vfs.handles.getlock, (fsp), 
(poffset), (pcount), (ptype), (ppid)))
 #define SMB_VFS_SYMLINK(conn, oldpath, newpath) 
((conn)-vfs.ops.symlink((conn)-vfs.handles.symlink, (oldpath), (newpath)))
 #define SMB_VFS_READLINK(conn, path, buf, bufsiz) 
((conn)-vfs.ops.readlink((conn)-vfs.handles.readlink, (path), (buf), 
(bufsiz)))
 #define SMB_VFS_LINK(conn, oldpath, newpath) 
((conn)-vfs.ops.link((conn)-vfs.handles.link, (oldpath), (newpath)))
@@ -191,8 +191,8 @@
 #define SMB_VFS_OPAQUE_FTRUNCATE(fsp, offset) 
((fsp)-conn-vfs_opaque.ops.ftruncate((fsp)-conn-vfs_opaque.handles.ftruncate,
 (fsp), 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1167-g01e9151

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  01e9151546a83e0c772a144efa85437ca0c8a307 (commit)
  from  ee5a20becdcdb20d7012732b324c6938fab44f67 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 01e9151546a83e0c772a144efa85437ca0c8a307
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 22:48:19 2008 +0100

Enable talloc reporting in libnetapi if DEVELOPER compiled.

Guenther

---

Summary of changes:
 source/lib/netapi/netapi.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c
index d5527dc..61b5190 100644
--- a/source/lib/netapi/netapi.c
+++ b/source/lib/netapi/netapi.c
@@ -39,6 +39,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
return NET_API_STATUS_SUCCESS;
}
 
+#ifdef DEVELOPER
+   talloc_enable_leak_report();
+#endif
frame = talloc_stackframe();
 
ctx = talloc_zero(frame, struct libnetapi_ctx);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1168-g41c129d

2008-01-07 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  41c129da3d33f9fc2864d360e4b6ec5a72caf2a3 (commit)
  from  01e9151546a83e0c772a144efa85437ca0c8a307 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 41c129da3d33f9fc2864d360e4b6ec5a72caf2a3
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Mon Jan 7 23:05:58 2008 +0100

Refactor our DsGetDcName call a bit (before it will move into libnetapi).

Guenther

---

Summary of changes:
 source/libsmb/dsgetdcname.c |  117 +--
 1 files changed, 101 insertions(+), 16 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c
index f8089cb..fa6cbe1 100644
--- a/source/libsmb/dsgetdcname.c
+++ b/source/libsmb/dsgetdcname.c
@@ -4,7 +4,7 @@
DsGetDcname
 
Copyright (C) Gerald Carter 2006
-   Copyright (C) Guenther Deschner 2007
+   Copyright (C) Guenther Deschner 2007-2008
 
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
@@ -891,28 +891,72 @@ static NTSTATUS DsGetDcName_rediscover(TALLOC_CTX 
*mem_ctx,
 }
 
 /
- DsGetDcName.
+/
 
- This will be the only public function here.
+NTSTATUS DsGetDcName_remote(TALLOC_CTX *mem_ctx,
+   const char *computer_name,
+   const char *domain_name,
+   struct GUID *domain_guid,
+   const char *site_name,
+   uint32_t flags,
+   struct DS_DOMAIN_CONTROLLER_INFO **info)
+{
+   WERROR werr;
+   NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
+   struct cli_state *cli = NULL;
+   struct rpc_pipe_client *pipe_cli = NULL;
+
+   status = cli_full_connection(cli, NULL, computer_name,
+NULL, 0,
+IPC$, IPC,
+,
+,
+,
+0, Undefined, NULL);
+
+   if (!NT_STATUS_IS_OK(status)) {
+   goto done;
+   }
+
+   pipe_cli = cli_rpc_pipe_open_noauth(cli, PI_NETLOGON,
+   status);
+   if (!pipe_cli) {
+   goto done;
+   }
+
+   werr = rpccli_netlogon_dsr_getdcname(pipe_cli,
+mem_ctx,
+computer_name,
+domain_name,
+domain_guid,
+NULL,
+flags,
+info);
+   status = werror_to_ntstatus(werr);
+
+ done:
+   cli_rpc_pipe_close(pipe_cli);
+   if (cli) {
+   cli_shutdown(cli);
+   }
+
+   return status;
+}
+
+/
 /
 
-NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
-const char *computer_name,
-const char *domain_name,
-struct GUID *domain_guid,
-const char *site_name,
-uint32_t flags,
-struct DS_DOMAIN_CONTROLLER_INFO **info)
+NTSTATUS DsGetDcName_local(TALLOC_CTX *mem_ctx,
+  const char *computer_name,
+  const char *domain_name,
+  struct GUID *domain_guid,
+  const char *site_name,
+  uint32_t flags,
+  struct DS_DOMAIN_CONTROLLER_INFO **info)
 {
NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
struct DS_DOMAIN_CONTROLLER_INFO *myinfo = NULL;
 
-   DEBUG(10,(DsGetDcName: computer_name: %s, domain_name: %s, 
- domain_guid: %s, site_name: %s, flags: 0x%08x\n,
- computer_name, domain_name,
- domain_guid ? GUID_string(mem_ctx, domain_guid) : (null),
- site_name, flags));
-
*info = NULL;
 
if (!check_allowed_required_flags(flags)) {
@@ -947,3 +991,44 @@ NTSTATUS DsGetDcName(TALLOC_CTX *mem_ctx,
 
return status;
 }
+
+/
+ DsGetDcName.
+
+ This will be the only public function here.
+/
+
+NTSTATUS 

svn commit: samba r26691 - in branches/SAMBA_4_0: . source/setup

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 22:34:53 + (Mon, 07 Jan 2008)
New Revision: 26691

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

Log:
registry: Add subkeys required for Server Manager Alerts and Peplication. See 
bugs 4934 and 4935.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/setup/provision.reg


Changeset:

Property changes on: branches/SAMBA_4_0
___
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/setup/provision.reg
===
--- branches/SAMBA_4_0/source/setup/provision.reg   2008-01-07 22:34:46 UTC 
(rev 26690)
+++ branches/SAMBA_4_0/source/setup/provision.reg   2008-01-07 22:34:53 UTC 
(rev 26691)
@@ -26,6 +26,15 @@
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters]
 RefusePasswordChange=REG_DWORD:0
 
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\REPLICATOR]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\REPLICATOR\Parameters]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Alerter]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Alerter\Parameters]
+
 [HKEY_USERS]
 
 [HKEY_CLASSES_ROOT]
+



Rev 735: show start/stop time of recovery on all nodes in http://samba.org/~tridge/ctdb

2008-01-07 Thread tridge

revno: 735
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge.stable
timestamp: Tue 2008-01-08 09:30:11 +1100
message:
  show start/stop time of recovery on all nodes
modified:
  server/ctdb_recover.c  
ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1
=== modified file 'server/ctdb_recover.c'
--- a/server/ctdb_recover.c 2008-01-07 03:31:13 +
+++ b/server/ctdb_recover.c 2008-01-07 22:30:11 +
@@ -509,6 +509,11 @@
return -1;
}
 
+   if (recmode != ctdb-recovery_mode) {
+   DEBUG(0,(__location__  Recovery mode set to %s\n, 
+recmode==CTDB_RECOVERY_NORMAL?NORMAL:ACTIVE));
+   }
+
if (recmode != CTDB_RECOVERY_NORMAL ||
ctdb-recovery_mode != CTDB_RECOVERY_ACTIVE) {
ctdb-recovery_mode = recmode;



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

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 22:34:46 + (Mon, 07 Jan 2008)
New Revision: 26690

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

Log:
torture: Move torture_context_init() to the ui.c, where all functions related 
to it are.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/torture/torture.c
   branches/SAMBA_4_0/source/torture/ui.c


Changeset:

Property changes on: branches/SAMBA_4_0
___
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/torture/torture.c
===
--- branches/SAMBA_4_0/source/torture/torture.c 2008-01-07 14:11:29 UTC (rev 
26689)
+++ branches/SAMBA_4_0/source/torture/torture.c 2008-01-07 22:34:46 UTC (rev 
26690)
@@ -23,9 +23,8 @@
 #include torture/torture.h
 #include build.h
 #include lib/util/dlinklist.h
-#include auth/credentials/credentials.h
-#include lib/cmdline/popt_common.h
 #include param/param.h
+#include lib/cmdline/popt_common.h
 
 _PUBLIC_ int torture_numops=10;
 _PUBLIC_ int torture_entries=1000;
@@ -46,22 +45,7 @@
return torture_suite_add_suite(torture_root, suite);
 }
 
-struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx, 
-const struct torture_ui_ops 
*ui_ops)
-{
-   struct torture_context *torture = talloc_zero(mem_ctx, 
- struct torture_context);
-   torture-ui_ops = ui_ops;
-   torture-returncode = true;
-   torture-ev = cli_credentials_get_event_context(cmdline_credentials);
 
-   if (ui_ops-init)
-   ui_ops-init(torture);
-
-   return torture;
-}
-
-
 int torture_init(void)
 {
init_module_fn static_init[] = { STATIC_torture_MODULES };

Modified: branches/SAMBA_4_0/source/torture/ui.c
===
--- branches/SAMBA_4_0/source/torture/ui.c  2008-01-07 14:11:29 UTC (rev 
26689)
+++ branches/SAMBA_4_0/source/torture/ui.c  2008-01-07 22:34:46 UTC (rev 
26690)
@@ -24,7 +24,24 @@
 #include lib/util/dlinklist.h
 #include param/param.h
 #include system/filesys.h
+#include auth/credentials/credentials.h
+#include lib/cmdline/popt_common.h
 
+struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx, 
+const struct torture_ui_ops 
*ui_ops)
+{
+   struct torture_context *torture = talloc_zero(mem_ctx, 
+ struct torture_context);
+   torture-ui_ops = ui_ops;
+   torture-returncode = true;
+   torture-ev = cli_credentials_get_event_context(cmdline_credentials);
+
+   if (ui_ops-init)
+   ui_ops-init(torture);
+
+   return torture;
+}
+
 /**
  create a temporary directory.
 */



[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1169-g42663e8

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  42663e8736e1a3dfb57e0aafdcbf5fec880da779 (commit)
  from  41c129da3d33f9fc2864d360e4b6ec5a72caf2a3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 42663e8736e1a3dfb57e0aafdcbf5fec880da779
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon Jan 7 23:53:34 2008 +0100

Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().

Michael

---

Summary of changes:
 source/include/vfs.h|2 +-
 source/include/vfs_macros.h |6 +++---
 source/lib/sysacls.c|   26 +-
 source/modules/vfs_aixacl.c |9 -
 source/modules/vfs_aixacl2.c|3 +--
 source/modules/vfs_default.c|4 ++--
 source/modules/vfs_full_audit.c |9 -
 source/modules/vfs_gpfs.c   |3 +--
 source/modules/vfs_hpuxacl.c|5 ++---
 source/modules/vfs_irixacl.c|3 +--
 source/modules/vfs_posixacl.c   |5 ++---
 source/modules/vfs_tru64acl.c   |5 ++---
 source/smbd/posix_acls.c|8 
 source/smbd/trans2.c|2 +-
 14 files changed, 41 insertions(+), 49 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/vfs.h b/source/include/vfs.h
index 8fbf3ea..97648e7 100644
--- a/source/include/vfs.h
+++ b/source/include/vfs.h
@@ -352,7 +352,7 @@ struct vfs_ops {
int (*sys_acl_get_permset)(struct vfs_handle_struct *handle, 
SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T *permset_p);
void * (*sys_acl_get_qualifier)(struct vfs_handle_struct 
*handle, SMB_ACL_ENTRY_T entry_d);
SMB_ACL_T (*sys_acl_get_file)(struct vfs_handle_struct *handle, 
const char *path_p, SMB_ACL_TYPE_T type);
-   SMB_ACL_T (*sys_acl_get_fd)(struct vfs_handle_struct *handle, 
struct files_struct *fsp, int fd);
+   SMB_ACL_T (*sys_acl_get_fd)(struct vfs_handle_struct *handle, 
struct files_struct *fsp);
int (*sys_acl_clear_perms)(struct vfs_handle_struct *handle, 
SMB_ACL_PERMSET_T permset);
int (*sys_acl_add_perm)(struct vfs_handle_struct *handle, 
SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm);
char * (*sys_acl_to_text)(struct vfs_handle_struct *handle, 
SMB_ACL_T theacl, ssize_t *plen);
diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h
index 35b2630..e7f39a5 100644
--- a/source/include/vfs_macros.h
+++ b/source/include/vfs_macros.h
@@ -98,7 +98,7 @@
 #define SMB_VFS_SYS_ACL_GET_PERMSET(conn, entry_d, permset_p) 
((conn)-vfs.ops.sys_acl_get_permset((conn)-vfs.handles.sys_acl_get_permset, 
(entry_d), (permset_p)))
 #define SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry_d) 
((conn)-vfs.ops.sys_acl_get_qualifier((conn)-vfs.handles.sys_acl_get_qualifier,
 (entry_d)))
 #define SMB_VFS_SYS_ACL_GET_FILE(conn, path_p, type) 
((conn)-vfs.ops.sys_acl_get_file((conn)-vfs.handles.sys_acl_get_file, 
(path_p), (type)))
-#define SMB_VFS_SYS_ACL_GET_FD(fsp, fd) 
((fsp)-conn-vfs.ops.sys_acl_get_fd((fsp)-conn-vfs.handles.sys_acl_get_fd, 
(fsp), (fd)))
+#define SMB_VFS_SYS_ACL_GET_FD(fsp) 
((fsp)-conn-vfs.ops.sys_acl_get_fd((fsp)-conn-vfs.handles.sys_acl_get_fd, 
(fsp)))
 #define SMB_VFS_SYS_ACL_CLEAR_PERMS(conn, permset) 
((conn)-vfs.ops.sys_acl_clear_perms((conn)-vfs.handles.sys_acl_clear_perms, 
(permset)))
 #define SMB_VFS_SYS_ACL_ADD_PERM(conn, permset, perm) 
((conn)-vfs.ops.sys_acl_add_perm((conn)-vfs.handles.sys_acl_add_perm, 
(permset), (perm)))
 #define SMB_VFS_SYS_ACL_TO_TEXT(conn, theacl, plen) 
((conn)-vfs.ops.sys_acl_to_text((conn)-vfs.handles.sys_acl_to_text, (theacl), 
(plen)))
@@ -217,7 +217,7 @@
 #define SMB_VFS_OPAQUE_SYS_ACL_GET_PERMSET(conn, entry_d, permset_p) 
((conn)-vfs_opaque.ops.sys_acl_get_permset((conn)-vfs_opaque.handles.sys_acl_get_permset,
 (entry_d), (permset_p)))
 #define SMB_VFS_OPAQUE_SYS_ACL_GET_QUALIFIER(conn, entry_d) 
((conn)-vfs_opaque.ops.sys_acl_get_qualifier((conn)-vfs_opaque.handles.sys_acl_get_qualifier,
 (entry_d)))
 #define SMB_VFS_OPAQUE_SYS_ACL_GET_FILE(conn, path_p, type) 
((conn)-vfs_opaque.ops.sys_acl_get_file((conn)-vfs_opaque.handles.sys_acl_get_file,
 (path_p), (type)))
-#define SMB_VFS_OPAQUE_SYS_ACL_GET_FD(fsp, fd) 
((fsp)-conn-vfs_opaque.ops.sys_acl_get_fd((fsp)-conn-vfs_opaque.handles.sys_acl_get_fd,
 (fsp), (fd)))
+#define SMB_VFS_OPAQUE_SYS_ACL_GET_FD(fsp) 
((fsp)-conn-vfs_opaque.ops.sys_acl_get_fd((fsp)-conn-vfs_opaque.handles.sys_acl_get_fd,
 (fsp)))
 #define SMB_VFS_OPAQUE_SYS_ACL_CLEAR_PERMS(conn, permset) 
((conn)-vfs_opaque.ops.sys_acl_clear_perms((conn)-vfs_opaque.handles.sys_acl_clear_perms,
 (permset)))
 #define SMB_VFS_OPAQUE_SYS_ACL_ADD_PERM(conn, permset, perm) 
((conn)-vfs_opaque.ops.sys_acl_add_perm((conn)-vfs_opaque.handles.sys_acl_add_perm,
 (permset), (perm)))
 #define 

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

2008-01-07 Thread jelmer
Author: jelmer
Date: 2008-01-07 23:41:55 + (Mon, 07 Jan 2008)
New Revision: 26692

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

Log:
registry: Treat key and value names case-insensitively.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/registry/ldb.c


Changeset:

Property changes on: branches/SAMBA_4_0
___
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/registry/ldb.c
===
--- branches/SAMBA_4_0/source/lib/registry/ldb.c2008-01-07 22:34:53 UTC 
(rev 26691)
+++ branches/SAMBA_4_0/source/lib/registry/ldb.c2008-01-07 23:41:55 UTC 
(rev 26692)
@@ -345,6 +345,7 @@
 {
struct ldb_key_data *kd;
struct ldb_context *wrap;
+   struct ldb_message *attrs_msg;
 
if (location == NULL)
return WERR_INVALID_PARAM;
@@ -357,6 +358,15 @@
return WERR_FOOBAR;
}
 
+   attrs_msg = ldb_msg_new(wrap);
+   W_ERROR_HAVE_NO_MEMORY(attrs_msg);
+   attrs_msg-dn = ldb_dn_new(attrs_msg, wrap, @ATTRIBUTES);
+   W_ERROR_HAVE_NO_MEMORY(attrs_msg-dn);
+   ldb_msg_add_string(attrs_msg, key, CASE_INSENSITIVE);
+   ldb_msg_add_string(attrs_msg, value, CASE_INSENSITIVE);
+
+   ldb_add(wrap, attrs_msg);
+
ldb_set_debug_stderr(wrap);
 
kd = talloc_zero(parent_ctx, struct ldb_key_data);



Build status as of Tue Jan 8 00:00:02 2008

2008-01-07 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-01-07 
00:00:40.0 +
+++ /home/build/master/cache/broken_results.txt 2008-01-08 00:00:56.0 
+
@@ -1,26 +1,26 @@
-Build status as of Mon Jan  7 00:00:02 2008
+Build status as of Tue Jan  8 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
 SOC  0  0  0 
 build_farm   0  0  0 
-ccache   28 8  0 
+ccache   29 9  0 
 ctdb 0  0  0 
 distcc   1  0  0 
-ldb  28 12 0 
-libreplace   27 13 0 
-lorikeet-heimdal 24 14 0 
-pidl 17 5  0 
-ppp  9  7  0 
+ldb  29 12 0 
+libreplace   28 14 0 
+lorikeet-heimdal 25 15 0 
+pidl 18 5  0 
+ppp  10 8  0 
 python   0  0  0 
-rsync28 10 0 
+rsync29 11 0 
 samba-docs   0  0  0 
-samba-gtk3  3  0 
-samba4   24 15 4 
+samba-gtk4  4  0 
+samba4   26 17 4 
 samba_3_21  0  0 
-samba_3_2_test 26 12 0 
+samba_3_2_test 28 12 0 
 samba_4_0_test 0  0  0 
-smb-build26 3  0 
-talloc   28 7  0 
-tdb  28 5  0 
+smb-build27 3  0 
+talloc   29 8  0 
+tdb  29 5  0 
 


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1173-g38f34b1

2008-01-07 Thread Michael Adam
The branch, v3-2-test has been updated
   via  38f34b1d743caaf9f2d750580b991958d260fead (commit)
   via  9296e93588c0e795cae770765050247ac1474a74 (commit)
   via  7b201c177b3668f54751ba17d6a0b53ed913e7f7 (commit)
   via  8b52626f7fd30e1bdf2dd3b4263de1aff282cdd5 (commit)
  from  42663e8736e1a3dfb57e0aafdcbf5fec880da779 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 38f34b1d743caaf9f2d750580b991958d260fead
Author: Michael Adam [EMAIL PROTECTED]
Date:   Tue Jan 8 01:56:56 2008 +0100

Remove forgotton fd from solarisacl_sys_acl_get_fd().

Michael

commit 9296e93588c0e795cae770765050247ac1474a74
Author: Michael Adam [EMAIL PROTECTED]
Date:   Tue Jan 8 01:54:19 2008 +0100

Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().

Michael

commit 7b201c177b3668f54751ba17d6a0b53ed913e7f7
Author: Michael Adam [EMAIL PROTECTED]
Date:   Tue Jan 8 01:14:24 2008 +0100

Remove redundant parameter fd from SMB_VFS_FCHMOD_ACL().

Michael

commit 8b52626f7fd30e1bdf2dd3b4263de1aff282cdd5
Author: Michael Adam [EMAIL PROTECTED]
Date:   Tue Jan 8 00:21:58 2008 +0100

Add comment.

Michael

---

Summary of changes:
 source/include/vfs.h|8 ++--
 source/include/vfs_macros.h |   12 ++--
 source/lib/sysacls.c|   28 ++--
 source/modules/vfs_aixacl.c |4 ++--
 source/modules/vfs_aixacl2.c|4 ++--
 source/modules/vfs_audit.c  |6 +++---
 source/modules/vfs_default.c|   10 +-
 source/modules/vfs_extd_audit.c |6 +++---
 source/modules/vfs_full_audit.c |   12 ++--
 source/modules/vfs_gpfs.c   |2 +-
 source/modules/vfs_hpuxacl.c|6 +++---
 source/modules/vfs_irixacl.c|4 ++--
 source/modules/vfs_posixacl.c   |4 ++--
 source/modules/vfs_solarisacl.c |   13 ++---
 source/modules/vfs_tru64acl.c   |6 +++---
 source/smbd/open.c  |5 ++---
 source/smbd/posix_acls.c|   12 ++--
 17 files changed, 72 insertions(+), 70 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/vfs.h b/source/include/vfs.h
index 97648e7..f6f7d4f 100644
--- a/source/include/vfs.h
+++ b/source/include/vfs.h
@@ -91,6 +91,10 @@
 /* Leave at 22 - not yet released. Remove parameter fd from kernel_flock. - 
obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from linux_setlease. - 
obnox */
 /* Leave at 22 - not yet released. Remove parameter fd from getlock. - obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from sys_acl_get_fd. - 
obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from fchmod_acl. - 
obnox */
+/* Leave at 22 - not yet released. Remove parameter fd from sys_acl_set_fd. - 
obnox */
+
 
 
 #define SMB_VFS_INTERFACE_VERSION 22
@@ -345,7 +349,7 @@ struct vfs_ops {
/* POSIX ACL operations. */

int (*chmod_acl)(struct vfs_handle_struct *handle, const char 
*name, mode_t mode);
-   int (*fchmod_acl)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, mode_t mode);
+   int (*fchmod_acl)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, mode_t mode);

int (*sys_acl_get_entry)(struct vfs_handle_struct *handle, 
SMB_ACL_T theacl, int entry_id, SMB_ACL_ENTRY_T *entry_p);
int (*sys_acl_get_tag_type)(struct vfs_handle_struct *handle, 
SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *tag_type_p);
@@ -363,7 +367,7 @@ struct vfs_ops {
int (*sys_acl_set_permset)(struct vfs_handle_struct *handle, 
SMB_ACL_ENTRY_T entry, SMB_ACL_PERMSET_T permset);
int (*sys_acl_valid)(struct vfs_handle_struct *handle, 
SMB_ACL_T theacl );
int (*sys_acl_set_file)(struct vfs_handle_struct *handle, const 
char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl);
-   int (*sys_acl_set_fd)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, int fd, SMB_ACL_T theacl);
+   int (*sys_acl_set_fd)(struct vfs_handle_struct *handle, struct 
files_struct *fsp, SMB_ACL_T theacl);
int (*sys_acl_delete_def_file)(struct vfs_handle_struct 
*handle, const char *path);
int (*sys_acl_get_perm)(struct vfs_handle_struct *handle, 
SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm);
int (*sys_acl_free_text)(struct vfs_handle_struct *handle, char 
*text);
diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h
index e7f39a5..3b9852a 100644
--- a/source/include/vfs_macros.h
+++ b/source/include/vfs_macros.h
@@ -91,7 +91,7 @@
 
 /* POSIX ACL operations. */
 #define SMB_VFS_CHMOD_ACL(conn, name, mode) 
((conn)-vfs.ops.chmod_acl((conn)-vfs.handles.chmod_acl, (name), 

Rev 736: updated docs from ronnie in http://samba.org/~tridge/ctdb

2008-01-07 Thread tridge

revno: 736
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge.stable
timestamp: Tue 2008-01-08 11:47:29 +1100
message:
  updated docs from ronnie
modified:
  doc/ctdbd.1ctdbd.1-20070610004249-06awdka4n3gyea3w-1
  doc/ctdbd.1.html   ctdbd.1.html-20070610004253-y2xxgjfgnpsucekc-1

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


Rev 737: added two new ctdb commands: in http://samba.org/~tridge/ctdb

2008-01-07 Thread tridge

revno: 737
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: tridge.stable
timestamp: Tue 2008-01-08 17:23:27 +1100
message:
  added two new ctdb commands:
  
   ctdb vacuum   : vacuums all the databases, deleting any zero length
   ctdb records
  
   ctdb repack   : repacks all the databases, resulting in a perfectly
   packed database with no freelist entries
added:
  tools/ctdb_vacuum.cctdb_vacuum.c-20080108053634-3zs2bdddzs4r1e1t-1
modified:
  Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1
  client/ctdb_client.c   ctdb_client.c-20070411010216-3kd8v37k61steeya-1
  include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11
  include/ctdb_private.h 
ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
  lib/tdb/common/freelist.c  freelist.c-20070220022425-m1wibgjq7n5hahs6-4
  lib/tdb/include/tdb.h  tdb.h-20070125040949-7t3f5zdl1q4z9hyv-101
  server/ctdb_control.c  
ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
  server/ctdb_recover.c  
ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1
  server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
  tools/ctdb.c   
ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1

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