Re: [Samba] File locking issue

2007-08-21 Thread Bjoern Tore Sund

Yan Seiner wrote:

Hi everyone:

I posted this a couple of weeks ago and got no response.  My client is 
still stuck with this issue and I am quickly running out of ideas to try.


Does anyone have any ideas/suggestions?  This is a long-term customer 
and so far their server has provided outstanding service - until now.


I have a client with an older server that is running into a weird file
locking problem.

The server is running FC2, samba 3.0.7 and kernel 2.6.10.


Both your Linux installation and your Samba server is way outdated, I 
strongly recommend you get them upgraded.  A lot of bugfixes to Samba 
have come and gone since 3.0.7, and it's been a long time since the last 
patch to FC2.


This could well be your problem.


They have recently installed AutoDesk Revit, which is apparently some
sort of collaborative design software.  Revit keeps a central repository
and then allows different clients to access it.

What is happening is that only the person who created the file has
read/write access to it - even after s/he closes the file.

Here's a log from the workstation that creates the file.  From what I
understand, the user 'johan' created the file and then tested read/write
ability.


My apologies for starting simple.  You say the file is on the Data 
share, where files are created 771.


1. Does 'ls -l Martini-central.rvt' on the linux side show what it should?
2. Are users johan and kevin both members of the same group, as they 
need to be if they are trying to share a file with 771?


-BT
--
Bjørn Tore Sund   Phone: 555-84894   Email:   [EMAIL PROTECTED]
IT department VIP:   81724   Support: http://bs.uib.no
Univ. of Bergen

When in fear and when in doubt, run in circles, scream and shout.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Extremely slow file serving

2007-08-21 Thread Gaston Bougie

Shane,

Please see my Bug nr 488:
https://bugzilla.samba.org/show_bug.cgi?id=4889
I've experienced a few strange things I can't explain.

Does the copy go faster when you access an other (random) file on  
your share?
are you able to do make a copy from a share with the client in a  
vmware session on the same samba server?


Regards,
Gaston


Op 21-aug-2007, om 6:29 heeft Shane het volgende geschreven:


On Mon, Aug 20, 2007 at 11:33:36PM -0400, Gary Dale wrote:
Try setting loglevel to something like 10 (restart Samba) and run  
your
tests again. Perhaps you can find something in the logs to explain  
the

problem.


Nothing obvious I can see.  I've put the log here:
http://www.cm.nu/~shane/samba.log

Just looks like a series of read requests and the server
answers.  Nothing really jumping out at me beyond the
locking Samba seems to be doing for every read request but
that doesn't seem like it could account for such speeds.

S

--
http://www.cm.nu/~shane/
--
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] Re: Log files created for every machine not joined to the domain...

2007-08-21 Thread Helmut Hullen
Hallo, Matt,

Du (sokkerstud_11) meintest am 20.08.07:

 [2007/08/20 07:28:09, 3] auth/auth.c:check_ntlm_password(222)
 check_ntlm_password:  mapped user is:
 [EMAIL PROTECTED] 

There is some user

 [2007/08/20 07:28:09, 3] auth/auth_sam.c:check_sam_security(264)
   check_sam_security: Couldn't find user 'USERNAME' in passdb.

and he has no password

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


[Samba] Memory usage

2007-08-21 Thread Rajeev R Veedu
Could someone from the list help me to understand the memory usage by SMB
process?.  I have a samba production server with about 50-70 SMB process.
Initially we had 2gb of RAM and the top command showed almost all memory had
been used. There were delays in the file access and listing directories from
user side. 

Yesterday evening  we had increased the memory to 4 GB and it showed around
3GB free. But this morning when all users started accessing the files it
went back to almost near to old figure. (about 1mb free space).  Before we
upgrade to further  (say 8gb)  I would like to know how much memory each SMB
process will take. '

 

Rajeev R. Veedu

 

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


Re: [Samba] Memory usage

2007-08-21 Thread Volker Lendecke
On Tue, Aug 21, 2007 at 10:59:01AM +0400, Rajeev R Veedu wrote:
 Could someone from the list help me to understand the memory usage by SMB
 process?.  I have a samba production server with about 50-70 SMB process.
 Initially we had 2gb of RAM and the top command showed almost all memory had
 been used. There were delays in the file access and listing directories from
 user side. 
 
 Yesterday evening  we had increased the memory to 4 GB and it showed around
 3GB free. But this morning when all users started accessing the files it
 went back to almost near to old figure. (about 1mb free space).  Before we
 upgrade to further  (say 8gb)  I would like to know how much memory each SMB
 process will take. '

The thumb rule for smbd is 2-3MB of real memory per
connected client. So with 2GB of RAM you definitely have
enough RAM. The slowdown you see is almost 100% due to other
things. The fact that you only see very little memory free
is a good thing and it won't change if you put 16gig into
your box: All non-used memory is used as cache.

Volker


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

[Samba] Samba 18GB file Transfer

2007-08-21 Thread Brad C
Hello Guys,

Having a bit of trouble transferring an 18GB file for backup purposes to a
Samba Server. I think the 2GB limit issue was resolved a long time ago?
Running Version:
Version 3.0.23c-SerNet-SuSE

The error on the windows client side ( this is done in some type of bat
script )
file creation error the network connection was aborted by the local system.

tailing the samba logs, I think the part in bold is where things go wrong,
though i cant find anything on it. Any advice would be really welcome:

[2007/08/20 13:13:20, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:13:20, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(672)
  Got user=[root] domain=[ARCH-SERVER] workstation=[ARCH-SERVER] len1=24
len2=24
[2007/08/20 13:19:26, 3] smbd/oplock.c:init_oplocks(862)
  open_oplock_ipc: initializing messages.
[2007/08/20 13:19:26, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(260)
  Linux kernel oplocks enabled
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 0 of length 137
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBnegprot (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LANMAN1.0]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [Windows for Workgroups 3.1a]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LM1.2X002]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LANMAN2.1]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [NT LM 0.12]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_nt1(357)
  using SPNEGO
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(580)
  Selected protocol NT LM 0.12
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 1 of length 282
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBsesssetupX (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X(849)
  wct=12 flg2=0xc807
[2007/08/20 13:19:26, 2] smbd/sesssetup.c:setup_new_vc_session(799)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(660)
  Doing spnego session setup
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_spnego_negotiate(551)
  Got OID 1 3 6 1 4 1 311 2 2 10
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_spnego_negotiate(554)
  Got secblob of size 40
[2007/08/20 13:19:26, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
  Got NTLMSSP neg_flags=0xe2088297
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 2 of length 408
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBsesssetupX (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X(849)
  wct=12 flg2=0xc807
[2007/08/20 13:19:26, 2] smbd/sesssetup.c:setup_new_vc_session(799)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(660)
  Doing spnego session setup
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:19:26, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(672)
  Got user=[root] domain=[ARCH-SERVER] workstation=[ARCH-SERVER] len1=24
len2=24
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] cifs module and nocase option

2007-08-21 Thread Alain . Gorlier
Hi all,

I have the same question regarding the cifs mount nocase option.
The nocase option is used by the cifs mount as it works well for 
directories (case insensitivity) but it does not work for filenames (case 
sensitivity).

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


[Samba] Server doesn't show up in Network Browser

2007-08-21 Thread Alexander van der Leun
I've a Linux server running in ADS security mode. Joining the domain 
works and 'net ads testjoin' returns ok. When joining the domain, should 
it turn up in the Microsoft's DNS manager on the domain controller? It 
doesn't now, so  I added it by hand. The machine has a static ip address.


DNS works now as Windows clients can ping it by name. Also, 'net view 
\\samba' works as it show the shares. However, when issuing a 'net view' 
our Samba box doesn't show up. And also when browsing the network in 
Explorer, it does not show. But all other servers and Windows clients do 
show up. This is also the case when Samba is running for more than 24 
hours. This samba box is the only Linux server in the domain.


Maybe, it's important to say that both the domain controller and the 
Samba box are multi-homed machines.


Samba is version 3.0.25b running on Fedora 7.

Thank you,
Alexander



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


[Samba] VFS recyclebin module exclude directory

2007-08-21 Thread Brad C
Hi There,

The Samba VFS recyclebin works brilliantly, though I need to exclude certain
directories from the recyclebin as they are cleared out and re-created
nightly. This means that in no time im scrambling for space, ive tried the
recycle:exclude_dir = syntax as below with both the full path and the path
visible at share level and both arent excluding, is there something basic im
missing?

[EMAIL PROTECTED]
comment = Document share
path = /data
create mask = 0770
writeable = yes
guest ok = yes
hide files = /Recycle Bin/*
veto files = /Recycle Bin/*
delete veto files = no
vfs objects = recycle
recycle:repository = Recycle Bin/%U
recycle:directory_mode = 0770
recycle:keeptree = Yes
recycle:touch_mtime = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude_dir = /data/SOFTWARE/BACKUPS,/SOFTWARE/BACKUPS

on another note, for those of you that want to clear out their recyclebin
files older than X days, you might find this script useful.

#!/bin/bash
# deletes only files older than 60 days
find /data/Recycle\ Bin/ -type f -mtime +60 | xargs rm


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


Re: [Samba] Offline files enabled clients are loosing network drives

2007-08-21 Thread Henry Jensen
Hello,


On Thu, Aug 16, 2007 at 09:19:04AM +, Henry Jensen wrote:
 since the update to Samba 3.0.25b Clients which have offline files enabled
 - typically notebooks - are sporadical loosing their network drives.  


The problems I had here with samba 3.0.25b are significant. It all began
after the upgrade:

- Notebook-Clients which had offline files enabled are losing network drives.

- MS-Office complains that it can not safe files. The error messages are 
  variantly (translated from german Windows XP Prof. and MS-Office 2003) 
  No space left on device (which is a network share) and Too many open
  files. Unfortunatley this is erradic and not reproducible, and I have
  no time to debug, because this is a production system which must
  simply work.
  I can't find any messages regarding this problems in the samba log. 

I have now downgraded to Samba 3.0.25a again which was running with no
problems for two month before the upgrade to 3.0.25b.  

Regards,

Henry

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


[Samba] RE: Failed to join win2000 domain in 3.0.25b

2007-08-21 Thread Latrell Wang 王獻綱
Hi all:

 

I found that if I use “net rpc join” instead of “net ads join” to join a 
win2000 ad domain, it will succeed in the same setting.

I don’t know why this can work. Could somebody explain it? Are there any 
changes for joining win2000 ad domain?

 

Thanks,

Latrell.



From: Latrell Wang 王獻綱 
Sent: Thursday, August 02, 2007 4:27 PM
To: samba@lists.samba.org
Subject: RE: Failed to join win2000 domain in 3.0.25b

 

I wonder if my kerberos version could cause problems. My version is 1.6.2. 
Please give me some help.

 

Thanks,

Latrell.

 



Hi all:

 

I’m trying to join a win2000 ad domain but failed. I can see my samba server in 
computer list of domain controller, but the icon of the samba server is 
disabled. I also got error message from my samba server:

 

Failed to set password for machine account (NT_STATUS_WRONG_PASSWORD) Failed to 
join domain: Wrong Password

 

The password should be correct because I can get krb ticket successfully. My 
samba version is 3.0.25b. Joining win2003 domain is successfully without a 
problem. I wonder why it makes difference between 2000 and 2003. Previously I 
used version 3.0.23d, and both 2000 and 2003 can be joined domain successfully. 
My global session is as the following:

 

[global]

dos charset = UTF8

display charset = UTF8

unix charset = UTF8

server string = %h

netbios name = smbserver

write ok = yes

guest account = smbguest

map to guest = bad user

encrypt passwords = yes

map archive = no

max log size= 50

dfree command= /usr/local/bin/dfree

client use spnego = yes

auth methods = guest sam_ignoredomain winbind:ntdomain

host msdfs = yes

winbind use default domain = yes

workgroup = PASW

security = ads

password server = PASW.COM *

realm = PASW.COM

winbind enum users = yes

winbind enum groups = yes

idmap uid = 10-50

idmap gid = 10-50

winbind cache time = 15

template homedir = /tmp/users/home/%D/%U

template shell = /bin/bash

 

Please help me out.

Thanks in advance,

Latrell

 

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


Re: [Samba] RE: Failed to join win2000 domain in 3.0.25b

2007-08-21 Thread Alexandr Miasnikov

Latrell Wang 王獻綱 пишет:

Hi all:

 


I found that if I use “net rpc join” instead of “net ads join” to join a 
win2000 ad domain, it will succeed in the same setting.

I don’t know why this can work. Could somebody explain it? Are there any 
changes for joining win2000 ad domain?




This is a bug https://bugzilla.samba.org/show_bug.cgi?id=4863
if You are using Solaris.


--

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


[Samba] Segment violation during the list of directory with smbc_readdir

2007-08-21 Thread Stanislav Tihohod
Dear samba,

I have a small piece of code that crashes on Samba 3.0.5:

int main()
{
int smbdh;
struct smbc_dirent *smbdi;
char *smb_url = smb://SERVER/Archive/NOT EMPTY;

if(smbc_init(get_auth, 0)  0)
{
fprintf(stderr, error initializing libsmbclient: %s\n,
strerror(errno));
return -1;
}

if((smbdh = smbc_opendir(smb_url))  1)
{
fprintf(stderr,Unable to open directory: %s, strerror(errno));
return -1;
}

while((smbdi = smbc_readdir(smbdh)) != NULL)
{
fprintf(stderr, %s\n, smbdi-name);
}

printf(DONE\n);

return 0;
}

The listed folder contains a file with a very long Japanese name.
The next call of smbc_readdir after this file is listed crashes:

.
..
New Text Document.txt
sdfsdf
Ц¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁЦ¬ґЦ-TЦ¦LИv-Ц¦?Ц--ХLЁ
Segmentation fault

I have updated samba to 3.0.25b and now my sample does not crash.

Is it a fixed bug in the old Samba? I could not find any records
about fixing of smbc_readdir in the WHATSNEW.txt file.

Thank you.

-- 
Best regards,
 Stanislav  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] Segment violation during the list of directory with smbc_readdir

2007-08-21 Thread Volker Lendecke
On Tue, Aug 21, 2007 at 01:30:27PM +0400, Stanislav Tihohod wrote:
 Dear samba,
 
 I have a small piece of code that crashes on Samba 3.0.5:

Can you please retry this against 3.0.25c?

Thanks,

Volker


pgptSbQUYiayn.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] Re: Log files created for every machine not joined to the domain...

2007-08-21 Thread Jean-Jacques Moulis
On Mon, 20 Aug 2007 21:55:37 + (UTC) Matt Anderson [EMAIL PROTECTED] 
wrote:

MA  Yes, It does. I assume they are all on same subnet? Are you using WINS?
MA  
MA  John
MA Well, there are multiple subnets, but yes, the ones generating log files 
are all
MA part of the same subnet.  
MA And no, we're not using WINS.  (At least I don't have anything specified for
MA wins server and wins support is no in smb.conf).
MA So, I'm not sure what's going on... thanks again for all of your quick 
replies!
MA -Matt 




Windows XP automatically searches the network for shares and printers upon 
connecting to the network.

To disable XP automatic discovery:

* In Explorer, click Tools
* Click Folder Options
* Click the View tab,
* Uncheck Automatically Search for Network Folders and Printers in Advanced 
settings list. 




-- 
Jean-Jacques   Moulis  Tel:  (013) 281684
ISYFax:  (013) 139282
Linköping UniversityE-mail: [EMAIL PROTECTED]
581 83 Linköping
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] setresuid failed with EAGAIN, samba crashed

2007-08-21 Thread Frantisek Hanzlik

Hello,

I was upgrade our Linux Samba server (Fedora Core 4, kernel 2.6.17,
samba 3.0.23d) to Fedora 7, kernel 2.6.22.2, samba 3.0.25b
(SELinux in permissive mode), i386 Pentium D 3GHz CPU, 2GB RAM,
LAN with approx. 10 users.
But now users smb daemon sporadically (but frequently, 1-5 times/hour)
crashes. Machine log (Level 2) contain records like this:

[2007/08/21 08:53:18, 0] lib/util_sec.c:set_effective_uid(205)
  setresuid failed with EAGAIN. uid(502) might be over its NPROC limit
[2007/08/21 08:53:18, 0] lib/util_sec.c:assert_uid(101)
  Failed to set uid privileges to (-1,502) now set to (0,0)
[2007/08/21 08:53:18, 0] lib/util.c:smb_panic(1654)
  PANIC (pid 13035): failed to set uid

[2007/08/21 08:53:18, 0] lib/util.c:log_stack_trace(1758)
  BACKTRACE: 22 stack frames:
   #0 smbd(log_stack_trace+0x2d) [0x802439fd]
   #1 smbd(smb_panic+0x5d) [0x80243b2d]
   #2 smbd [0x80249f4e]
   #3 smbd [0x800b595c]
   #4 smbd(pop_sec_ctx+0xa2) [0x800b5af2]
   #5 smbd(unbecome_root+0x17) [0x800a9267]
   #6 smbd(uid_to_sid+0x15c) [0x801fbc4c]
   #7 smbd [0x800bc51d]
   #8 smbd(get_nt_acl+0x4ac) [0x800c268c]
   #9 smbd [0x800d887b]
   #10 smbd(is_visible_file+0x2a0) [0x80060ee0]
   #11 smbd [0x8006160d]
   #12 smbd(dptr_ReadDirName+0x51) [0x80061671]
   #13 smbd [0x8009a521]
   #14 smbd [0x8009e935]
   #15 smbd(handle_trans2+0x237) [0x800a2737]
   #16 smbd(reply_trans2+0x6bb) [0x800a8eeb]
   #17 smbd [0x800c54d0]
   #18 smbd(smbd_process+0x836) [0x800c6566]
   #19 smbd(main+0xbdd) [0x8032079d]
   #20 /lib/libc.so.6(__libc_start_main+0xe0) [0x37ff70]
   #21 smbd [0x8004a181]
[2007/08/21 08:53:18, 0] lib/fault.c:dump_core(181)
  dumping core in /var/log/samba/cores/smbd

Share definition in smb.conf:
[eko_rw]
path = /home/DATA/eko_rw
read list = @eko_ro
write list = @eko
force group = eko
default case = lower
short preserve case = no
create mask = 0660
force create mode = 0660
directory mask = 0770
force directory mode = 0770
hide unreadable = Yes
valid users = @eko, @eko_ro

ulimit -u say max user processes = 32752, this look (to me)
be enough. I have no idea about solving this error, and all my
documentation and internet searches were unsuccessful.

Thanks for your replies and any help in solving this issue,
Yours
Franta Hanzlik


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


Re[2]: [Samba] Segment violation during the list of directory with smbc_readdir

2007-08-21 Thread Stanislav Tihohod
Dear Volker,

As I said in the previous letter, no crash occurs against 3.0.25b.
The problem is that Samba 3.0.5 is used in a product that is
currently in production. So I need to have a proof that this bug
is in Samba and is fixed in a newer version.
Could anybody help, please?

Tuesday, August 21, 2007, 1:49:15 PM, you wrote:

VL On Tue, Aug 21, 2007 at 01:30:27PM +0400, Stanislav Tihohod wrote:
 Dear samba,
 
 I have a small piece of code that crashes on Samba 3.0.5:

VL Can you please retry this against 3.0.25c?
VL Thanks,
VL Volker

-- 
Best regards,
 Stanislavmailto:[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] Segment violation during the list of directory with smbc_readdir

2007-08-21 Thread Volker Lendecke
On Tue, Aug 21, 2007 at 02:43:06PM +0400, Stanislav Tihohod wrote:
 As I said in the previous letter, no crash occurs against 3.0.25b.
 The problem is that Samba 3.0.5 is used in a product that is
 currently in production. So I need to have a proof that this bug
 is in Samba and is fixed in a newer version.
 Could anybody help, please?

Well, it will be difficult to get support for such an old
version for free on the mailing lists. See
http://samba.org/samba/support for companies doing
commercial support for Samba.

And if you have 3.0.5 in a product, just look at the source
code and see where it crashes. Standard debugging, compile
with -g and run it under valgrind to get a backtrace with
line number information. You should be able to quickly nail
and fix it.

Volker


pgpU3Vjb8S1x0.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] Server doesn't show up in Network Browser

2007-08-21 Thread John Drescher
On 8/21/07, Alexander van der Leun [EMAIL PROTECTED] wrote:
 I've a Linux server running in ADS security mode. Joining the domain
 works and 'net ads testjoin' returns ok. When joining the domain, should
 it turn up in the Microsoft's DNS manager on the domain controller? It
 doesn't now, so  I added it by hand. The machine has a static ip address.

 DNS works now as Windows clients can ping it by name. Also, 'net view
 \\samba' works as it show the shares. However, when issuing a 'net view'
 our Samba box doesn't show up. And also when browsing the network in
 Explorer, it does not show. But all other servers and Windows clients do
 show up. This is also the case when Samba is running for more than 24
 hours. This samba box is the only Linux server in the domain.

 Maybe, it's important to say that both the domain controller and the
 Samba box are multi-homed machines.

 Samba is version 3.0.25b running on Fedora 7.


Is nmbd running on the linux box?

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


Re: [Samba] samba share problem

2007-08-21 Thread John Drescher
On 8/20/07, sannas_2007 [EMAIL PROTECTED] wrote:
  Hi,
   I need your help!
   I want to realize samba usage below, but I don't know how to do it.
   samba server is redhat linux AS 4.0 up4 i386, samba version is 
 samba-3.0.10-1.4E.9.
 When I create share and make all users and groups excepts valid users and 
 groups  not see this share name in network
 neighbor,I do not use the options ' browsable=no',because using it will let 
 all valid users and group can not see the share.
   for example,add share in smb.conf
 [share_test]
  path=/data
  valid users=root,user1,user2
  writable=yes
user1,user2 login samba server and can see sharename 'share_test' and 
 access it in network neighbor, other users login samba server and can not see 
 sharename 'share_test'.

So you only want certain users to see a share? I do not think this is
possible. I let everyone see my shares but only the users that are
allowed to access the data can open the share.

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


Re: [Samba] Memory usage

2007-08-21 Thread John Drescher
 Yesterday evening  we had increased the memory to 4 GB and it showed around
 3GB free. But this morning when all users started accessing the files it
 went back to almost near to old figure. (about 1mb free space).  Before we
 upgrade to further  (say 8gb)  I would like to know how much memory each SMB
 process will take. '


You do know that file cache is counted in the amount of free memory on
a linux system. So any linux box that is on for long enough will show
only a few MB free? Unless you are seeing swap being used there should
be no problem with this and you probably do not need any more memory.

My home computer has 4GB of memory and from the free command I have
33MB free but 3.15GB of my memory is file cache.  I rebooted yesterday
so I would expect the 33MB to go down some more.

# free
 total   used   free sharedbuffers cached
Mem:   40484324015412  33020  0 1775122942980
-/+ buffers/cache: 8949203153512
Swap:  78236326967822936

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


[Samba] [NetBIOS] Registering new name?

2007-08-21 Thread Gilles Ganault

Hello

	I'm having a hard time finding information about NetBIOS. Maybe someone 
here has good experience with this API, so I figured I could try asking 
here, although the question is specifically on how to use NetBIOS in an 
all-Windows LAN from Visual Basic :-/


I'm trying to register a new name on a server so that clients can locate it 
by broadcasting its NetBIOS name.


At this point, this little VB code does register the name successfully, but 
it's not listed in net name and net send to it fails:


==
Private Sub Command1_Click()
Dim ncbInfo As NCB
Dim sMachine As String * NCBNAMSZ
Dim bRet As Byte

'===1. Send RESET
With ncbInfo
.ncb_command = NCBRESET
End With
bRet = Netbios(ncbInfo)
MsgBox ncbInfo.ncb_retcode, , ncbInfo.ncb_num

'===2. Register name
sMachine = SERVER_NAME  Chr(3)
With ncbInfo
.ncb_command = NCBADDNAME
.ncb_name = sMachine
'.ncb_lana_num = H0
End With

bRet = Netbios(ncbInfo)
MsgBox ncbInfo.ncb_retcode, , ncbInfo.ncb_num

'Can't use net send
'C:\nbtstat -n
'
'FRED   03  UNIQUE  Registered
'MY_GREAT_SERVER03  UNIQUE  Registered
'
'C:\net name
'Name
'-
'MYPUTER
'FRED
'The command completed successfully.
'
'C:\net send fred test
'The message was successfully sent to FRED.
'
'C:\net send my_great_server test
'An error occurred while sending a message to MY_GREAT_SERVER.
'
'The message alias could not be found on the network.

'C:\ping my_great_server
'Ping request could not find host my_great_server. Please check the 
name and try

'again.
'
'C:\ping fred
'Ping request could not find host fred. Please check the name and try 
again.



'===3. Have client hosts send broadcast to locate
'===4. Clients connect to \\MY_GREAT_SERVER\pipes\mypipe to 
tx/rx data

End Sub
==

Any idea why it's not working?

Thank you.

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


[Samba] Files in mounted share vanish

2007-08-21 Thread sbrown

Hi list,

On a share (Windows 2003 3790/5.2) mounted with smbmount v3.0.24 and 
smbfs 2.6.18-5-686, suddenly I'm seeing lots of


 kernel: smb_proc_readdir_long: error=-2, breaking

messages in syslog while, for instance, ls'ing a particular directory.

Here's the odd thing - if I do a couple of ls's quickly, the files 
appear (there are 129 files and 2 subdirs). If I ls once every (say) 
second, no files appear and the above error message is logged.


As far as I'm aware, nothing has changed either on the Windows server or 
the Linux client. I've already upgraded to 3.0.24 (it was 3.0.22 originally)


No luck searching on the web. I tried grepping in the source, but didn't 
find anything similar to the aboe line.


Any help appreciated!

--
Steve


The information contained in this E-Mail and any subsequent 
correspondence is private and is intended solely for the intended 
recipient(s).  The information in this communication may be 
confidential and/or legally privileged.  Nothing in this e-mail is 
intended to conclude a contract on behalf of QinetiQ or make QinetiQ 
subject to any other legally binding commitments, unless the e-mail 
contains an express statement to the contrary or incorporates a formal Purchase Order.


For those other than the recipient any disclosure, copying, 
distribution, or any action taken or omitted to be taken in reliance 
on such information is prohibited and may be unlawful.


Emails and other electronic communication with QinetiQ may be 
monitored and recorded for business purposes including security, audit 
and archival purposes.  Any response to this email indicates consent 
to this.


Telephone calls to QinetiQ may be monitored or recorded for quality 
control, security and other business purposes.


QinetiQ Limited
Registered in England  Wales: Company Number:3796233
Registered office: 85 Buckingham Gate, London SW1E 6PD, United Kingdom
Trading address: Cody Technology Park, Cody Building, Ively Road, Farnborough, Hampshire, GU14 0LX, United Kingdom 
http://www.QinetiQ.com/home/legal.html

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


Re: [Samba] samba share problem

2007-08-21 Thread Charles Marcus

So you only want certain users to see a share? I do not think this is
possible. I let everyone see my shares but only the users that are
allowed to access the data can open the share.


I don't use it, but I thought this is what the 'hide_unreadable' option 
was for?


--

Best regards,

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


Re: [Samba] samba share problem

2007-08-21 Thread John Drescher

 I don't use it, but I thought this is what the 'hide_unreadable' option
 was for?

Thanks for the info. I did not know that.

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


Re: [Samba] Server doesn't show up in Network Browser

2007-08-21 Thread Alexander van der Leun

John Drescher wrote:

On 8/21/07, Alexander van der Leun [EMAIL PROTECTED] wrote:
  

I've a Linux server running in ADS security mode. Joining the domain
works and 'net ads testjoin' returns ok. When joining the domain, should
it turn up in the Microsoft's DNS manager on the domain controller? It
doesn't now, so  I added it by hand. The machine has a static ip address.

DNS works now as Windows clients can ping it by name. Also, 'net view
\\samba' works as it show the shares. However, when issuing a 'net view'
our Samba box doesn't show up. And also when browsing the network in
Explorer, it does not show. But all other servers and Windows clients do
show up. This is also the case when Samba is running for more than 24
hours. This samba box is the only Linux server in the domain.

Maybe, it's important to say that both the domain controller and the
Samba box are multi-homed machines.

Samba is version 3.0.25b running on Fedora 7.




Is nmbd running on the linux box?
  

No, it wasn't and now it works. Thanks!


John
  

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


RE: [Samba] Samba 3.0.25c Available for Download

2007-08-21 Thread David Rankin
Original Message-
On Behalf Of Gerald (Jerry) Carter
To: [EMAIL PROTECTED]
Subject: [Samba] Samba 3.0.25c Available for Download 
---

Hmm Lars going to be spinning the SuSE rpms any time soon?  Just
checking.


David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankinlawfirm.com 


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


Fwd: [Samba] Memory usage

2007-08-21 Thread John Drescher
-- Forwarded message --
From: John Drescher [EMAIL PROTECTED]
Date: Aug 21, 2007 10:00 AM
Subject: Re: [Samba] Memory usage
To: [EMAIL PROTECTED]


 What else does it make the machine slow.
Possibly permissions. Maybe the filesystem choice. It could also be
filename case handling as linux is case sensitive and windows is not.
Are you using ldap or ADS?

 Is it the raid. I have 8 WD SATA
Doubtful.

 HDD with raid ready (3mbps) hard disks on a 8 port 3ware controller.
I have seen complaints of poor performance with 3ware controllers
although I don't have any on my linux systems so I do not know. Do you
have write back cache on?

 Does
 anyone have a comparison on SATA raid and SAS raid disk. As you know SAS
 disk are very expensive I would like to know from experts in the list who
 can tell me which of the following is best.

 1) 2 servers each having 2.0TB raid disk with SAS drives, 2GB ram and
 standard other features.
 2) 4 No servers with 1TB each with 2GB ram and standard other features.

I can't compare that as I have never had a SAS. My servers are home
built machines with 1.2 to 3TB of software raid (mostly 6)  with 2GB
to 4GB of ram all running 64 bit gentoo and have 1 or 2 Opteron
processors.


 If the projects are distributed in the 2 option do you think it would be
 better than 1 sty?.  as you know the price of SATA disk is much cheaper than
 the SAS disk and we could nearly by 4 servers for that money.

I have 10TB of linux software raid5 and raid6 using dozens of SATA
disks on a nearly 100% gigabit network with about 100 machines and
most of this data is accessed via samba. I have seen a few speed
problems but for the most part all works smoothly. One case of a speed
problem is a DICOM scrubbing application that reads up to 100,000
512KB files off one server, removes patient info from the headers and
stores this data on a second server. In normal conditions this
operation is about 5 to 10 of these files per second but at times this
slows to 1 per second. When this happens I see on the samba server
that the samba process is taking  25% of the CPU time (which it never
does when it is working) so after stopping this scrubbing process and
kill the offending smbd process all is well again.

John


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


Re: [Samba] Samba 3.0.25c Available for Download

2007-08-21 Thread John Drescher
On 8/20/07, Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 ==
Forty-two
-- Deep Thought
 ==
 Release Announcements
 =

 This is the latest production release of the Samba 3.0.25 code
 base and is the version that servers should be run for for all
 current bug fixes.

 Major bug fixes included in Samba 3.0.25c are:

   o File sharing with Widows 9x clients.
   o Winbind running out of file descriptors due to stalled
 child processes.
   o MS-DFS interoperability issues.


 
 Download Details
 

 The uncompressed tarballs and patch files have been signed
 using GnuPG (ID 6568B7EA).  The source code can be downloaded
 from:

 http://download.samba.org/samba/ftp/

 The release notes are available online at:

 http://www.samba.org/samba/history/samba-3.0.25c.html

 Binary packages are available at

 http://download.samba.org/samba/ftp/Binary_Packages/

 Our Code, Our Bugs, Our Responsibility.
 (https://bugzilla.samba.org/)

 --Enjoy
 The Samba Team


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGyhhCIR7qMdg1EfYRAodiAKC3/rQ6k05bHcQjNn8ra0dB1jo3HwCgjzNd
 Dnz/B+25zZzmOj3KZz064us=
 =EZzD
 -END PGP SIGNATURE-

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


Any ideas why I get this error while building under gentoo?

building 'smb' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG
-march=k8 -O3 -pipe -fomit-frame-pointer -msse3 -D_SAMBA_BUILD_=3
-fPIC -I/usr/include/python2.4 -c python/py_smb.c -o
build/temp.linux-x86_64-2.4/python/py_smb.o -march=k8 -O3 -pipe
-fomit-frame-pointer -msse3 -D_SAMBA_BUILD_=3 -DHAVE_CONFIG_H
-DLDAP_DEPRECATED -march=k8 -O3 -pipe -fomit-frame-pointer -msse3
-D_SAMBA_BUILD_=3
-I/var/tmp/portage/net-fs/samba-3.0.25c/work/samba-3.0.25c/source/iniparser/src
-Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc
-I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H
-DLDAP_DEPRECATED
-I/var/tmp/portage/net-fs/samba-3.0.25c/work/samba-3.0.25c/source/lib
-D_SAMBA_BUILD_=3
python/py_smb.c: In function 'py_smb_connect':
python/py_smb.c:51: error: wrong type argument to unary exclamation mark
python/py_smb.c: In function 'py_smb_session_request':
python/py_smb.c:71: warning: assignment discards qualifiers from
pointer target type
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
make: *** [python_ext] Error 1



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


Re: [Samba] Samba + LDAP + displayName attribute

2007-08-21 Thread John Drescher
 When signing into Window XP, everything works fine.  Clicking on the
 start menu shows whatever is set in displayName at the top as the
 persons name.

 However, after an as yet undetermined amount of time [about 20 mins],
 it switches to displaying the UID.  So at the top of the start menu it
 will say Joe Bloggs for 20 minutes [ish], then switch to showing
 bloggsjoe

 Just wondering if anyone knows what is causing this?  I know it's not
 critical, XP is still enable to authenticate after this amount of
 time, but there could be other things going on that are not so
 visible.

I don't know but I do remember seeing this on the samba-users list a
few months back. Not sure when as I read a lot of posts on this
list...

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


[Samba] Samba + LDAP + displayName attribute

2007-08-21 Thread Didster
Hi All,

I have a rather strange, if not critical, issue with samba as a NT4
domain controller.

We have samba [version 3.0.24] set up as a PDC using LDAP as a
backend.  Each account was created using the IDEALX scripts, has a
displayName set to a users full name, say Joe Bloggs.  The actual UID
of the account is different, say bloggsjoe.

When signing into Window XP, everything works fine.  Clicking on the
start menu shows whatever is set in displayName at the top as the
persons name.

However, after an as yet undetermined amount of time [about 20 mins],
it switches to displaying the UID.  So at the top of the start menu it
will say Joe Bloggs for 20 minutes [ish], then switch to showing
bloggsjoe

Just wondering if anyone knows what is causing this?  I know it's not
critical, XP is still enable to authenticate after this amount of
time, but there could be other things going on that are not so
visible.

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


[Samba] Samba on Debian with shares on nfs-filesystem

2007-08-21 Thread Thomas Flaig
Hello,

Actually I have some troubels concerning samba (3.0.24) on debian (4.0):

I would like to have some samba-shares on a nfs-filesystem.

NFS works fine for the Linux clients and the Linux server. The nfs 
filesystem is mounted from an other server on /home.

The next step is to set up samba to have some shares on the nfs Filesystem 
(/home/$LOGIN, anonymized configuration attached).
Connecting to the samba shares works for Linux and Windows clients fine. 
Downloading files also does fine.
Copying files from the local filesystem to the samba-shares works fine for 
Linux-clients (via smb!), but not for Windows clients:
Copying files from Windows 2k to the samba share results in the following 
error message:

foo kann nicht kopiert werden: Der Prozess kann nicht auf die Datei 
zugreifen, da ein anderer Prozess einen Teil der Datei gesperrt hat.
(In english something like:
Can't copy foo: process cannot acces the file as some other file is 
locking a part of the file.)

But there is no other process accessing this file.

Applications can save their files to the samba shares. These files have 
the filesized as wished by the windows-application but are filled with 
zeros.

According to http://www.debianforum.de/forum/viewtopic.php?t=83647 I am 
not alone with this problem. Further:
The member of that forum wrote that he had compiled several samba verisons 
by himself on debian 4.0/etch:
The problem did not occur with samba 3.0.22 and 3.0.23. But the problem 
occured also on the self-compiled samba 3.0.24.

He also compiled several versions of samba on debian 3.1/sarge:
There the problem did not occour with any version of samba.

I have tried to have these samba-shares on nfs3 and nfs4 filesystems. The 
choice of nfs3 or nfs4 doesn't affect the problem.

So my question is how it is possible to use samba on debian 4.0 in such a 
configuration.
I would prefer to use official debian packages or the packges from the 
samba.org-webpage (but at the moment there are no Debianpackages for 
Debian 4.0 on the samba Webpage).
I could compile samba by myself, but I would prefer some other solution.

Thanks and best regards
Thomas

PS: As I don't know wheter it is a samba issue or only a debian issue, 
I crosspost to both mailinglists. 
-- 
Thomas Flaig
mailto: [EMAIL PROTECTED]
[global]
workgroup = $WORKGROUPNAME
server string = %h server
interfaces = $IPs
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
log level = 2
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
printcap name = cups
logon path = \\$HOSTNAME\%U\profile
logon drive = H:
logon home = \\$HOSTNAME\%U
domain logons = Yes
os level = 240
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = root
printing = cups
print command = 
lpq command = %p
lprm command = 

[homes]
comment = Home Directories
path = /home/%S/
valid users = %S
read only = No
create mask = 0751
directory mask = 0751
browseable = No

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

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
write list = root, @lpadmin

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

Re: [Samba] Extremely slow file serving

2007-08-21 Thread Gaston Bougie

Hi Shane,

Yes, It's hard to imagine that 2 copy's at the same time from the  
same share transfer faster than one copy. It's the world upside-down
Funny  you mention that you also switched to 64bits. I think the  
problem started somewhere my move from 32-64 bits.



I've got a few steps I want to make:

I'm going to set-up my configuration in a vmware environment, and  
check if the clients still got slow performance.
As the whole system is being emulated, and the old configuration did  
work before, I think this is a small work-arround for me.


Next to this I'm going to see if I can install samba from scratch on  
debian.
I run Debian stable. Debian has his own packaged and I don't want to  
mess with the global setup of the debian packages.
I don't think that the installation will be hard, but  
uninstallingI'm not sure.


Do you, or anybody else know a few test-cases, or debugs to look at?

Regards,
Gaston Bougie






Op 21-aug-2007, om 16:44 heeft Shane het volgende geschreven:


On Tue, Aug 21, 2007 at 08:26:27AM +0200, Gaston Bougie wrote:

Please see my Bug nr 488:
https://bugzilla.samba.org/show_bug.cgi?id=4889
I've experienced a few strange things I can't explain.


My situation looks very similar to this.

Does the copy go faster when you access an other (random) file on  
your

share?


Funny enough yes.  Both copies go faster when there are two
read ops from different hosts.

are you able to do make a copy from a share with the client in a  
vmware

session on the same samba server?


Unfortunately not, the server machine doesn't have X
installed.  I too have recently switched from ia32 to
x86_64 though if that helps.

Shane

--
http://www.cm.nu/~shane/
--
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] Samba on Debian with shares on nfs-filesystem

2007-08-21 Thread Volker Lendecke
On Tue, Aug 21, 2007 at 05:25:21PM +0200, Thomas Flaig wrote:
 I would like to have some samba-shares on a nfs-filesystem.

This is not supported. You should install Samba on the NFS
server, and possibly redirect your users using MS-DFS.

One potential workaround (no guarantees!) is to say posix
locking = no on the relevant shares.

Volker


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

[Samba] Problems Rejoing Domain w/ WinXP Samba 2.0.25b

2007-08-21 Thread Marco J. Shmerykowsky, P.E.
Just recovering from a update headache going from Samba 2.0.20 to
2.0.25b on Centos 4.5.  Prior to the update, Windows XP (on a 
brand new machine) was able to authenticate to the Samaba server.

After the upgrade to 2.0.25b, however, WinXP now gives the
following error:

The following error has occured attempting to join domain 'fubar'

The RPC server is unavailable.

My Win2000 Professional  OS/2 clients have no problem connecting.
I've been searching Google for leads, but haven't found anything
yet.

Suggestions? 

Thanks in Advance

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


Re: [Samba] Samba on Debian with shares on nfs-filesystem

2007-08-21 Thread Bernd Schubert
Hello Volker,

On Tuesday 21 August 2007 17:57:16 Volker Lendecke wrote:
 On Tue, Aug 21, 2007 at 05:25:21PM +0200, Thomas Flaig wrote:
  I would like to have some samba-shares on a nfs-filesystem.

 This is not supported. You should install Samba on the NFS
 server, and possibly redirect your users using MS-DFS.

 One potential workaround (no guarantees!) is to say posix
 locking = no on the relevant shares.

can you give more insights why it doesn't work?

In my previous group at university users can call vmware to get windows 
running on their linux desktops. Samba is used to provide roaming profiles 
and access to the users home directory. The hole setup is a bit tricky, but 
samba works as full domain controller, but is started as a user process as 
the user who also runs vmware. So no root rights, etc.
This also makes it impossible to run samba on the server, but smbd MUST be run 
on this very client system to serve the nfs share.

On debian Sarge samba-3.0.22 worked fine, also with posix locking = no, on 
Etch windows has problems to store cached data on the end of the session 
unless posix locking = no is set.
So far we never understood what makes the difference. Samba is still the same 
version, and kernel is also still the same customized 2.6.20. Only the libc 
and other libraries did change.

Thanks,
Bernd

-- 
Bernd Schubert
Q-Leap Networks GmbH
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problems Rejoing Domain w/ WinXP Samba 2.0.25b

2007-08-21 Thread Charles Marcus

On 8/21/2007, Marco J. Shmerykowsky, P.E. ([EMAIL PROTECTED])
wrote:

Just recovering from a update headache going from Samba 2.0.20 to
2.0.25b


Presumably you mean *3*.0.25b?

--

Best regards,

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


Re: Fwd: [Samba] Memory usage

2007-08-21 Thread Jason Baker


I have seen complaints of poor performance with 3ware controllers
I am running a couple 3Ware RAID controllers and I had very poor 
performance with SAMBA until I enabled Write Caching on the RAID cards. 
You will need to make sure you have some kind of battery backup in place 
(either on the controllers themselves, or on the server the controller 
is installed on). Write Caching speeds up performance considerably. I 
would check and see if this is enabled on your cards.


*Jason Baker
*/IT Coordinator/


*Glastender Inc.*
5400 North Michigan Road
Saginaw, Michigan 48604 USA
800.748.0423
Phone: 989.752.4275 ext. 228
Fax: 989.752.
www.glastender.com http://www.glastender.com

-BEGIN GEEK CODE BLOCK- 
Version: 3.1

GIT$ d- s: a C++$ LU+++$ P+ L++L !E--- W+++ N o? K?
w !O M !V PS PE++ Y? PGP- t 5? X+ R+ tv+ b- DI-- D++ G e+ h--- 
r+++ y+++

--END GEEK CODE BLOCK--



John Drescher wrote:

-- Forwarded message --
From: John Drescher [EMAIL PROTECTED]
Date: Aug 21, 2007 10:00 AM
Subject: Re: [Samba] Memory usage
To: [EMAIL PROTECTED]


  

What else does it make the machine slow.


Possibly permissions. Maybe the filesystem choice. It could also be
filename case handling as linux is case sensitive and windows is not.
Are you using ldap or ADS?

  

Is it the raid. I have 8 WD SATA


Doubtful.

  

HDD with raid ready (3mbps) hard disks on a 8 port 3ware controller.


I have seen complaints of poor performance with 3ware controllers
although I don't have any on my linux systems so I do not know. Do you
have write back cache on?

  

Does
anyone have a comparison on SATA raid and SAS raid disk. As you know SAS
disk are very expensive I would like to know from experts in the list who
can tell me which of the following is best.

1) 2 servers each having 2.0TB raid disk with SAS drives, 2GB ram and
standard other features.
2) 4 No servers with 1TB each with 2GB ram and standard other features.



I can't compare that as I have never had a SAS. My servers are home
built machines with 1.2 to 3TB of software raid (mostly 6)  with 2GB
to 4GB of ram all running 64 bit gentoo and have 1 or 2 Opteron
processors.

  

If the projects are distributed in the 2 option do you think it would be
better than 1 sty?.  as you know the price of SATA disk is much cheaper than
the SAS disk and we could nearly by 4 servers for that money.



I have 10TB of linux software raid5 and raid6 using dozens of SATA
disks on a nearly 100% gigabit network with about 100 machines and
most of this data is accessed via samba. I have seen a few speed
problems but for the most part all works smoothly. One case of a speed
problem is a DICOM scrubbing application that reads up to 100,000
512KB files off one server, removes patient info from the headers and
stores this data on a second server. In normal conditions this
operation is about 5 to 10 of these files per second but at times this
slows to 1 per second. When this happens I see on the samba server
that the samba process is taking  25% of the CPU time (which it never
does when it is working) so after stopping this scrubbing process and
kill the offending smbd process all is well again.

John


  

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


Re: [Samba] Samba on Debian with shares on nfs-filesystem

2007-08-21 Thread Volker Lendecke
On Tue, Aug 21, 2007 at 06:31:52PM +0200, Bernd Schubert wrote:
 On debian Sarge samba-3.0.22 worked fine, also with posix locking = no, on 
 Etch windows has problems to store cached data on the end of the session 
 unless posix locking = no is set.
 So far we never understood what makes the difference. Samba is still the same 
 version, and kernel is also still the same customized 2.6.20. Only the libc 
 and other libraries did change.

Essentially it is the fact that we have seen too many
problems with broken NFS locking implementations. If you can
make it work, fine, but Windows and thus Samba use byte
range locking a lot more than a typical Unix app does. So
you will hit potential problems with NFS locking much
quicker.

Volker


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

[Samba] A utility to install printer drivers that don't come with .inf file

2007-08-21 Thread Michael Baird
I have run into a good number of printers that don't include an .inf
file for setting up the driver.  Especially multi-function units
targeted at the home user.

I put together a script which will retreive the necessary information
from the windows registry and build an standard .inf style driver.
It has served me well.

It is a windows VB script.  The print driver must already be installed
on the machine where you run the script.

I'm pretty sure that this isn't the correct forum for distribution but
if this is something of use to others maybe someone knows where it
belongs...

If anyone is interested, the script can be had here:
http://www.filecrunch.com/file/~uduxda
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] sambaDomain Policies Implemented?

2007-08-21 Thread eric roseme



Are the sambaDomain account policies sambaLogonToChgPwd and 
sambaRefuseMachinePwdChange implemented on 3.0.22 to 3.0.25b?


First, even with passdb backend = ldapsam:ldap://; pdbedit actually 
edits account_policy.tdb for these two attributes.


Second, despite the attribute value (0, 1, or 2 using ldapmodify), XP 
client (also smbclient) logon behavior is unchanged.  I looked
through the code in account_pol.c and it does not appear that Samba 
tests the values for these attributes - like they are not implemented. I 
am not a coder so I got a second opinion from someone who is.


Thanks,

Eric Roseme
Hewlett-Packard

System stuff:
HP-UX 11.11 and HP-UX 11.23
Samba 3.0.22 and Samba Opensource 3.0.25b
Red Hat Directory Server 7.1

smb.conf

[global]
workgroup = SAMBAATC
netbios name = SAMBAPDC
server string = Samba Server
interfaces = xx.xx.xx.xxx, 127.0.0.1
bind interfaces only = yes
encrypt passwords = Yes
passdb backend = ldapsam:ldap://SAMBAPDC.rose.hp.com
log level = 10
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
domain logons = Yes
preferred master = Yes
domain master = Yes
ldap server = SAMBAPDC.rose.hp.com
ldap suffix = dc=rose,dc=hp,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=People
ldap admin dn = cn=Directory Manager
read only = No
short preserve case = No
dos filetime resolution = Yes
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] sambaDomain Policies Implemented?

2007-08-21 Thread eric roseme
Are the sambaDomain account policies sambaLogonToChgPwd and 
sambaRefuseMachinePwdChange implemented on 3.0.22 to 3.0.25b?


First, even with passdb backend = ldapsam:ldap://; pdbedit actually 
edits account_policy.tdb for these two attributes.


Second, despite the attribute value (0, 1, or 2 using ldapmodify), XP 
client (also smbclient) logon behavior is unchanged.  I looked
through account_pol.c and it does not appear that Samba tests the values 
for these attributes - like they are not implemented. I double-checked 
with someone who is much better with the code than I am.


HP-UX 11.11 and 11.23
Samba 3.0.22 and (Opensource) 3.0.25b
Red Hat Directory Server 7.1 backend

smb.conf

[global]
workgroup = SAMBAATC
netbios name = SAMBAPDC
server string = Samba Server
interfaces = xx.xx.xx.xxx, 127.0.0.1
bind interfaces only = yes
encrypt passwords = Yes
passdb backend = ldapsam:ldap://sambapdc.rose.hp.com
log level = 10
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
domain logons = Yes
preferred master = Yes
domain master = Yes
ldap server = sambapdc.rose.hp.com
ldap suffix = dc=rose,dc=hp,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=People
ldap admin dn = cn=Directory Manager
read only = No
short preserve case = No
dos filetime resolution = Yes

Thanks,

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


[Samba] ldap and computer accounts

2007-08-21 Thread Markus Baertschi
I'm attemtping to configure a Ubuntu server for a bunch of windows clients.
I'd like the authentication information to be in ldap.So far the stuff
works,
I can authenticate users in LDAP just fine.

But when I want a windows machine to join the domain I get the
error 'The user name could not be found'. The computer account
gets created (via smbldap-tools) and I can see it in the ldap.
The samba log shows what's happening, when id can not find
the account it creates it and fails when it can not find the freshly
created account. Unfortunately the log is net very helpful to point
find out what is wrong:
---
[2007/08/20 20:28:55, 5] lib/username.c:Get_Pwnam_internals(108)
  Get_Pwnam_internals didn't find user [WINXP1$]!
[2007/08/20 20:28:56, 3] passdb/pdb_interface.c:pdb_default_create_user(368)
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -t 0 -w
winxp1$' gave 0
[2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_alloc(131)
  Finding user WINXP1$
[2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(75)
  Trying _Get_Pwnam(), username as lowercase is winxp1$
[2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(83)
  Trying _Get_Pwnam(), username as given is WINXP1$
[2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(102)
  Checking combinations of 0 uppercase letters in winxp1$
[2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(108)
  Get_Pwnam_internals didn't find user [WINXP1$]!
[2007/08/20 20:28:56, 3] passdb/pdb_interface.c:pdb_default_create_user(384)
  pdb_default_create_user: failed to create a new user structure:
NT_STATUS_NO_SUCH_USER
[2007/08/20 20:28:56, 5] rpc_parse/parse_prs.c:prs_debug(84)
  00 samr_io_r_create_user
--

How can I debug and fix this situation ?

Markus
-- 
  Markus Baertschi Phone: ++41 (21) 807 1677
  Bas du Rossé 16 Fax  : ++41 (21) 807 1678
  CH-1163, EtoyEmail: [EMAIL PROTECTED]
  Switzerland  Homepage: www.markus.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] ldap and computer accounts

2007-08-21 Thread John Drescher
On 8/21/07, Markus Baertschi [EMAIL PROTECTED] wrote:
 I'm attemtping to configure a Ubuntu server for a bunch of windows clients.
 I'd like the authentication information to be in ldap.So far the stuff
 works,
 I can authenticate users in LDAP just fine.

 But when I want a windows machine to join the domain I get the
 error 'The user name could not be found'. The computer account
 gets created (via smbldap-tools) and I can see it in the ldap.
 The samba log shows what's happening, when id can not find
 the account it creates it and fails when it can not find the freshly
 created account. Unfortunately the log is net very helpful to point
 find out what is wrong:
 ---
See this thread:

http://www.nabble.com/-SOLVED--Samba-and-LDAP%3A-Trouble-adding-Win-XP-machines-to-the-domain-tf3981091.html#a11305970

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


[Samba] Domain Setup

2007-08-21 Thread Mike Lander
Hi Dale
Ok I used to have preffered master in the conf and I overlooked that.
In desperation I had installed swat because one google gave me probem solved 
after he had installed swat.
I have corrected that and I am still getting the failed to add users 
adminstrators etc:
This is on Fedora core 7 samba also just upgrade smb to
 [2007/08/19 20:47:34, 0] smbd/server.c:main(944) smbd version 3.0.25b-2.fc7 
started.
Still almost everylog you look at has the errors below

[EMAIL PROTECTED] samba]# net groupmap list
Management Group (S-1-5-21-1938644923-613313424-2189536688-1006) - mgmt
Domain Admins (S-1-5-21-1938644923-613313424-2189536688-1001) - root
Domain Guests (S-1-5-21-1938644923-613313424-2189536688-1003) - nobody
Financial Services (S-1-5-21-1938644923-613313424-2189536688-1005) - finsrvcs
Domain Users (S-1-5-21-1938644923-613313424-2189536688-1002) - users
Accounts Dept (S-1-5-21-1938644923-613313424-2189536688-1004) - acctsdep




Here is a succesfull login from my laptop log of the laptop  in /etc/samba/ 
mikeslap
with tonya as an acount, it logs on maps drive ok and seems to work but --- 
errors
snip
 mikeslap (10.194.79.195) connect to service profiles initially as user tonyah 
(uid=505, gid=100) (pid 21765)
[2007/08/22 12:44:32, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/08/22 12:44:32, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
[2007/08/22 12:44:32, 1] smbd/service.c:make_connection_snum(1033)
  mikeslap (10.194.79.195) connect to service netlogon initially as user tonyah 
(uid=505, gid=100) (pid 21765)
[2007/08/22 12:44:34, 1] smbd/service.c:make_connection_snum(1033)
  mikeslap (10.194.79.195) connect to service tonyah initially as user tonyah 
(uid=505, gid=100) (pid 21765)-
[2007/08/22 12:44:36, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/08/22 12:44:36, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
[2007/08/22 12:44:36, 1] smbd/service.c:make_connection_snum(1033)
  mikeslap (10.194.79.195) connect to service apps initially as user tonyah 
(uid=505, gid=100) (pid 21765)--logged in
[2007/08/22 12:45:09, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/08/22 12:45:09, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
[2007/08/22 12:45:11, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/08/22 12:45:11, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users

  - Original Message - 
  From: Dale Schroeder 
  To: Mike Lander 
  Sent: Tuesday, August 21, 2007 9:13 AM
  Subject: Re: [Samba] Domain Setup


  Mike,

  For PDC, 1st try adding
  domain master = Yes
  local master = Yes
  to [global]

  
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/samba-pdc.html#id329681

  Verify success of group mapping with
  net groupmap list

  
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/groupmapping.html#id361112

  Dale


  Mike Lander wrote: 
Hello
First time setup for a Linux PDC. Have done several Micro$
Keep getting these errors  smb conf in body. I did the group add scrpt
Not modfy as all the googiling I have found suggest.
Can anyone Help Please.
Thanks
Mike



Aug 21 21:24:37 ns2 smbd[14249]:   create_builtin_users: Failed to create Users 
Aug 21 21:24:37 ns2 smbd[14248]: [2007/08/21 21:24:37, 0] 
auth/auth_util.c:create_builtin_users(758) 
Aug 21 21:24:37 ns2 smbd[14248]:   create_builtin_users: Failed to create Users 
Aug 21 21:30:12 ns2 smbd[14274]: [2007/08/21 21:30:12, 0] 
auth/auth_util.c:create_builtin_administrators(792) 
Aug 21 21:30:12 ns2 smbd[14274]:   create_builtin_administrators: Failed to 
create Administrators 
Aug 21 21:30:12 ns2 smbd[14277]: [2007/08/21 21:30:12, 0] 
auth/auth_util.c:create_builtin_administrators(792) 
Aug 21 21:30:12 ns2 smbd[14277]:   create_builtin_administrators: Failed to 
create Administrators 
Aug 21 21:30:12 ns2 smbd[14278]: [2007/08/21 21:30:12, 0] 
auth/auth_util.c:create_builtin_administrators(792) 
Aug 21 21:30:12 ns2 smbd[14278]:   create_builtin_administrators: Failed to 
create Administrators 
Aug 21 21:30:12 ns2 smbd[14274]: [2007/08/21 21:30:12, 0] 
auth/auth_util.c:create_builtin_users(758) 
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2007/08/20 17:00:22

[global]
 workgroup = TESTDOMAIN
 netbios name = SBS
 server string = TW
 interfaces = eth0, eth2, lo
 bind interfaces only = Yes
 passdb backend = tdbsam
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *New*Password* %n\n 

[Samba] Re: Log files created for every machine not joined to the domain...

2007-08-21 Thread Matt Anderson
Jean-Jacques Moulis jj at isy.liu.se writes:

 Windows XP automatically searches the network for shares and printers upon
connecting to the network.
 
 To disable XP automatic discovery:
 
 * In Explorer, click Tools
 * Click Folder Options
 * Click the View tab,
 * Uncheck Automatically Search for Network Folders and Printers in
Advanced settings list. 


Hi Jean-Jacques,

Thanks so much for that info... that makes sense as to why it would create log
files then, since it's attempting to access/find shares on the server.

Have a great day!

-Matt




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


[Samba] SOLVED Re: ldap and computer accounts

2007-08-21 Thread Markus Baertschi
The solution is quite simple: You need to configure pam-nss for
samba to work. Essentially samba is using a 'getent' call to look
up computers independent is configured as passdb backend. That
means the pam-nss must be configured for samba to find the
computer entries in ldap.

I find this very much counter-intuitive !

Thanks to Tom Crummey [EMAIL PROTECTED]
and John Drescher [EMAIL PROTECTED]
for pointing me into the right direction.

Markus

On 8/21/07, Markus Baertschi [EMAIL PROTECTED] wrote:


 I'm attemtping to configure a Ubuntu server for a bunch of windows
 clients.
 I'd like the authentication information to be in ldap.So far the stuff
 works,
 I can authenticate users in LDAP just fine.

 But when I want a windows machine to join the domain I get the
 error 'The user name could not be found'. The computer account
 gets created (via smbldap-tools) and I can see it in the ldap.
 The samba log shows what's happening, when id can not find
 the account it creates it and fails when it can not find the freshly
 created account. Unfortunately the log is net very helpful to point
 find out what is wrong:
 ---
 [2007/08/20 20:28:55, 5] lib/username.c:Get_Pwnam_internals(108)
   Get_Pwnam_internals didn't find user [WINXP1$]!
 [2007/08/20 20:28:56, 3]
 passdb/pdb_interface.c:pdb_default_create_user(368)
   _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -t 0
 -w winxp1$' gave 0
 [2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_alloc(131)
   Finding user WINXP1$
 [2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(75)
   Trying _Get_Pwnam(), username as lowercase is winxp1$
 [2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(83)
   Trying _Get_Pwnam(), username as given is WINXP1$
 [2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(102)
   Checking combinations of 0 uppercase letters in winxp1$
 [2007/08/20 20:28:56, 5] lib/username.c:Get_Pwnam_internals(108)
   Get_Pwnam_internals didn't find user [WINXP1$]!
 [2007/08/20 20:28:56, 3]
 passdb/pdb_interface.c:pdb_default_create_user(384)
   pdb_default_create_user: failed to create a new user structure:
 NT_STATUS_NO_SUCH_USER
 [2007/08/20 20:28:56, 5] rpc_parse/parse_prs.c:prs_debug(84)
   00 samr_io_r_create_user
 --

 How can I debug and fix this situation ?

 Markus
 --
   Markus Baertschi Phone: ++41 (21) 807 1677
   Bas du Rossé 16 Fax  : ++41 (21) 807 1678
   CH-1163, EtoyEmail: [EMAIL PROTECTED]
   Switzerland  Homepage: www.markus.org




-- 
  Markus Baertschi Phone: ++41 (21) 807 1677
  Bas du Rossé 16 Fax  : ++41 (21) 807 1678
  CH-1163, EtoyEmail: [EMAIL PROTECTED]
  Switzerland  Homepage: www.markus.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Re: Samba 18GB file Transfer

2007-08-21 Thread Derek Croxton

Brad C wrote:

Hello Guys,

Having a bit of trouble transferring an 18GB file for backup purposes to a
Samba Server. I think the 2GB limit issue was resolved a long time ago?
Running Version:
Version 3.0.23c-SerNet-SuSE

The error on the windows client side ( this is done in some type of bat
script )
file creation error the network connection was aborted by the local system.

tailing the samba logs, I think the part in bold is where things go wrong,
though i cant find anything on it. Any advice would be really welcome:

[2007/08/20 13:13:20, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:13:20, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(672)
  Got user=[root] domain=[ARCH-SERVER] workstation=[ARCH-SERVER] len1=24
len2=24
[2007/08/20 13:19:26, 3] smbd/oplock.c:init_oplocks(862)
  open_oplock_ipc: initializing messages.
[2007/08/20 13:19:26, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(260)
  Linux kernel oplocks enabled
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 0 of length 137
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBnegprot (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LANMAN1.0]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [Windows for Workgroups 3.1a]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LM1.2X002]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [LANMAN2.1]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(487)
  Requested protocol [NT LM 0.12]
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_nt1(357)
  using SPNEGO
[2007/08/20 13:19:26, 3] smbd/negprot.c:reply_negprot(580)
  Selected protocol NT LM 0.12
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 1 of length 282
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBsesssetupX (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X(849)
  wct=12 flg2=0xc807
[2007/08/20 13:19:26, 2] smbd/sesssetup.c:setup_new_vc_session(799)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(660)
  Doing spnego session setup
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_spnego_negotiate(551)
  Got OID 1 3 6 1 4 1 311 2 2 10
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_spnego_negotiate(554)
  Got secblob of size 40
[2007/08/20 13:19:26, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
  Got NTLMSSP neg_flags=0xe2088297
[2007/08/20 13:19:26, 3] smbd/process.c:process_smb(1110)
  Transaction 2 of length 408
[2007/08/20 13:19:26, 3] smbd/process.c:switch_message(914)
  switch message SMBsesssetupX (pid 30689) conn 0x0
[2007/08/20 13:19:26, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X(849)
  wct=12 flg2=0xc807
[2007/08/20 13:19:26, 2] smbd/sesssetup.c:setup_new_vc_session(799)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(660)
  Doing spnego session setup
[2007/08/20 13:19:26, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(691)
  NativeOS=[Windows Server 2003 R2 3790 Service Pack 1] NativeLanMan=[]
PrimaryDomain=[Windows Server 2003 R2 5.2]
[2007/08/20 13:19:26, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(672)
  Got user=[root] domain=[ARCH-SERVER] workstation=[ARCH-SERVER] len1=24
len2=24


When mounting in Linux, I found I had to use -o lfs at the end to get 
around the 2GB limit.  But I don't know from a Windows client.



--
Sincerely,
Derek

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


[Samba] AD native mode authentication on OpenSolaris

2007-08-21 Thread Chris Dollmont
I am running Samba 3.0.24 on OpenSolaris build 69, x86. I built Kerberos,
LDAP and Samba from source so that I could join an AD domain in native mode.
After many trials and tribulations, I successfully did a 'net ads join'.

Here's the problem:

When a user tries to connect to the Solaris server, I get the following
error in the Samba log for the client machine:

[2007/08/21 16:37:49, 0] auth/auth_domain.c:(246)
  domain_client_validate: unable to validate password for user myuser in
domain mydomain to Domain controller my dc. Error was
NT_STATUS_WRONG_PASSWORD.

On the Domain Controller, however, the security log shows a login attempt
with Success as the return code--in other words, the user successfully
authenticated against the DC. Why is the Samba server misinterpreting this?

On the Samba server, kinit works. klist works. 'net ads user' and 'net ads
group' work. Everything *appears* to be fine, but the user connection is
always failing.

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


RE: [Samba] RE: Failed to join win2000 domain in 3.0.25b

2007-08-21 Thread Latrell Wang 王獻綱
I'm using montavista linux instead of Solaris. I also encountered Logon 
failure if I turn off the client use spengo. Turn on client use spnego and use 
net rpc join seems to work perfectly.

Latrell 

-Original Message-
From: Alexandr Miasnikov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 5:18 PM
To: Latrell Wang 王獻綱; samba@lists.samba.org
Subject: Re: [Samba] RE: Failed to join win2000 domain in 3.0.25b

Latrell Wang 王獻綱 пишет:
 Hi all:
 
  
 
 I found that if I use “net rpc join” instead of “net ads join” to join a 
 win2000 ad domain, it will succeed in the same setting.
 
 I don’t know why this can work. Could somebody explain it? Are there any 
 changes for joining win2000 ad domain?
 


This is a bug https://bugzilla.samba.org/show_bug.cgi?id=4863
if You are using Solaris.


-- 

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


svn commit: samba-web r1141 - in trunk/history: .

2007-08-21 Thread jerry
Author: jerry
Date: 2007-08-21 11:51:18 + (Tue, 21 Aug 2007)
New Revision: 1141

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

Log:
Fix changes references to 3.0.25b (not 3.0.25a).
Modified:
   trunk/history/samba-3.0.25c.html


Changeset:
Modified: trunk/history/samba-3.0.25c.html
===
--- trunk/history/samba-3.0.25c.html2007-08-20 22:13:06 UTC (rev 1140)
+++ trunk/history/samba-3.0.25c.html2007-08-21 11:51:18 UTC (rev 1141)
@@ -34,7 +34,7 @@
 Changes
 ###
 
-Changes since 3.0.25a
+Changes since 3.0.25b
 -
 
 o   Michael Adam [EMAIL PROTECTED]



svn commit: samba r24591 - in branches/SAMBA_3_0_RELEASE: .

2007-08-21 Thread jerry
Author: jerry
Date: 2007-08-21 11:51:54 + (Tue, 21 Aug 2007)
New Revision: 24591

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

Log:
fix annoying typo in changes section for 3.0.25c
Modified:
   branches/SAMBA_3_0_RELEASE/WHATSNEW.txt


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/WHATSNEW.txt
===
--- branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2007-08-21 02:04:24 UTC (rev 
24590)
+++ branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2007-08-21 11:51:54 UTC (rev 
24591)
@@ -19,7 +19,7 @@
 Changes
 ###
 
-Changes since 3.0.25a
+Changes since 3.0.25b
 -
 
 o   Michael Adam [EMAIL PROTECTED]



svn commit: samba r24592 - in branches/SAMBA_4_0/source/pidl: lib/Parse/Pidl/Samba3 tests

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 12:19:56 + (Tue, 21 Aug 2007)
New Revision: 24592

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

Log:
pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
   branches/SAMBA_4_0/source/pidl/tests/samba3-cli.pl


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
===
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm   
2007-08-21 11:51:54 UTC (rev 24591)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm   
2007-08-21 12:19:56 UTC (rev 24592)
@@ -36,10 +36,11 @@
 
 sub ParseFunction($$$)
 {
-   my ($self, $uif, $fn) = @_;
+   my ($self, $if, $fn) = @_;
 
my $inargs = ;
my $defargs = ;
+   my $uif = uc($if);
my $ufn = NDR_.uc($fn-{NAME});
 
foreach (@{$fn-{ELEMENTS}}) {
@@ -63,7 +64,7 @@
$self-pidl(if (DEBUGLEVEL = 10));
$self-pidl(\tNDR_PRINT_IN_DEBUG($fn-{NAME}, r););
$self-pidl();
-   $self-pidl(status = cli_do_rpc_ndr(cli, mem_ctx, PI_$uif, $ufn, r, 
(ndr_pull_flags_fn_t)ndr_pull_$fn-{NAME}, 
(ndr_push_flags_fn_t)ndr_push_$fn-{NAME}););
+   $self-pidl(status = cli_do_rpc_ndr(cli, mem_ctx, PI_$uif, 
ndr_table_$if, $ufn, r););
$self-pidl();
 
$self-pidl(if (!NT_STATUS_IS_OK(status)) {);
@@ -141,7 +142,7 @@
 
$self-pidl_hdr(#ifndef __CLI_$uif\__);
$self-pidl_hdr(#define __CLI_$uif\__);
-   $self-ParseFunction(uc($if-{NAME}), $_) foreach (@{$if-{FUNCTIONS}});
+   $self-ParseFunction($if-{NAME}, $_) foreach (@{$if-{FUNCTIONS}});
$self-pidl_hdr(#endif /* __CLI_$uif\__ */);
 }
 

Modified: branches/SAMBA_4_0/source/pidl/tests/samba3-cli.pl
===
--- branches/SAMBA_4_0/source/pidl/tests/samba3-cli.pl  2007-08-21 11:51:54 UTC 
(rev 24591)
+++ branches/SAMBA_4_0/source/pidl/tests/samba3-cli.pl  2007-08-21 12:19:56 UTC 
(rev 24592)
@@ -39,7 +39,7 @@
 \tif (DEBUGLEVEL = 10)
 \t\tNDR_PRINT_IN_DEBUG(bar, r);
 \t
-\tstatus = cli_do_rpc_ndr(cli, mem_ctx, PI_foo, NDR_BAR, r, 
(ndr_pull_flags_fn_t)ndr_pull_bar, (ndr_push_flags_fn_t)ndr_push_bar);
+\tstatus = cli_do_rpc_ndr(cli, mem_ctx, PI_FOO, ndr_table_foo, NDR_BAR, r);
 \t
 \tif (!NT_STATUS_IS_OK(status)) {
 \t\treturn status;



svn commit: samba r24593 - in branches/SAMBA_3_2_0/source: librpc/gen_ndr rpc_client

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 12:20:10 + (Tue, 21 Aug 2007)
New Revision: 24593

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

Log:
pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
Modified:
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_dfs.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_echo.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_epmapper.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_eventlog.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_initshutdown.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_lsa.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_netlogon.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_srvsvc.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_svcctl.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_unixinfo.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_winreg.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/cli_wkssvc.c
   branches/SAMBA_3_2_0/source/rpc_client/ndr.c


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


svn commit: samba r24594 - in branches/SAMBA_3_2/source: librpc/gen_ndr rpc_client

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 12:20:33 + (Tue, 21 Aug 2007)
New Revision: 24594

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

Log:
pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
Modified:
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_dfs.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_echo.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_epmapper.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_eventlog.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_initshutdown.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_lsa.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_netlogon.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_srvsvc.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_svcctl.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_unixinfo.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_winreg.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/cli_wkssvc.c
   branches/SAMBA_3_2/source/rpc_client/ndr.c


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


svn commit: samba r24595 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd

2007-08-21 Thread vlendec
Author: vlendec
Date: 2007-08-21 12:58:10 + (Tue, 21 Aug 2007)
New Revision: 24595

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

Log:
Fix Coverity ID 393

In this error case we would have used start not having it initialized

Modified:
   branches/SAMBA_3_2/source/smbd/filename.c
   branches/SAMBA_3_2_0/source/smbd/filename.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/filename.c
===
--- branches/SAMBA_3_2/source/smbd/filename.c   2007-08-21 12:20:33 UTC (rev 
24594)
+++ branches/SAMBA_3_2/source/smbd/filename.c   2007-08-21 12:58:10 UTC (rev 
24595)
@@ -155,8 +155,7 @@
 
if (!*orig_path) {
if (!(name = SMB_STRDUP(.))) {
-   result = NT_STATUS_NO_MEMORY;
-   goto fail;
+   return NT_STATUS_NO_MEMORY;
}
if (SMB_VFS_STAT(conn,name,st) == 0) {
*pst = st;

Modified: branches/SAMBA_3_2_0/source/smbd/filename.c
===
--- branches/SAMBA_3_2_0/source/smbd/filename.c 2007-08-21 12:20:33 UTC (rev 
24594)
+++ branches/SAMBA_3_2_0/source/smbd/filename.c 2007-08-21 12:58:10 UTC (rev 
24595)
@@ -155,8 +155,7 @@
 
if (!*orig_path) {
if (!(name = SMB_STRDUP(.))) {
-   result = NT_STATUS_NO_MEMORY;
-   goto fail;
+   return NT_STATUS_NO_MEMORY;
}
if (SMB_VFS_STAT(conn,name,st) == 0) {
*pst = st;



svn commit: samba r24598 - in branches/SAMBA_3_2_0/source/librpc/gen_ndr: .

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 14:10:22 + (Tue, 21 Aug 2007)
New Revision: 24598

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

Log:
- talloc request structure for the samba3 server bindings
  and make that the primary context for the request
  which the implementations can also use.
- go via functions pointers in the ndr_interface_table
  instead of calling functions directly.

metze
Modified:
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_dfs.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_echo.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_epmapper.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_eventlog.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_initshutdown.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_lsa.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_netlogon.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_srvsvc.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_svcctl.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_unixinfo.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_winreg.c
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/srv_wkssvc.c


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


svn commit: samba r24599 - in branches/SAMBA_3_2/source: nmbd nsswitch smbd

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 14:22:16 + (Tue, 21 Aug 2007)
New Revision: 24599

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

Log:
patch from Karolin Seeger [EMAIL PROTECTED]:

smbd, nmbd and winbindd can be started with invalid options currently. 
The first patch attached would be a possible solution.
It contains an exit if an invalid option has been used. The main problem
is, that existing setups with wrong options or missing arguments in start
scripts will break (which is the right behaviour from my point of view).

metze
Modified:
   branches/SAMBA_3_2/source/nmbd/nmbd.c
   branches/SAMBA_3_2/source/nsswitch/winbindd.c
   branches/SAMBA_3_2/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_3_2/source/nmbd/nmbd.c
===
--- branches/SAMBA_3_2/source/nmbd/nmbd.c   2007-08-21 14:10:22 UTC (rev 
24598)
+++ branches/SAMBA_3_2/source/nmbd/nmbd.c   2007-08-21 14:22:16 UTC (rev 
24599)
@@ -652,6 +652,7 @@
BOOL no_process_group = False;
BOOL log_stdout = False;
enum smb_server_mode server_mode = SERVER_MODE_DAEMON;
+   int opt;
 
struct poptOption long_options[] = {
POPT_AUTOHELP
@@ -674,7 +675,14 @@
global_nmb_port = NMB_PORT;
 
pc = poptGetContext(nmbd, argc, argv, long_options, 0);
-   while (poptGetNextOpt(pc) != -1) {};
+   while ((opt = poptGetNextOpt(pc)) != -1) {
+   switch (opt) {
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
+   }
+   };
poptFreeContext(pc);
 
global_in_nmbd = True;

Modified: branches/SAMBA_3_2/source/nsswitch/winbindd.c
===
--- branches/SAMBA_3_2/source/nsswitch/winbindd.c   2007-08-21 14:10:22 UTC 
(rev 24598)
+++ branches/SAMBA_3_2/source/nsswitch/winbindd.c   2007-08-21 14:22:16 UTC 
(rev 24599)
@@ -1012,10 +1012,16 @@
 
/* Initialise samba/rpc client stuff */
 
-   pc = poptGetContext(winbindd, argc, (const char **)argv, long_options,
-   POPT_CONTEXT_KEEP_FIRST);
+   pc = poptGetContext(winbindd, argc, (const char **)argv, 
long_options, 0);
 
-   while ((opt = poptGetNextOpt(pc)) != -1) {}
+   while ((opt = poptGetNextOpt(pc)) != -1) {
+   switch (opt) {
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
+   }
+   }
 
if (server_mode == SERVER_MODE_INTERACTIVE) {
log_stdout = True;

Modified: branches/SAMBA_3_2/source/smbd/server.c
===
--- branches/SAMBA_3_2/source/smbd/server.c 2007-08-21 14:10:22 UTC (rev 
24598)
+++ branches/SAMBA_3_2/source/smbd/server.c 2007-08-21 14:22:16 UTC (rev 
24599)
@@ -855,7 +855,10 @@
case 'b':
build_options(True); /* Display output to screen as 
well as debug */ 
exit(0);
-   break;
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
}
}
 



svn commit: samba r24596 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 14:06:33 + (Tue, 21 Aug 2007)
New Revision: 24596

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

Log:
- talloc request structure for the samba3 server bindings
  and make that the primary context for the request
  which the implementations can also use.
- go via functions pointers in the ndr_interface_table
  instead of calling functions directly.

metze
Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
===
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm   
2007-08-21 12:58:10 UTC (rev 24595)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm   
2007-08-21 14:06:33 UTC (rev 24596)
@@ -72,7 +72,7 @@
}
 
pidl if ($name == NULL) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl \ttalloc_free($mem_ctx);;
pidl \treturn False;;
pidl };
pidl ;
@@ -82,62 +82,71 @@
 {
my ($if,$fn) = @_;
 
+   my $op = NDR_.uc($fn-{NAME});
+
pidl static BOOL api_$fn-{NAME}(pipes_struct *p);
pidl {;
indent;
+   pidl const struct ndr_interface_call *call;;
pidl struct ndr_pull *pull;;
pidl struct ndr_push *push;;
pidl NTSTATUS status;;
pidl DATA_BLOB blob;;
-   pidl struct $fn-{NAME} r;;
-   pidl TALLOC_CTX *mem_ctx = talloc_init(\api_$fn-{NAME}\);;
+   pidl struct $fn-{NAME} *r;;
pidl ;
-   pidl if (!prs_data_blob(p-in_data.data, blob, mem_ctx)) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl call = ndr_table_$if-{NAME}.calls[$op];;
+   pidl ;
+   pidl r = talloc(NULL, struct $fn-{NAME});;
+   pidl if (r == NULL) {;
pidl \treturn False;;
pidl };
pidl ;
-   pidl pull = ndr_pull_init_blob(blob, mem_ctx);;
+   pidl if (!prs_data_blob(p-in_data.data, blob, r)) {;
+   pidl \ttalloc_free(r);;
+   pidl \treturn False;;
+   pidl };
+   pidl ;
+   pidl pull = ndr_pull_init_blob(blob, r);;
pidl if (pull == NULL) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl \ttalloc_free(r);;
pidl \treturn False;;
pidl };
pidl ;
pidl pull-flags |= LIBNDR_FLAG_REF_ALLOC;;
-   pidl status = ndr_pull_$fn-{NAME}(pull, NDR_IN, r);;
+   pidl status = call-ndr_pull(pull, NDR_IN, r);;
pidl if (NT_STATUS_IS_ERR(status)) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl \ttalloc_free(r);;
pidl \treturn False;;
pidl };
pidl ;
pidl if (DEBUGLEVEL = 10);
-   pidl \tNDR_PRINT_IN_DEBUG($fn-{NAME}, r);;
+   pidl \tNDR_PRINT_IN_DEBUG($fn-{NAME}, r);;
pidl ;
 
-   my $env = GenerateFunctionOutEnv($fn, r.);
+   my $env = GenerateFunctionOutEnv($fn);
my $hasout = 0;
foreach (@{$fn-{ELEMENTS}}) {
if (grep(/out/, @{$_-{DIRECTION}})) { $hasout = 1; }
}
 
-   pidl ZERO_STRUCT(r.out); if ($hasout);
+   pidl ZERO_STRUCT(r-out); if ($hasout);
 
my $proto = _$fn-{NAME}(pipes_struct *p, struct $fn-{NAME} *r;
-   my $ret = _$fn-{NAME}(p, r;
+   my $ret = _$fn-{NAME}(p, r;
foreach (@{$fn-{ELEMENTS}}) {
my @dir = @{$_-{DIRECTION}};
if (grep(/in/, @dir) and grep(/out/, @dir)) {
-   pidl r.out.$_-{NAME} = r.in.$_-{NAME};;
+   pidl r-out.$_-{NAME} = r-in.$_-{NAME};;
} elsif (grep(/out/, @dir) and not 
 has_property($_, represent_as)) {
-   AllocOutVar($_, mem_ctx, r.out.$_-{NAME}, $env);
+   AllocOutVar($_, r, r-out.$_-{NAME}, $env);
}
}
$ret .= );
$proto .= );;
 
if ($fn-{RETURN_TYPE}) {
-   $ret = r.out.result = $ret;
+   $ret = r-out.result = $ret;
$proto = $fn-{RETURN_TYPE} $proto;
} else {
$proto = void $proto;
@@ -148,33 +157,33 @@
 
pidl ;
pidl if (p-rng_fault_state) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl \ttalloc_free(r);;
pidl \t/* Return True here, srv_pipe_hnd.c will take care */;
pidl \treturn True;;
pidl };
pidl ;
pidl if (DEBUGLEVEL = 10);
-   pidl \tNDR_PRINT_OUT_DEBUG($fn-{NAME}, r);;
+   pidl \tNDR_PRINT_OUT_DEBUG($fn-{NAME}, r);;
pidl ;
-   pidl push = ndr_push_init_ctx(mem_ctx);;
+   pidl push = ndr_push_init_ctx(r);;
pidl if (push == NULL) {;
-   pidl \ttalloc_free(mem_ctx);;
+   pidl \ttalloc_free(r);;
pidl \treturn False;;
pidl };
pidl ;
-   pidl status = ndr_push_$fn-{NAME}(push, NDR_OUT, r);;
+   pidl status = call-ndr_push(push, NDR_OUT, r);;
pidl if 

svn commit: samba r24597 - in branches/SAMBA_3_2/source/librpc/gen_ndr: .

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 14:06:46 + (Tue, 21 Aug 2007)
New Revision: 24597

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

Log:
- talloc request structure for the samba3 server bindings
  and make that the primary context for the request
  which the implementations can also use.
- go via functions pointers in the ndr_interface_table
  instead of calling functions directly.

metze
Modified:
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_dfs.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_echo.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_epmapper.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_eventlog.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_initshutdown.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_lsa.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_netlogon.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_srvsvc.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_svcctl.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_unixinfo.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_winreg.c
   branches/SAMBA_3_2/source/librpc/gen_ndr/srv_wkssvc.c


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


svn commit: samba r24600 - in branches/SAMBA_3_2_0/source: nmbd nsswitch smbd

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 14:42:13 + (Tue, 21 Aug 2007)
New Revision: 24600

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

Log:
patch from Karolin Seeger [EMAIL PROTECTED]:

smbd, nmbd and winbindd can be started with invalid options currently.
The first patch attached would be a possible solution.
It contains an exit if an invalid option has been used. The main problem
is, that existing setups with wrong options or missing arguments in start
scripts will break (which is the right behaviour from my point of view).

metze
Modified:
   branches/SAMBA_3_2_0/source/nmbd/nmbd.c
   branches/SAMBA_3_2_0/source/nsswitch/winbindd.c
   branches/SAMBA_3_2_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_3_2_0/source/nmbd/nmbd.c
===
--- branches/SAMBA_3_2_0/source/nmbd/nmbd.c 2007-08-21 14:22:16 UTC (rev 
24599)
+++ branches/SAMBA_3_2_0/source/nmbd/nmbd.c 2007-08-21 14:42:13 UTC (rev 
24600)
@@ -659,6 +659,7 @@
poptContext pc;
static char *p_lmhosts = dyn_LMHOSTSFILE;
static BOOL no_process_group = False;
+   int opt;
struct poptOption long_options[] = {
POPT_AUTOHELP
{daemon, 'D', POPT_ARG_VAL, is_daemon, True, Become a 
daemon(default) },
@@ -677,7 +678,14 @@
global_nmb_port = NMB_PORT;
 
pc = poptGetContext(nmbd, argc, argv, long_options, 0);
-   while (poptGetNextOpt(pc) != -1) {};
+   while ((opt = poptGetNextOpt(pc)) != -1) {
+   switch (opt) {
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
+   }
+   };
poptFreeContext(pc);
 
global_in_nmbd = True;

Modified: branches/SAMBA_3_2_0/source/nsswitch/winbindd.c
===
--- branches/SAMBA_3_2_0/source/nsswitch/winbindd.c 2007-08-21 14:22:16 UTC 
(rev 24599)
+++ branches/SAMBA_3_2_0/source/nsswitch/winbindd.c 2007-08-21 14:42:13 UTC 
(rev 24600)
@@ -975,8 +975,7 @@
 
/* Initialise samba/rpc client stuff */
 
-   pc = poptGetContext(winbindd, argc, (const char **)argv, long_options,
-   POPT_CONTEXT_KEEP_FIRST);
+   pc = poptGetContext(winbindd, argc, (const char **)argv, 
long_options, 0);
 
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
@@ -986,10 +985,13 @@
log_stdout = True;
Fork = False;
break;
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
}
}
 
-
if (log_stdout  Fork) {
printf(Can't log to stdout (-S) unless daemon is in foreground 
+(-F) or interactive (-i)\n);
poptPrintUsage(pc, stderr, 0);

Modified: branches/SAMBA_3_2_0/source/smbd/server.c
===
--- branches/SAMBA_3_2_0/source/smbd/server.c   2007-08-21 14:22:16 UTC (rev 
24599)
+++ branches/SAMBA_3_2_0/source/smbd/server.c   2007-08-21 14:42:13 UTC (rev 
24600)
@@ -892,7 +892,10 @@
case 'b':
build_options(True); /* Display output to screen as 
well as debug */ 
exit(0);
-   break;
+   default:
+   d_fprintf(stderr, \nInvalid option %s: %s\n,
+ poptBadOption(pc, 0), poptStrerror(opt));
+   exit(1);
}
}
 



svn commit: samba r24601 - in branches: SAMBA_3_2/source/client SAMBA_3_2/source/python SAMBA_3_2_0/source/client SAMBA_3_2_0/source/python

2007-08-21 Thread lmuelle
Author: lmuelle
Date: 2007-08-21 14:42:36 + (Tue, 21 Aug 2007)
New Revision: 24601

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

Log:
Fix if statements where we still expected cli_connect() to return BOOL.

Modified:
   branches/SAMBA_3_2/source/client/smbctool.c
   branches/SAMBA_3_2/source/python/py_smb.c
   branches/SAMBA_3_2_0/source/client/smbctool.c
   branches/SAMBA_3_2_0/source/python/py_smb.c


Changeset:
Modified: branches/SAMBA_3_2/source/client/smbctool.c
===
--- branches/SAMBA_3_2/source/client/smbctool.c 2007-08-21 14:42:13 UTC (rev 
24600)
+++ branches/SAMBA_3_2/source/client/smbctool.c 2007-08-21 14:42:36 UTC (rev 
24601)
@@ -3494,7 +3494,7 @@
msg_port = port ? port : 139;
 
if (!(cli=cli_initialise()) || (cli_set_port(cli, msg_port) != 
msg_port) ||
-   !cli_connect(cli, server_name, ip)) {
+   !NT_STATUS_IS_OK(cli_connect(cli, server_name, ip))) {
d_printf(Connection to %s failed\n, desthost);
return 1;
}

Modified: branches/SAMBA_3_2/source/python/py_smb.c
===
--- branches/SAMBA_3_2/source/python/py_smb.c   2007-08-21 14:42:13 UTC (rev 
24600)
+++ branches/SAMBA_3_2/source/python/py_smb.c   2007-08-21 14:42:36 UTC (rev 
24601)
@@ -47,7 +47,7 @@
 
ZERO_STRUCT(ip);
 
-   if (!cli_connect(cli, server, ip))
+   if (!NT_STATUS_IS_OK(cli_connect(cli, server, ip)))
return NULL;
 
return new_cli_state_object(cli);

Modified: branches/SAMBA_3_2_0/source/client/smbctool.c
===
--- branches/SAMBA_3_2_0/source/client/smbctool.c   2007-08-21 14:42:13 UTC 
(rev 24600)
+++ branches/SAMBA_3_2_0/source/client/smbctool.c   2007-08-21 14:42:36 UTC 
(rev 24601)
@@ -3494,7 +3494,7 @@
msg_port = port ? port : 139;
 
if (!(cli=cli_initialise()) || (cli_set_port(cli, msg_port) != 
msg_port) ||
-   !cli_connect(cli, server_name, ip)) {
+   !NT_STATUS_IS_OK(cli_connect(cli, server_name, ip))) {
d_printf(Connection to %s failed\n, desthost);
return 1;
}

Modified: branches/SAMBA_3_2_0/source/python/py_smb.c
===
--- branches/SAMBA_3_2_0/source/python/py_smb.c 2007-08-21 14:42:13 UTC (rev 
24600)
+++ branches/SAMBA_3_2_0/source/python/py_smb.c 2007-08-21 14:42:36 UTC (rev 
24601)
@@ -47,7 +47,7 @@
 
ZERO_STRUCT(ip);
 
-   if (!cli_connect(cli, server, ip))
+   if (!NT_STATUS_IS_OK(cli_connect(cli, server, ip)))
return NULL;
 
return new_cli_state_object(cli);



svn commit: samba r24602 - in branches: SAMBA_3_2/source/param SAMBA_3_2_0/source/param

2007-08-21 Thread obnox
Author: obnox
Date: 2007-08-21 14:47:15 + (Tue, 21 Aug 2007)
New Revision: 24602

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

Log:
Add function lp_string_is_valid_boolean() to check if a string
contains a correct representation of a boolean value (in the
understanding of loadparm.c).

Make set_boolean() catch passing NULL for the boolean target.

Michael


Modified:
   branches/SAMBA_3_2/source/param/loadparm.c
   branches/SAMBA_3_2_0/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_2/source/param/loadparm.c
===
--- branches/SAMBA_3_2/source/param/loadparm.c  2007-08-21 14:42:36 UTC (rev 
24601)
+++ branches/SAMBA_3_2/source/param/loadparm.c  2007-08-21 14:47:15 UTC (rev 
24602)
@@ -3087,26 +3087,42 @@
 static BOOL set_boolean(BOOL *pb, const char *pszParmValue)
 {
BOOL bRetval;
+   BOOL value;
 
bRetval = True;
if (strwicmp(pszParmValue, yes) == 0 ||
strwicmp(pszParmValue, true) == 0 ||
strwicmp(pszParmValue, 1) == 0)
-   *pb = True;
+   value = True;
else if (strwicmp(pszParmValue, no) == 0 ||
strwicmp(pszParmValue, False) == 0 ||
strwicmp(pszParmValue, 0) == 0)
-   *pb = False;
+   value = False;
else {
DEBUG(0,
  (ERROR: Badly formed boolean in configuration file: 
\%s\.\n,
   pszParmValue));
bRetval = False;
}
+
+   if (pb != NULL) {
+   *pb = value;
+   }
+
return (bRetval);
 }
 
+
 /***
+ Check if a given string correctly represents a boolean value.
+***/
+
+BOOL lp_string_is_valid_boolean(const char *parm_value)
+{
+   return set_boolean(NULL, parm_value);
+}
+
+/***
  Get the standard string representation of a boolean value (yes or no)
 ***/
 

Modified: branches/SAMBA_3_2_0/source/param/loadparm.c
===
--- branches/SAMBA_3_2_0/source/param/loadparm.c2007-08-21 14:42:36 UTC 
(rev 24601)
+++ branches/SAMBA_3_2_0/source/param/loadparm.c2007-08-21 14:47:15 UTC 
(rev 24602)
@@ -3092,26 +3092,42 @@
 static BOOL set_boolean(BOOL *pb, const char *pszParmValue)
 {
BOOL bRetval;
+   BOOL value;
 
bRetval = True;
if (strwicmp(pszParmValue, yes) == 0 ||
strwicmp(pszParmValue, true) == 0 ||
strwicmp(pszParmValue, 1) == 0)
-   *pb = True;
+   value = True;
else if (strwicmp(pszParmValue, no) == 0 ||
strwicmp(pszParmValue, False) == 0 ||
strwicmp(pszParmValue, 0) == 0)
-   *pb = False;
+   value = False;
else {
DEBUG(0,
  (ERROR: Badly formed boolean in configuration file: 
\%s\.\n,
   pszParmValue));
bRetval = False;
}
+
+   if (pb != NULL) {
+   *pb = value;
+   }
+
return (bRetval);
 }
 
+
 /***
+ Check if a given string correctly represents a boolean value.
+***/
+
+BOOL lp_string_is_valid_boolean(const char *parm_value)
+{
+   return set_boolean(NULL, parm_value);
+}
+
+/***
  Get the standard string representation of a boolean value (yes or no)
 ***/
 



svn commit: samba-web r1142 - in trunk: . devel history

2007-08-21 Thread deryck
Author: deryck
Date: 2007-08-21 16:11:18 + (Tue, 21 Aug 2007)
New Revision: 1142

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

Log:
Archive the old release announcement.
Fix a couple typos.
Updated the latest release link on devel/index.html.


Modified:
   trunk/devel/index.html
   trunk/history/index.html
   trunk/index.html


Changeset:
Modified: trunk/devel/index.html
===
--- trunk/devel/index.html  2007-08-21 11:51:18 UTC (rev 1141)
+++ trunk/devel/index.html  2007-08-21 16:11:18 UTC (rev 1142)
@@ -14,8 +14,8 @@
 
 pAs of 4 April 2004, the Samba Team converted from CVS to Subversion for 
maintaining the Samba source code.  All current development is done in a 
Subversion repository.  All older code is in the original CVS tree; this would 
include 2.2.x versions of Samba, which are no longer in active development./p
 
-pThe latest production release is emSamba 3.0.25b/em (a
-href=/samba/history/samba-3.0.25b.htmlrelease notes/a and a
+pThe latest production release is emSamba 3.0.25c/em (a
+href=/samba/history/samba-3.0.25c.htmlrelease notes/a and a
 href=/samba/download/download/a)./p 
 
 pWith the release of version 3 of the GPL, the Samba Team has decided to

Modified: trunk/history/index.html
===
--- trunk/history/index.html2007-08-21 11:51:18 UTC (rev 1141)
+++ trunk/history/index.html2007-08-21 16:11:18 UTC (rev 1142)
@@ -6,8 +6,8 @@
 
 div class=latest 
   ul
-  liLatest Release mdash; a href=/samba/#latestSamba 3.0.25b/a/li
-  liCurrent Stable Release mdash; a href=/samba/#latestSamba 
3.0.25b/a/li 
+  liLatest Release mdash; a href=/samba/#latestSamba 3.0.25c/a/li
+  liCurrent Stable Release mdash; a href=/samba/#latestSamba 
3.0.25c/a/li 
   !-- Second link will point to #stable on this page when current release is 
a development release --
   /ul
 /div
@@ -17,6 +17,39 @@
 
 h2Previous Release Announcments/h2
 
+h4a26 June 2007/a/h4
+p class=headlineSamba 3.0.25b Available for Download/p
+
+pSamba 3.0.25b is now available for download.  
+This is the third production release of the Samba 3.0.25 code 
+base and is the version that servers should be run for for all 
+current bug fixes./p
+
+pThe 3.0.25 release series is an upgrade release over the 3.0.23/3.0.24 
+releases which means that a substantial amount of development has 
+occurred and many new features have been added since the last
+Samba production release.  Please review the a 
+href=/samba/history/samba-3.0.25b.htmlRelease Notes/a for a
+complete of list of changes.  We would like to thank everyone in 
+the Samba community that help to test the preview snapshots and 
+release candidates.  We believe that the this production release 
+is in much better shape due to your help./p
+
+pThe a href=/samba/ftp/samba-3.0.25b.tar.gzSamba 3.0.25b
+source code/a can be downloaded now.  The a
+href=/samba/ftp/samba-3.0.25b.tar.ascGnuPG
+signature is for the for the emun/emcompressed tarball/a.  
+If you prefer, the a
+href=/samba/ftp/patch-3.0.25a-3.0.25b.diffs.gzpatch 
+file against Samba 3.0.25a/a 
+(a href=/samba/ftp/patch-3.0.25a-3.0.25b.diffs.ascGnuPG 
+signature/a) is also available for download.   
+Please read these a href=/samba/download/instructions on  
+how to verify the gpg signature/a.  Precompiled packages will
+be made available on a volunteer basis and can be found in the 
+a href=/samba/ftp/Binary_Packages/Binary_Packages download area/a./p
+
+
 h4a1 Mar 2007/a/h4
 p class=headlineSamba 3.0.25pre1 Available for Download/p
 
@@ -260,40 +293,4 @@
 shortly./p
 
 
-h4a13 Jun 2006/a/h4
-p class=headlineSamba 3.0.23rc2 Available for Download/p
-
-pThis is the second release candidate of the 3.0.23 code base and is
-provided for testing purposes only.  While close to the final stable
-release, this snapshot is bnot/b intended for production servers.
-There has been a substantial amount
-of development since the 3.0.21 series of stable releases.
-Please read the specific changes in the
-a href=/samba/ftp/rc/WHATSNEW-3-0-23rc2.txtRelease Notes/a.
-We would like to ask the Samba community for help in testing
-these changes as we work towards the next significant production
-upgrade Samba 3.0 release./p
-
-pThanks very much to those people who spent time testing 
-the RC1 release and reported their findings.  We would 
-like to especially thank Thomas Bork for his numerous reports.
-We believe that RC2 is in much better shape in a large 
-part due to his efforts./p
-
-pWe would also like to thank the developers of a 
href=http://www.klocwork.com/;Klocwork /a
-for their analysis of the Samba source tree.  This release 
-candidate includes multiple fixes based on reports from 
-the Klocwork code analyzer./p
-
-pThe a href=/samba/ftp/rc/samba-3.0.23rc2.tar.gzSamba 3.0.23rc2
-source code/a can be downloaded now.  The a

svn commit: samba r24603 - in branches: SAMBA_3_2/source/smbd SAMBA_3_2_0/source/smbd

2007-08-21 Thread idra
Author: idra
Date: 2007-08-21 18:45:45 + (Tue, 21 Aug 2007)
New Revision: 24603

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

Log:

In case of error we need to free prefix_cache otherwise on re-init the first
statement will return positively but prefix_cache_hashes would be NULL


Modified:
   branches/SAMBA_3_2/source/smbd/mangle_hash2.c
   branches/SAMBA_3_2_0/source/smbd/mangle_hash2.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/mangle_hash2.c
===
--- branches/SAMBA_3_2/source/smbd/mangle_hash2.c   2007-08-21 14:47:15 UTC 
(rev 24602)
+++ branches/SAMBA_3_2/source/smbd/mangle_hash2.c   2007-08-21 18:45:45 UTC 
(rev 24603)
@@ -163,6 +163,7 @@
 
prefix_cache_hashes = SMB_CALLOC_ARRAY(unsigned int, MANGLE_CACHE_SIZE);
if (!prefix_cache_hashes) {
+   SAFE_FREE(prefix_cache);
return False;
}
 

Modified: branches/SAMBA_3_2_0/source/smbd/mangle_hash2.c
===
--- branches/SAMBA_3_2_0/source/smbd/mangle_hash2.c 2007-08-21 14:47:15 UTC 
(rev 24602)
+++ branches/SAMBA_3_2_0/source/smbd/mangle_hash2.c 2007-08-21 18:45:45 UTC 
(rev 24603)
@@ -163,6 +163,7 @@
 
prefix_cache_hashes = SMB_CALLOC_ARRAY(unsigned int, MANGLE_CACHE_SIZE);
if (!prefix_cache_hashes) {
+   SAFE_FREE(prefix_cache);
return False;
}
 



svn commit: samba r24604 - in branches/SAMBA_3_2_0/source: librpc/gen_ndr script

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 19:21:46 + (Tue, 21 Aug 2007)
New Revision: 24604

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

Log:
remove some stuff samba3 doesn't need any more

metze
Removed:
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/ndr_dcerpc.h
   branches/SAMBA_3_2_0/source/librpc/gen_ndr/tables.c
Modified:
   branches/SAMBA_3_2_0/source/script/build_idl.sh


Changeset:
Deleted: branches/SAMBA_3_2_0/source/librpc/gen_ndr/ndr_dcerpc.h
===
--- branches/SAMBA_3_2_0/source/librpc/gen_ndr/ndr_dcerpc.h 2007-08-21 
18:45:45 UTC (rev 24603)
+++ branches/SAMBA_3_2_0/source/librpc/gen_ndr/ndr_dcerpc.h 2007-08-21 
19:21:46 UTC (rev 24604)
@@ -1,2 +0,0 @@
-/* empty header to deal with pidl */
-

Deleted: branches/SAMBA_3_2_0/source/librpc/gen_ndr/tables.c
===
--- branches/SAMBA_3_2_0/source/librpc/gen_ndr/tables.c 2007-08-21 18:45:45 UTC 
(rev 24603)
+++ branches/SAMBA_3_2_0/source/librpc/gen_ndr/tables.c 2007-08-21 19:21:46 UTC 
(rev 24604)
@@ -1,63 +0,0 @@
-
-/* Automatically generated by tables.pl. DO NOT EDIT */
-
-#include includes.h
-#include librpc/rpc/dcerpc.h
-#include librpc/rpc/dcerpc_table.h
-#include librpc/gen_ndr/ndr_dfs.h
-#include librpc/gen_ndr/ndr_echo.h
-#include librpc/gen_ndr/ndr_epmapper.h
-#include librpc/gen_ndr/ndr_eventlog.h
-#include librpc/gen_ndr/ndr_initshutdown.h
-#include librpc/gen_ndr/ndr_lsa.h
-#include librpc/gen_ndr/ndr_netlogon.h
-#include librpc/gen_ndr/ndr_srvsvc.h
-#include librpc/gen_ndr/ndr_svcctl.h
-#include librpc/gen_ndr/ndr_unixinfo.h
-#include librpc/gen_ndr/ndr_winreg.h
-#include librpc/gen_ndr/ndr_wkssvc.h
-
-NTSTATUS dcerpc_register_builtin_interfaces(void)
-{
-   NTSTATUS status;
-
-   status = librpc_register_interface(ndr_table_netdfs);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_rpcecho);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_epmapper);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_eventlog);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_initshutdown);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_lsarpc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_netlogon);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_srvsvc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_svcctl);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_unixinfo);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_winreg);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_wkssvc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-
-   
-   return NT_STATUS_OK;
-}

Modified: branches/SAMBA_3_2_0/source/script/build_idl.sh
===
--- branches/SAMBA_3_2_0/source/script/build_idl.sh 2007-08-21 18:45:45 UTC 
(rev 24603)
+++ branches/SAMBA_3_2_0/source/script/build_idl.sh 2007-08-21 19:21:46 UTC 
(rev 24604)
@@ -41,20 +41,6 @@
$PIDL $list || exit 1
 fi
 
-##
-## Do miscellaneous cleanup
-##
-
-for f in librpc/gen_ndr/ndr_*.c; do
-   cat $f | sed -e 's/^static //g'  $f.new
-   /bin/mv -f $f.new $f
-done
-
-touch librpc/gen_ndr/ndr_dcerpc.h
-
-echo Generating librpc/gen_ndr/tables.c
-./librpc/tables.pl --output=librpc/gen_ndr/tables.c librpc/gen_ndr/*.h  
librpc/gen_ndr/tables.c
-
 cd ${oldpwd}
 
 exit 0



svn commit: samba r24605 - in branches/SAMBA_3_2/source: librpc/gen_ndr script

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 19:23:05 + (Tue, 21 Aug 2007)
New Revision: 24605

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

Log:
remove some stuff samba3 doesn't need any more

metze
Removed:
   branches/SAMBA_3_2/source/librpc/gen_ndr/ndr_dcerpc.h
   branches/SAMBA_3_2/source/librpc/gen_ndr/tables.c
Modified:
   branches/SAMBA_3_2/source/script/build_idl.sh


Changeset:
Deleted: branches/SAMBA_3_2/source/librpc/gen_ndr/ndr_dcerpc.h
===
--- branches/SAMBA_3_2/source/librpc/gen_ndr/ndr_dcerpc.h   2007-08-21 
19:21:46 UTC (rev 24604)
+++ branches/SAMBA_3_2/source/librpc/gen_ndr/ndr_dcerpc.h   2007-08-21 
19:23:05 UTC (rev 24605)
@@ -1,2 +0,0 @@
-/* empty header to deal with pidl */
-

Deleted: branches/SAMBA_3_2/source/librpc/gen_ndr/tables.c
===
--- branches/SAMBA_3_2/source/librpc/gen_ndr/tables.c   2007-08-21 19:21:46 UTC 
(rev 24604)
+++ branches/SAMBA_3_2/source/librpc/gen_ndr/tables.c   2007-08-21 19:23:05 UTC 
(rev 24605)
@@ -1,63 +0,0 @@
-
-/* Automatically generated by tables.pl. DO NOT EDIT */
-
-#include includes.h
-#include librpc/rpc/dcerpc.h
-#include librpc/rpc/dcerpc_table.h
-#include librpc/gen_ndr/ndr_dfs.h
-#include librpc/gen_ndr/ndr_echo.h
-#include librpc/gen_ndr/ndr_epmapper.h
-#include librpc/gen_ndr/ndr_eventlog.h
-#include librpc/gen_ndr/ndr_initshutdown.h
-#include librpc/gen_ndr/ndr_lsa.h
-#include librpc/gen_ndr/ndr_netlogon.h
-#include librpc/gen_ndr/ndr_srvsvc.h
-#include librpc/gen_ndr/ndr_svcctl.h
-#include librpc/gen_ndr/ndr_unixinfo.h
-#include librpc/gen_ndr/ndr_winreg.h
-#include librpc/gen_ndr/ndr_wkssvc.h
-
-NTSTATUS dcerpc_register_builtin_interfaces(void)
-{
-   NTSTATUS status;
-
-   status = librpc_register_interface(ndr_table_netdfs);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_rpcecho);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_epmapper);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_eventlog);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_initshutdown);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_lsarpc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_netlogon);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_srvsvc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_svcctl);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_unixinfo);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_winreg);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-   status = librpc_register_interface(ndr_table_wkssvc);
-   if (NT_STATUS_IS_ERR(status)) return status;
-
-
-   
-   return NT_STATUS_OK;
-}

Modified: branches/SAMBA_3_2/source/script/build_idl.sh
===
--- branches/SAMBA_3_2/source/script/build_idl.sh   2007-08-21 19:21:46 UTC 
(rev 24604)
+++ branches/SAMBA_3_2/source/script/build_idl.sh   2007-08-21 19:23:05 UTC 
(rev 24605)
@@ -41,20 +41,6 @@
$PIDL $list || exit 1
 fi
 
-##
-## Do miscellaneous cleanup
-##
-
-for f in librpc/gen_ndr/ndr_*.c; do
-   cat $f | sed -e 's/^static //g'  $f.new
-   /bin/mv -f $f.new $f
-done
-
-touch librpc/gen_ndr/ndr_dcerpc.h
-
-echo Generating librpc/gen_ndr/tables.c
-./librpc/tables.pl --output=librpc/gen_ndr/tables.c librpc/gen_ndr/*.h  
librpc/gen_ndr/tables.c
-
 cd ${oldpwd}
 
 exit 0



svn commit: samba r24606 - in branches/SAMBA_4_0/source: librpc librpc/ndr librpc/rpc librpc/tools rpc_server/remote scripting/ejs torture/rpc

2007-08-21 Thread metze
Author: metze
Date: 2007-08-21 19:35:43 + (Tue, 21 Aug 2007)
New Revision: 24606

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

Log:
move librpc/rpc/table.c - librpc/ndr/ndr_table.c
and rename the containing functions to have a ndr_
prefix

metze
Added:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_table.c
Removed:
   branches/SAMBA_4_0/source/librpc/rpc/table.c
Modified:
   branches/SAMBA_4_0/source/librpc/config.mk
   branches/SAMBA_4_0/source/librpc/tables.pl
   branches/SAMBA_4_0/source/librpc/tools/ndrdump.c
   branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_rpc.c
   branches/SAMBA_4_0/source/torture/rpc/autoidl.c
   branches/SAMBA_4_0/source/torture/rpc/countcalls.c
   branches/SAMBA_4_0/source/torture/rpc/epmapper.c
   branches/SAMBA_4_0/source/torture/rpc/mgmt.c
   branches/SAMBA_4_0/source/torture/rpc/rpc.c
   branches/SAMBA_4_0/source/torture/rpc/scanner.c


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


svn commit: samba r24607 - in branches/SAMBA_3_2_0/source: lib smbd

2007-08-21 Thread jra
Author: jra
Date: 2007-08-21 20:36:05 + (Tue, 21 Aug 2007)
New Revision: 24607

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

Log:
Merge the sessionsetup fix from 3.2
Jeremy.

Modified:
   branches/SAMBA_3_2_0/source/lib/substitute.c
   branches/SAMBA_3_2_0/source/smbd/password.c
   branches/SAMBA_3_2_0/source/smbd/sesssetup.c


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


svn commit: samba r24608 - in branches/SAMBA_3_2_0/source/smbd: .

2007-08-21 Thread jra
Author: jra
Date: 2007-08-21 21:27:37 + (Tue, 21 Aug 2007)
New Revision: 24608

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

Log:
Minimize differences between 3.2 and 3.2.0. This is essentially a back-port
of the 3.2 sessionsetup code to enable vl's merge to go easier.
Jeremy.

Modified:
   branches/SAMBA_3_2_0/source/smbd/sesssetup.c


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


svn commit: samba r24609 - in branches: SAMBA_3_2/source/lib SAMBA_3_2_0/source/lib

2007-08-21 Thread obnox
Author: obnox
Date: 2007-08-21 21:55:51 + (Tue, 21 Aug 2007)
New Revision: 24609

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

Log:
Fix the fix of r23668 for win2k giving one zero byte
instead of a 2-byte zero character. I can't recall what
rode me when I put that 2 there. But now I think I
have got it right... :-)

Michael


Modified:
   branches/SAMBA_3_2/source/lib/util_reg_api.c
   branches/SAMBA_3_2_0/source/lib/util_reg_api.c


Changeset:
Modified: branches/SAMBA_3_2/source/lib/util_reg_api.c
===
--- branches/SAMBA_3_2/source/lib/util_reg_api.c2007-08-21 21:27:37 UTC 
(rev 24608)
+++ branches/SAMBA_3_2/source/lib/util_reg_api.c2007-08-21 21:55:51 UTC 
(rev 24609)
@@ -61,7 +61,7 @@
err = WERR_NOMEM;
goto error;
}
-   tmp[0] = 2;
+   tmp[0] = 0;
tmp[1] = 0;
}
else if ((length % 2) != 0) {

Modified: branches/SAMBA_3_2_0/source/lib/util_reg_api.c
===
--- branches/SAMBA_3_2_0/source/lib/util_reg_api.c  2007-08-21 21:27:37 UTC 
(rev 24608)
+++ branches/SAMBA_3_2_0/source/lib/util_reg_api.c  2007-08-21 21:55:51 UTC 
(rev 24609)
@@ -61,7 +61,7 @@
err = WERR_NOMEM;
goto error;
}
-   tmp[0] = 2;
+   tmp[0] = 0;
tmp[1] = 0;
}
else if ((length % 2) != 0) {



svn commit: samba r24610 - in branches: SAMBA_3_2/source/lib SAMBA_3_2_0/source/lib

2007-08-21 Thread obnox
Author: obnox
Date: 2007-08-21 21:57:58 + (Tue, 21 Aug 2007)
New Revision: 24610

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

Log:
Add a debug message that the workaround has been activated...


Modified:
   branches/SAMBA_3_2/source/lib/util_reg_api.c
   branches/SAMBA_3_2_0/source/lib/util_reg_api.c


Changeset:
Modified: branches/SAMBA_3_2/source/lib/util_reg_api.c
===
--- branches/SAMBA_3_2/source/lib/util_reg_api.c2007-08-21 21:55:51 UTC 
(rev 24609)
+++ branches/SAMBA_3_2/source/lib/util_reg_api.c2007-08-21 21:57:58 UTC 
(rev 24610)
@@ -63,6 +63,8 @@
}
tmp[0] = 0;
tmp[1] = 0;
+   DEBUG(10, (got REG_SZ value of length 1 - workaround 
+  activated.\n));
}
else if ((length % 2) != 0) {
err = WERR_INVALID_PARAM;

Modified: branches/SAMBA_3_2_0/source/lib/util_reg_api.c
===
--- branches/SAMBA_3_2_0/source/lib/util_reg_api.c  2007-08-21 21:55:51 UTC 
(rev 24609)
+++ branches/SAMBA_3_2_0/source/lib/util_reg_api.c  2007-08-21 21:57:58 UTC 
(rev 24610)
@@ -63,6 +63,8 @@
}
tmp[0] = 0;
tmp[1] = 0;
+   DEBUG(10, (got REG_SZ value of length 1 - workaround 
+  activated.\n));
}
else if ((length % 2) != 0) {
err = WERR_INVALID_PARAM;



Build status as of Wed Aug 22 00:00:02 2007

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

--- /home/build/master/cache/broken_results.txt.old 2007-08-21 
00:01:28.0 +
+++ /home/build/master/cache/broken_results.txt 2007-08-22 00:01:36.0 
+
@@ -1,24 +1,24 @@
-Build status as of Tue Aug 21 00:00:02 2007
+Build status as of Wed Aug 22 00:00:02 2007
 
 Build counts:
 Tree Total  Broken Panic 
 SOC  0  0  0 
 build_farm   0  0  0 
-ccache   31 9  0 
+ccache   30 9  0 
 ctdb 0  0  0 
 distcc   2  0  0 
 ldb  29 5  0 
-libreplace   29 8  0 
-lorikeet-heimdal 26 14 0 
-pidl 18 3  0 
-ppp  13 10 0 
+libreplace   28 8  0 
+lorikeet-heimdal 24 13 0 
+pidl 17 3  0 
+ppp  12 9  0 
 python   0  0  0 
-rsync31 11 0 
+rsync30 11 0 
 samba-docs   0  0  0 
 samba-gtk3  3  0 
-samba4   28 24 0 
-samba_3_232 21 0 
-smb-build28 28 0 
-talloc   31 1  0 
-tdb  30 4  0 
+samba4   27 25 0 
+samba_3_231 19 0 
+smb-build27 27 0 
+talloc   30 1  0 
+tdb  28 4  0 
 


svn commit: samba r24611 - in branches/SAMBA_4_0/source: dsdb/samdb rpc_server rpc_server/netlogon rpc_server/samr torture/rpc

2007-08-21 Thread abartlet
Author: abartlet
Date: 2007-08-22 04:28:15 + (Wed, 22 Aug 2007)
New Revision: 24611

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

Log:
Following up on the re-opening of bug 4817 is it pretty clear that
machine accounts are not subject to password policy in Win2k3 R2 (at
least in terms of password quality).

In testing this, I found that Win2k3 R2 has changed the way the old
ChangePassword RPC call is handled - the 'cross-checks' between new LM
and NT passwords are not required. 

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/samdb.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
   branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
   branches/SAMBA_4_0/source/torture/rpc/samr.c


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


svn commit: samba r24612 - in branches/SAMBA_4_0/source/rpc_server: .

2007-08-21 Thread abartlet
Author: abartlet
Date: 2007-08-22 04:43:17 + (Wed, 22 Aug 2007)
New Revision: 24612

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

Log:
Revert this part of -r 24611.  This isn't related to my SAMR password
work, but to an odd bind failure I noticed in a trace.  I need to
commit this with changes to the torture suite.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2007-08-22 
04:28:15 UTC (rev 24611)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2007-08-22 
04:43:17 UTC (rev 24612)
@@ -528,6 +528,10 @@
uint32_t context_id;
const struct dcesrv_interface *iface;
 
+   if (call-pkt.u.bind.assoc_group_id != 0) {
+   return dcesrv_bind_nak(call, 0);
+   }
+
if (call-pkt.u.bind.num_contexts  1 ||
call-pkt.u.bind.ctx_list[0].num_transfer_syntaxes  1) {
return dcesrv_bind_nak(call, 0);



svn commit: samba r24613 - in branches/SAMBA_4_0/source/kdc: .

2007-08-21 Thread abartlet
Author: abartlet
Date: 2007-08-22 05:32:52 + (Wed, 22 Aug 2007)
New Revision: 24613

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

Log:
Missed this in my recent commit -r 24611.  We don't discriminate on
where the password change came from, to determine if policy should be
applied.  We discriminate on if the account is a trust account.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/kdc/kpasswdd.c


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/kpasswdd.c
===
--- branches/SAMBA_4_0/source/kdc/kpasswdd.c2007-08-22 04:43:17 UTC (rev 
24612)
+++ branches/SAMBA_4_0/source/kdc/kpasswdd.c2007-08-22 05:32:52 UTC (rev 
24613)
@@ -197,7 +197,6 @@
session_info-security_token-user_sid,
password, NULL, NULL, 
True, /* this is a user password change 
*/
-   True, /* run restriction tests */
reject_reason,
dominfo);
return kpasswd_make_pwchange_reply(kdc, mem_ctx, 
@@ -362,7 +361,6 @@
set_password_on_dn, NULL,
msg, password, NULL, NULL, 
False, /* this is not a 
user password change */
-   True, /* run restriction 
tests */
reject_reason, dominfo);
}