[Samba] Samba AD client's settings transfer

2008-01-18 Thread Jimmy Choo
Hi,

I have successfully joined my Linux box(ubuntu feisty) to Active
Directory using Samba.
Now i have installed a new Linux distro(ubuntu gutsy) and want to join it to AD.

The problem is that it is asking for some kind-of-password when i do
net ads testjoin.

This implies that when joining a domain, some kind of mutual identity
must have been stored
 by samba. right?

The questions is how do i make the new distro join the domain using
old samba data/settings?
 (basically is their some files which store the trust relationship
which i need to copy over to new distro?)


I hope i am clear.

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


Re: [Samba] Samba AD client's settings transfer

2008-01-18 Thread John Hodrien

On Fri, 18 Jan 2008, Jimmy Choo wrote:


I have successfully joined my Linux box(ubuntu feisty) to Active
Directory using Samba.
Now i have installed a new Linux distro(ubuntu gutsy) and want to join it to
AD.

The problem is that it is asking for some kind-of-password when i do
net ads testjoin.

This implies that when joining a domain, some kind of mutual identity
must have been stored
by samba. right?

The questions is how do i make the new distro join the domain using
old samba data/settings?
(basically is their some files which store the trust relationship
which i need to copy over to new distro?)


If I understand what you're asking, then secrets.tdb is what you're looking
for. since that's what contains the machine account password.

Alternatively you just rejoin your new machine to the domain using user
credentials, where the user is permitted to join machines.

jh

--
All publicity is good, except an obituary notice.  -- Brendan Behan
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] XP Home and samba

2008-01-18 Thread Mark Adams

Yes, change her workgroup.

Mark.


On 18 Jan 2008, at 07:50, Francis Galiegue [EMAIL PROTECTED] wrote:


Le vendredi 18 janvier 2008, Yan Seiner a écrit :
I built a small embedded samba server  based on Samba 3.0.26b.  I  
tested

it locally with XP Pro running in a vmware VM.

All worked fine, so I shipped it.

Turns out the person using it is running XP Home.  Here's her note:

I have restarted the computer and waited ten minutes and still  
nothing.

All that comes up is the mshome under the Microsoft Windows Network.

So it looks like all she's seeing in her network is her own mshome
workstation and not my samba server.

Is there something particular about XP Home that I / she has to do to
get it to recognize another workgroup?

Should I just talk her through changing her workgroup to mySambaWG?

I've never had to deal with XP Home



AFAIK, XP Home just cannot connect to an SMB domain...


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

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


Re: [Samba] Home directory problem

2008-01-18 Thread Doug VanLeuven

Anne Wilson wrote:

On Thursday 17 January 2008 10:29:26 [EMAIL PROTECTED] wrote:
  

What happens when you browse to \\server\homes ?



An error occurred while loading smb://david.lydgate.net/homes:
The file or folder smb://david.lydgate.net/homes does not exist.

Anne
  

You should be seeing a share called \\server\username

The [homes] section:
Some modifications are then made to the newly created share:
 The share name is changed from homes to the located username.
 If no path was given, the path is set to the user's home directory.

Maybe the software you were using before did it different.

Regards, Doug

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


[Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Dave Ewart
We have a server which runs Samba and Apache.  Web developers edit their
files (via Windows mapped drives) from Windows XP SP2.  These files are
typically CGI files and the developers' routine is:

while (web page not quite right) {
1. Edit file
2. Save
3. Click Reload on web browser
4. Check results
}

They go around that loop many times during a typical development run.
However, for some staff who are using the editor Visual Slick Edit, we
have a problem at Step 3.  The web server returns a 500 Internal Server
Error message.  However, if one waits approximately 10-15 seconds and
clicks Reload again, the web page loads as expected.

At the same time as the '500 Internal Server Error' is sent to the
browser, the following appears in the Apache logs:

[error] (26)Text file busy: exec of
/home/user/public_html/blah/blah.cgi failed
 
Text file busy is the key.  If one runs 'smbstatus | grep epic_plasma'
(in this case) and watches the locks shown for the file being edited, a
lock is seen:

28434 1165 DENY_WRITE 0x2019f RDWR EXCLUSIVE+BATCH
/home/user/public_html/blah/blah.cgi [...]

Upon repeated re-running of 'smbstatus', the above lock goes away after
approximately 10-15 seconds.

Apache refuses to attempt loading the CGI file if the Samba lock is in
place, it seems.  This delay makes it very disruptive to the developers.

This problem arose following our upgrade from Debian/Sarge to
Debian/Etch, without changing smb.conf.  The problem is limited to staff
using the Visual Slick Edit editor (which may indeed be the source of
the problem, but I want to understand what Samba is doing).  Staff
using, say, gVim are unaffected.

I've read the changelog for Samba for the versions between the
Debian/Sarge release and that for Debian/Etch and I don't see anything
which relates to locking behaviour.

The Samba configuration for the share on which the files in question
reside contains no lock-related parameters.

It may be useful to compare the behaviour of Slick Edit and, say, gVim:

SlickEdit: 

- DENY_WRITE RDONLY EXCLUSIVE+BATCH lock appears for around 10-15
  second when the file is *opened*;
- DENY_WRITE RDWR EXCLUSIVE+BATCH lock appears for around 10-15
  seconds following each *save*;

gVim:

- RD_ONLY DENY_NONE appears on the file *very* briefly (less than a
second) at the time the file is *opened*;
- I haven't observed any other locks on the file during save;

Does anyone have any suggestions for what I can try here?

Dave.


-- 
Dave Ewart
[EMAIL PROTECTED]
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016


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

[Samba] wrong uid in lock database

2008-01-18 Thread Marcel Mulder
Hi,

 

I am running Ubuntu 7.10, Samba 3.0.26a.

For authentication I use Winbind which is talking to a Windows Small
Business Server 2003

Everything look normal things like wbinfo -g, wbinfo -u, getent passwd
etc, all runs perfectly well.

 

The problem I have is that occasionally strange thing happen on the
network. Files cannot be deleted en compile jobs fail.

What I see is that when I do a smbstatus -L that some files are locked
with a wrong uid. So, user with uid 1 creates a lock with an
application an the lock is assigned to user 10019. How can this be
possible? 

I it very hard for me to look in the logs to see what happens because
the phenomena is only occurring when there is lots of traffic. Because
of this the log are generate huge amount of data and therefore wrapping
continuously.

 

A fragment of my smb.conf  is below.

 

[global]

workgroup = MICROKEY

realm = MICROKEY.LAN

interfaces = eth1

security = ADS

password server = 192.168.1.1

log level = 1

domain master = no

 

idmap uid = 1-2

idmap gid = 1-2

template shell = /bin/bash

winbind use default domain = Yes

winbind enum users = yes

winbind enum groups = yes

template homedir = /home/%D/%U

client use spnego = yes

 

wins server = 192.168.1.1

name resolve order = wins bcast hosts

 

printcap name = cups

printing = cups

 

[homes]

browseable = no

writable = yes

 

[printers]

comment = All Printers

path = /var/spool/samba

guest ok = Yes

printable = Yes

 

[print$]

 comment = Printer Drivers

 path = /etc/samba/drivers

 browseable = yes

 guest ok = no

 read only = yes

 write list = root microkey.lan\\administrator

 

[development]

comment = Product development

path = /home/microkey/shares/development

valid users = @microkey.lan\\development

write list = @microkey.lan\\development

create mask = 0770

directory mask = 0770

force group = @microkey.lan\\development

 

Help is appreciated

 

Marcel

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


Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Volker Lendecke
On Fri, Jan 18, 2008 at 10:07:00AM +, Dave Ewart wrote:
 At the same time as the '500 Internal Server Error' is sent to the
 browser, the following appears in the Apache logs:
 
 [error] (26)Text file busy: exec of
 /home/user/public_html/blah/blah.cgi failed
  
 Text file busy is the key.  If one runs 'smbstatus | grep epic_plasma'
 (in this case) and watches the locks shown for the file being edited, a
 lock is seen:
 
 28434 1165 DENY_WRITE 0x2019f RDWR EXCLUSIVE+BATCH
 /home/user/public_html/blah/blah.cgi [...]

Try using oplocks = no. Be aware though that this has
performance implications.

Volker


pgpdq2R8vfmuH.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] testjoin on samba pdc fails to get schannel session key

2008-01-18 Thread corrie jukit
Debian 2.6.18

smb.conf:

[global]
workgroup = DOMAIN
server string = %h server
interfaces = eth0
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = lmhosts host wins bcast
add user script = /usr/sbin/adduser --quiet --disabled-password
--gecos  %u
domain logons = Yes
domain master = Yes
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d

//

useradd -g machines -d /var/lib/nobody -s /bin/false inside$
passwd -l inside$
smbpasswd -a -m inside

net rpc testjoin
net rpc testjoin -U Administrator%'adminpassword'

[2008/01/18 09:43:43, 0]
rpc_client/cli_pipe.c:get_schannel_session_key(2443)
  get_schannel_session_key: could not fetch trust account password for
domain 'SERVER'
[2008/01/18 09:43:43, 0] utils/net_rpc_join.c:net_rpc_join_ok(70)
  net_rpc_join_ok: failed to get schannel session key from server SERVER for
domain DOMAIN. Error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Join to domain 'DOMAIN' is not valid

//

After following the instruction here:

http://archives.free.net.ph/message/20060316.164348.49db1fcd.en.html

I now get an additional error appearing before other net rpc response:

[2008/01/18 10:07:43, 0] param/loadparm.c:handle_copy(3147)
  Unable to copy service - source not found:

//

I want to run the linux samba server as PDC. After some reading I am not
completely clear if the correct approach is: join PDC machine to domain
always; optionally use winbind. I take it also at this point there is no
requirement to set up default windows domain groups.

However, doing so, log.nmbd shows:

[2008/01/18 11:01:15, 0] param/loadparm.c:handle_copy(3147)
  Unable to copy service - source not found:
[2008/01/18 11:01:15, 0] auth/auth_util.c:create_builtin_administrators(785)

  create_builtin_administrators: Failed to create Administrators

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


[Samba] Mapping AD domain users to UNIX users

2008-01-18 Thread Nigel.Pain
We're using Samba 3.0.23b (binaries downloaded from Sunfreeware) on
Solaris 9 as a member server, using security = DOMAIN in an Active
Directory 2003 domain. The server is primarily an application server,
running SAS software, but we have a share to Windows to enable users to
save programs and data from their Windows XP workstations. Historically
we've been using PC Netlink, Sun's version of Lanman, but this isn't
compatible with AD 2003 so we need to move to Samba.

We're struggling to establish a mapping between domain user accounts and
UNIX user accounts that are similarly named (the same naming convention
is used for both). My understanding of Samba, albeit sketchy, was that
it could automatically make a mapping between local and domain accounts
of the same name. However, this doesn't appear to be happening. If I set
a file's permissions for a specified user in Solaris it appears in the
file's security within Windows, but the user is listed as a Unix User
along the lines of:

u123456 (Unix User\u123456)

I was expecting that there should be an implicit mapping between u123456
in Solaris and domain\u123456 but maybe I've got the wrong end of the
stick. We need to maintain the local users so that we can control who
has access to the server software, and we maintain password aging both
on the server and the domain so maintaining a separate password database
for Samba would be a complication. an Extract from nsswitch.conf and
(edited) smb.conf and included below.

As you will see from nsswitch.conf, we are using winbind. wbinfo will
resolve any domain information and getent passwd will return domain user
accounts.

Many thanks in advance.

nsswitch.conf:

passwd: files winbind
group:  files winbind

hosts:  files dns winbind

smb.conf:

[global]
workgroup = our-domain-name
netbios aliases = mc18unxa
# dual nics: the netmask is correct for our network
interfaces = xx.xx.xxx.xx/255.255.240.0,
yy.yy.yyy.yy/255.255.240.0
security = DOMAIN
null passwords = Yes
password server = *
passdb backend = tdbsam
lanman auth = No
client NTLMv2 auth = Yes
client lanman auth = No
client plaintext auth = No
log level = 1
log file = /var/samba/log/log.%m
max log size = 5
load printers = No
dns proxy = No
ldap ssl = no
idmap uid = 1-1
idmap gid = 1-1
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
create mask = 0644
directory mask = 0775
hosts deny = none
case sensitive = No
preserve case = No
  domain master = no
  local master = no
  preferred master = no
  os level = 0

[dosptn]
path = /dosptn
read only = No
inherit permissions = Yes
guest ok = Yes



Nigel Pain
The Scottish Government
Corporate Systems Support
Information Systems and Information Services (ISIS)
Victoria Quay 
EDINBURGH 
EH6 6QQ 
UK






This e-mail (and any files or other attachments transmitted with it) is 
intended solely for the attention of the addressee(s).  Unauthorised use, 
disclosure, storage, copying or distribution of any part of this e-mail is not 
permitted.  If you are not the intended recipient please destroy the email, 
remove any copies from your system and inform the sender immediately by return.

 

Communications with the Scottish Government may be monitored or recorded in 
order to secure the effective operation of the system and for other lawful 
purposes.  The views or opinions contained within this e-mail may not 
necessarily reflect those of the Scottish Government.




The original of this email was scanned for viruses by the Government Secure 
Intranet virus scanning service supplied by CableWireless in partnership with 
MessageLabs. (CCTM Certificate Number 2007/11/0032.) On leaving the GSi this 
email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or 
recorded for legal purposes.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba AD client's settings transfer

2008-01-18 Thread Jimmy Choo
Hi John,

0)Yes secrets.tdb was the file i was looking for.

1) But still a question remains -

After copying secrets.tdb i had to do net ads join -U username.
After this i was successfully connected to the domain.
( Also i would guess here that copying secrets.tdb was not necessary because
even without that i could join domain, right?)

In earlier distro i simply did net ads join without explicitly
mentioning my username.
( my credentials were of course there via kinit ) How come?

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


[Samba] Re: Standalone Server with Wins -- Password Not Required on Win/XP

2008-01-18 Thread Dragan Krnic
 If I enter userid Only, I gain full access to the share without
 Ever entering a password

 This incorrect behavior is caused as a result of
 preferred master = yes in the smb.conf file.
 If I comment this line out in smb.conf, everything
 works fine.

What has preferred master to do with this passwords?
I'm really puzzled, especially because I set my PDC as
preferred master, even though it would probably by
default (auto) chose to be one.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba AD client's settings transfer

2008-01-18 Thread John Hodrien

On Fri, 18 Jan 2008, Jimmy Choo wrote:


Hi John,

0)Yes secrets.tdb was the file i was looking for.

1) But still a question remains -

After copying secrets.tdb i had to do net ads join -U username.


If you copied across secrets.tdb (and perhaps your krb5.keytab if you were
using it), surely you wouldn't need to call net ads join?


In earlier distro i simply did net ads join without explicitly
mentioning my username.
( my credentials were of course there via kinit ) How come?

Any ideas here?


net ads join works fine for me with an appropriate kerberos credential.

I'm not sure either.

jh

--
Tact in audacity consists in knowing how far we may go too far.
 -- Jean Cocteau
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Circular links and backups

2008-01-18 Thread damiend
this is easy one to fix simply don't follow symlinks

adding the following to smb.conf under the share definition should stop it.


follow symlinks = no


regards



-
Damien Dye BSC(hon)
IT and Telecommunications Engineer
Mckenna Group
Lawn Road Industrial Estate
Lawn Road
Carlton-in-Lindrick
Worksop
Nottinghamshire
United Kingdom
S81 9LB

Email  : [EMAIL PROTECTED]
Tel: (44) 01909541414
Direct : (44) 01909541462
Fax: (44) 01909541415
Web: www.mckennagroup.co.uk

Company Registered in England,
Company Registration Number 1713320
Registered address Lawn Road, Carlton-in-Lindrick, Worksop, Notts, S81 9LB


 Original Message 
Subject: [Samba] Circular links and backups (18-Jan-2008 1:53)
From:[EMAIL PROTECTED]
To:  [EMAIL PROTECTED]

 Hello,
 
 I ran into an interesting problem earlier today.  I have a Unix
 machine I maintain in a largely Windows shop.  They use Windows Backup
 for their backups, and so I created a readonly share of the entire
 filesystem with one user, backup, who is an admin user.  This lets
 them back up the entire Unix machine by attaching to the backup
 share, but nothing can be changed.  So far so good.
 
 I'm backing up just essential files on the system, /etc, /home,
 and /usr/local.  We started running the backup, and it first
 estimated 3GB, which is about right.  As it ran, though, it kept
 increasing its estimate; we stopped it at about 20GB.  Closer
 inspection showed that it was confused by circular links to
 directories.
 
 The default Apache configuration on our system has a circular link,
 with /etc/apache/conf - /etc/apache.  I believe this is for
 compatibility, since Apache configuration files used to be in
 /etc/apache/conf, but that's beside the point.  This is installed by
 the OS, so I'm reluctant to remove it, since other packages could
 depend on it being present.
 
 The problem was that circular link.  Samba would resolve the symlink
 for the client, and so the client would recurse into a directory it
 was already in, and so just keep backing up forever.
 
 I looked at disabling symlinks, but the docs said this will return
 errors when they are read.  I suspect this would upset the backup
 software.
 
 Does anybody have a suggestion for dealing with this?
 
 Thanks,
 
 ---Scott.
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
 To: samba@lists.samba.org

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


Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Volker Lendecke
On Fri, Jan 18, 2008 at 01:14:30PM +, Dave Ewart wrote:
 Can you explain what's actually going on in the above problem, please?
 Is the Windows editor doing something wrong/unhelpful in generating the
 lock?  Or is it simply taking advantage of behaviour which is allowed by
 Samba?  Specifically, why does the lock take 10-15 seconds to go away?

It's the Windows redirectory that might hold the file open
longer than the app does it.

BTW, what is your server platform? With Linux and activated
kernel oplock this should not happen.

Volker


pgpxJ22LjeFOM.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] winbind: group membership issues.

2008-01-18 Thread Nord, James
After a lot of scratching and searching it looks like I may be hitting
Solaris' max 16 groups limit.  Arr.

/James

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Nord, James
 Sent: 16 January 2008 10:07
 To: samba@lists.samba.org
 Subject: [Samba] winbind: group membership issues.
 
 Hi all,
  
 I  have a Solaris 10 (update 4) box (x86) that is joined to 
 an active directory via samba/winbind (3.0.25c version 
 included with Solaris including latest patches).
 
 The users are working fine however their group membership is not.
 
 Users that should be members of certain groups do not seem to 
 be: in that if I run 'groups' and check the group member ship 
 for my domain account I am missing entry of some groups yet I 
 can verify that I should be a member of the missing groups by 
 running 'getent group domain\\group name' and seeing my 
 domain username entered.
 
 winbind has the following parameters set
 winbind enum users = yes
 winbind enum groups = yes
 winbind nested groups = yes
 
 I am at a loss as to why it picks up some groups and not others.
 
 The name service cache deamon is not running.
  
 wbinfo -u, -g, and -t all report correctly
 
 Has anyone come across something similar or know how to solve 
 this issue?
 
 -- smb.conf --
 [global]
 workgroup = NDS-UK
 realm = UK.NDS.COM
 server string = SCG NAS server
 security = ADS
 use kerberos keytab = true
 ;password server = ukdc2.uk.nds.com
 ;passdb backend = tdbsam
 encrypt passwords = true
  
 log file = /var/samba/log/log.%m
 max log size = 50
 load printers = No
 os level = 33
 domain master = No
 wins proxy = Yes
 wins server = 172.20.126.100, 172.18.253.100
 ldap ssl = no
  
 

 
 
 # winbind configuration:
  
 ;winbind separator = +
 winbind enum users = yes
 winbind enum groups = yes
 winbind nested groups = yes
 ;template homedir = /samba/pchome/%D/%U
 template shell = /usr/bin/bash
  
 idmap domains = NDS-UK
 idmap config NDS-UK:default = yes
 idmap config NDS-UK:backend = tdb
 idmap config NDS-UK:range = 1-2
  
 idmap alloc backend = tdb
 idmap alloc config:range = 1-2
  
 
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printable = Yes
 browseable = No
  
 [TSFiles]
 comment = MPEG-2 transport streams
 path = /zfs/internal/streams
 writeable = true
 ;user = @NDS-UK\\domain users
 vfs objects = zfsacl
 nfs4: mode = special
 ;inherit permissions = true
 ; root prexexec = /usr/bin/snapshot_date.sh 
 /zfs/internal/streams
  
 -- end smb.conf --
  
  
 -- nsswitch.conf --
 passwd: files winbind
 group:  files winbind
  
 # You must also set up the /etc/resolv.conf file for DNS name 
 # server lookup.  See resolv.conf(4).
 hosts:  files dns
  
 # Note that IPv4 addresses are searched for in all of the 
 ipnodes databases # before searching the hosts databases.
 ipnodes:   files dns
  
 networks:   files
 protocols:  files
 rpc:files
 ethers: files
 netmasks:   files
 bootparams: files
 publickey:  files
 # At present there isn't a 'files' backend for netgroup;  the 
 system will
 #   figure it out pretty quickly, and won't use netgroups at all.
 netgroup:   files
 automount:  files
 aliases:files
 services:   files
 printers:   user files
  
 auth_attr:  files
 prof_attr:  files
 project:files
  
 tnrhtp: files
 tnrhdb: files
 -- end nsswitch.conf --
 
 Regards,
 
 James 
*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United 

[Samba] Can't write to share.

2008-01-18 Thread Nord, James
HI all,
 
Having fixed the group issues from solaris having a default max of 16
groups I can now locally create and delete files on the solaris box as a
domain user
 
However when accessed via samba I can not create new files/folders
(although I can delete the files I created when logged on locally)
 
I have created a temporary directory on a non zfs (non acl enabled) file
system to see if that was causing issues with the same result.
 
I'm starting to pull my hair out on this and I'm sure its a simple
issue.
 
(Solaris 10 update 4, Samba 3.0.25c (bundled Sun package))
 
-bash-3.00# ls -lavd /tmp/bob/test
drwxrwsr-x   2 root NDS-UK\dept_stream_content 177 Jan 18 14:58
/tmp/bob/test/
 0:user::rwx
 1:group::rwx   #effective:rwx
 2:mask:rwx
 3:other:r-x

-bash-3.00# ls -lavd /zfs/internal/streams
drwxrwsr-x   2 root NDS-UK\dept_stream_content   3 Jan 18 14:38
/zfs/internal/streams/
 0:owner@::deny
 
1:owner@:list_directory/read_data/add_file/write_data/add_subdirectory
 /append_data/write_xattr/execute/write_attributes/write_acl
 /write_owner:allow
 2:group@::deny
 
3:group@:list_directory/read_data/add_file/write_data/add_subdirectory
 /append_data/execute:allow
 
4:everyone@:add_file/write_data/add_subdirectory/append_data/write_xattr
 /write_attributes/write_acl/write_owner:deny
 
5:everyone@:list_directory/read_data/read_xattr/execute/read_attributes
 /read_acl/synchronize:allow

[global]
workgroup = NDS-UK
realm = UK.NDS.COM
server string = SCG NAS server
security = ADS
use kerberos keytab = Yes
log file = /var/samba/log/log.%m
max log size = 50
load printers = No
os level = 33
domain master = No
wins proxy = Yes
wins server = 172.20.126.100, 172.18.253.100
ldap ssl = no
idmap domains = NDS-UK
idmap alloc backend = tdb
template shell = /usr/bin/bash
winbind enum users = Yes
winbind enum groups = Yes
winbind normalize names = Yes
idmap config NDS-UK:default = yes
idmap config NDS-UK:backend = tdb
idmap config NDS-UK:range = 1-2
idmap alloc config:range = 1-2
 
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
 
[TSFiles]
comment = MPEG-2 transport streams
path = /zfs/internal/streams
read only = No
inherit permissions = Yes
 
[Test]
comment = a test share
path = /tmp/bob/test/
read only = No
inherit permissions = Yes
map archive = No

*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**

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


Re: Re-2: [Samba] XP Home and samba

2008-01-18 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

More to the point, though, I'm not sure he ever mentioned needing to
join the domain, just being able to see the resources. Perhaps this is a
WINS thing? Maybe he should read the BROWSING document.

[EMAIL PROTECTED] wrote:
 xp home can join the domain just needs a bit of hacking
 
 read 
 
 http://www.ntcompatible.com/story8718.html
 
 regards
 
 
 
 -
 Damien Dye BSC(hon)
 IT and Telecommunications Engineer
 Mckenna Group
 Lawn Road Industrial Estate
 Lawn Road
 Carlton-in-Lindrick
 Worksop
 Nottinghamshire
 United Kingdom
 S81 9LB
 
 Email  : [EMAIL PROTECTED]
 Tel: (44) 01909541414
 Direct : (44) 01909541462
 Fax: (44) 01909541415
 Web: www.mckennagroup.co.uk
 
 Company Registered in England,
 Company Registration Number 1713320
 Registered address Lawn Road, Carlton-in-Lindrick, Worksop, Notts, S81 9LB
 
 
  Original Message 
 Subject: Re: [Samba] XP Home and samba (18-Jan-2008 7:50)
 From:[EMAIL PROTECTED]
 To:  [EMAIL PROTECTED]
 
 Le vendredi 18 janvier 2008, Yan Seiner a écrit :
 I built a small embedded samba server  based on Samba 3.0.26b.  I tested 
 it locally with XP Pro running in a vmware VM.

 All worked fine, so I shipped it.

 Turns out the person using it is running XP Home.  Here's her note:

 I have restarted the computer and waited ten minutes and still nothing.  
 All that comes up is the mshome under the Microsoft Windows Network.

 So it looks like all she's seeing in her network is her own mshome 
 workstation and not my samba server.

 Is there something particular about XP Home that I / she has to do to 
 get it to recognize another workgroup?

 Should I just talk her through changing her workgroup to mySambaWG?

 I've never had to deal with XP Home

 AFAIK, XP Home just cannot connect to an SMB domain...


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

 To: samba@lists.samba.org
 


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

iD8DBQFHkMREmb+gadEcsb4RAnHQAKCbJ2g2w9CxiCtWW2yYSQt697YaDgCgk4D9
j8TFz2eC5vMEPk2oGDcKeqk=
=NEvt
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Re: set_canon_ace_list: sys_acl_set_file type file failed for file

2008-01-18 Thread paul.bowen (eng/cad/Design)

Hi,

Does anyone have any ideas about trouble shooting the following error 
when trying to change folder permissions on a Samba Share

[2008/01/18 15:59:42, 2] smbd/posix_acls.c:set_canon_ace_list(2480)
 set_canon_ace_list: sys_acl_set_file type file failed for file

We are using  Version  3.0.24  on Solaris.  The share is on a NetApps 
filer which is nfs licensed.


Thanks,
Paul.

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


Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Dave Ewart
On Friday, 18.01.2008 at 15:23 +0100, Volker Lendecke wrote:

 On Fri, Jan 18, 2008 at 02:10:40PM +, Dave Ewart wrote:
   It's the Windows redirectory that might hold the file open longer
   than the app does it.
  
  What is Windows redirectory?
 
 Sorry, Windows Redirector. It is the system component in a Windows
 client operating system that redirects your drive d: to a SMB share
 that resides on a file server.

Ah, thanks.

   BTW, what is your server platform? With Linux and activated kernel
   oplock this should not happen.
  
  Server is Debian/Etch/amd64, but with a slightly newer-than-Etch
  kernel for hardware support: 2.6.22.
 
 Hmm. This *should* work fine if you have not explicitly disabled
 kernel oplocks in your smb.conf.
 
 You might still try oplocks = no. If you are not able to do this,
 then I can't help you any further.

Thanks for the info, Volker; much appreciated.

I will investigate our options...

Cheers,

Dave.

-- 
Dave Ewart
[EMAIL PROTECTED]
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016


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

Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Dave Ewart
On Friday, 18.01.2008 at 11:46 +0100, Volker Lendecke wrote:

 On Fri, Jan 18, 2008 at 10:07:00AM +, Dave Ewart wrote:
  At the same time as the '500 Internal Server Error' is sent to the
  browser, the following appears in the Apache logs:
  
  [error] (26)Text file busy: exec of
  /home/user/public_html/blah/blah.cgi failed
   
  Text file busy is the key.  If one runs 'smbstatus | grep
  epic_plasma' (in this case) and watches the locks shown for the file
  being edited, a lock is seen:
  
  28434 1165 DENY_WRITE 0x2019f RDWR EXCLUSIVE+BATCH
  /home/user/public_html/blah/blah.cgi [...]
 
 Try using oplocks = no. Be aware though that this has performance
 implications.

Hmmm, reading about the performance implications, I'm not sure that I'm
enthusiastic about trying it, really.

Can you explain what's actually going on in the above problem, please?
Is the Windows editor doing something wrong/unhelpful in generating the
lock?  Or is it simply taking advantage of behaviour which is allowed by
Samba?  Specifically, why does the lock take 10-15 seconds to go away?

Dave.
-- 
Dave Ewart
[EMAIL PROTECTED]
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016


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

Re-2: [Samba] XP Home and samba

2008-01-18 Thread damiend
xp home can join the domain just needs a bit of hacking

read

http://www.ntcompatible.com/story8718.html

regards



-
Damien Dye BSC(hon)
IT and Telecommunications Engineer
Mckenna Group
Lawn Road Industrial Estate
Lawn Road
Carlton-in-Lindrick
Worksop
Nottinghamshire
United Kingdom
S81 9LB

Email  : [EMAIL PROTECTED]
Tel: (44) 01909541414
Direct : (44) 01909541462
Fax: (44) 01909541415
Web: www.mckennagroup.co.uk

Company Registered in England,
Company Registration Number 1713320
Registered address Lawn Road, Carlton-in-Lindrick, Worksop, Notts, S81 9LB


 Original Message 
Subject: Re: [Samba] XP Home and samba (18-Jan-2008 7:50)
From:[EMAIL PROTECTED]
To:  [EMAIL PROTECTED]

 Le vendredi 18 janvier 2008, Yan Seiner a écrit :
  I built a small embedded samba server  based on Samba 3.0.26b.  I tested
  it locally with XP Pro running in a vmware VM.
 
  All worked fine, so I shipped it.
 
  Turns out the person using it is running XP Home.  Here's her note:
 
  I have restarted the computer and waited ten minutes and still nothing.
  All that comes up is the mshome under the Microsoft Windows Network.
 
  So it looks like all she's seeing in her network is her own mshome
  workstation and not my samba server.
 
  Is there something particular about XP Home that I / she has to do to
  get it to recognize another workgroup?
 
  Should I just talk her through changing her workgroup to mySambaWG?
 
  I've never had to deal with XP Home
 

 AFAIK, XP Home just cannot connect to an SMB domain...


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

 To: samba@lists.samba.org

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


[Samba] Re: set_canon_ace_list: sys_acl_set_file type file failed for file

2008-01-18 Thread paul.bowen (eng/cad/Design)

Hi,
Is there some setting in smb.conf for Samba Version  3.0.24 that when a 
user creates a directory it is owned by the users unix login id or PC 
account
and not by nobody.  When the owner is nobody it won't allow users to 
change the security setting on their folders but they can still create new
folders and files.  This happens regardless of if the nfs share is a 
Network Appliance Box or Linux box.


Should we go to a new version of Samba that allows users to be the 
owners of folders and files that they create
and not nobody, or are there special samba files that we should be 
looking at


Thanks,
Paul.


paul.bowen (eng/cad/Design) wrote:


Hi,

Does anyone have any ideas about trouble shooting the following error 
when trying to change folder permissions on a Samba Share

[2008/01/18 15:59:42, 2] smbd/posix_acls.c:set_canon_ace_list(2480)
 set_canon_ace_list: sys_acl_set_file type file failed for file

We are using  Version  3.0.24  on Solaris.  The share is on a NetApps 
filer which is nfs licensed.


Thanks,
Paul.





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


[Samba] ldapsam:editposix and winbind questions

2008-01-18 Thread stephane . purnelle
Hi,

I'm testing a other solution about managing my user and group in the ldap 
tree.

I try to switch from smbldap-tools and webmin interface TO 
ldapsam-editposix and winbind.
I used the howto available on samba wiki for that

Now,  I have some questions : 
- How make winbind to enum all users (newly users created with new config 
and users created with older system).
- Why samba not set attribute in ldap tree if password policies is set ( 
like sambaPwdMustChange, sambabadpasswordcount) when set password with net 
rpc.

Can anyone help me ?

thanks

Stéphane Purnelle

---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Now that MS has to play nice...

2008-01-18 Thread Douglas Phillipson
Being that you SAMBA developers had to work so hard to reverse engineer 
the AD protocols.  Will there soon be improvements and more full 
featured functionality in SAMBA now that you have access to more 
documentation?  Is anything on the order of a fully feature AD clone in 
the works.  Also, how do you dance around patented protocols?  Can you 
still implement them?  Do you have to avoid them?  So anything patented 
is taboo functionality, never to be seen in SAMBA.


Thanks for all your hard work over the years guys.  I hope it gets much 
easier now.


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


[Samba] user must logon to change password

2008-01-18 Thread Andrea Bencini

I installed samba-3.0.28 (PDC+tdbsam)
I turned ON the Samba Policy Control user must logon to change password by 
runing below pdbedit command:


# pdbedit -P user must logon to change password -C 2
account policy user must logon to change password description: Force Users 
to logon for password change (default: 0 == off, 2 == on)

account policy value for user must logon to change password was 0
account policy value for user must logon to change password is now 2

Then I change the password to pierluigim with smbpasswd command:
smbpasswd pierluigim

when login from XP prof  as pierluigim  .. why did not it ask me to change 
the password .. ?


Can you help me?

Thanks
Andrea 


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


Re: [Samba] Now that MS has to play nice...

2008-01-18 Thread Dominic Iadicicco
Samba4 I believe.

 Being that you SAMBA developers had to work so hard to reverse engineer
 the AD protocols.  Will there soon be improvements and more full
 featured functionality in SAMBA now that you have access to more
 documentation?  Is anything on the order of a fully feature AD clone in
 the works.  Also, how do you dance around patented protocols?  Can you
 still implement them?  Do you have to avoid them?  So anything patented
 is taboo functionality, never to be seen in SAMBA.

 Thanks for all your hard work over the years guys.  I hope it gets much
 easier now.

 Doug P
 --
 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] More then one wins server on a network.

2008-01-18 Thread Dominic Iadicicco
Well,

  I disabled broadcasting on both of my different domains, and I was under
the impression that you have to have Netbios over TCP/IP for Samba.  So
in order for one node to know where the other is I use wins.  Now each
domain controller has there own wins server because I don't allow one
cross domain communication.   Now do I still not need wins?  And if I
do, is have one on each domain, is that going to be a problem?

Dom

 If all your machines are on the same subnet you don't really need WINS.
 The problem becomes one of making sure that all the machines on
 different subnets that want to see each other in browse lists use the
 same WINS server.

 Dominic Iadicicco wrote:
 Can some explain to me why its bad to have more then one wins samba wins
 server on a subnet.  I have two different domains on one subnet and want
 to have each domain control be its own wins server.


 Thanks again.


 Dom




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


Re: [Samba] More then one wins server on a network.

2008-01-18 Thread Herb Lewis

If all your machines are on the same subnet you don't really need WINS.
The problem becomes one of making sure that all the machines on
different subnets that want to see each other in browse lists use the
same WINS server.

Dominic Iadicicco wrote:

Can some explain to me why its bad to have more then one wins samba wins
server on a subnet.  I have two different domains on one subnet and want
to have each domain control be its own wins server.


Thanks again.


Dom


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


Re: [Samba] Odd transfer speed issue

2008-01-18 Thread Jeremy Allison
On Fri, Jan 18, 2008 at 06:46:19PM -, Will Payne wrote:
 Hi all,
 
 I'm seeing slow transfers to/from my samba server. I just tried to copy a 
 270MB file from a samba share to an XP machine. At first, the estimated 
 time displayed as 141 minutes :(
 
 The odd thing is that if I then flood-ping from the server (in this case, I 
 pinged my dsl router), the transfer completes in about 10 seconds. Hitting 
 F5 repeatedly when browsing a share on the server also causes an increase 
 of speed. I seem to get *more* throughput when there's a higher load.. 
 Watching a video off a samba share is quite choppy and keeps stopping but 
 leaving the ping running seems to fix it.
 
 Any ideas? My google powers fail me..

Looks like an issue at the TCP level, or maybe a network device driver
issue on the Windows box. Try setting use sendfile = no to try and
change the TCP behaviour, or update the client network driver.

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


Re: [Samba] Re: Standalone Server with Wins -- Password Not Required on Win/XP

2008-01-18 Thread Dragan Krnic
On 1/18/08, Ryan Novosielski [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dragan Krnic wrote:
 | If I enter userid Only, I gain full access to the share without
 | Ever entering a password
 | This incorrect behavior is caused as a result of
 | preferred master = yes in the smb.conf file.
 | If I comment this line out in smb.conf, everything
 | works fine.
 |
 | What has preferred master to do with this passwords?
 | I'm really puzzled, especially because I set my PDC as
 | preferred master, even though it would probably by
 | default (auto) chose to be one.

 Virtually zero. All it does it make is slightly more likely that it will
 win a browsing election. If you read the smb.conf manpage, I think it is
 pretty clear, but it's been awhile since I read it.

 That COULD have an effect if it disables browsing to the proper password
 server, but it has no direct effect.

There might be something to it, if preferred master is masking the actual
authentification server. But still, was it really the case?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Odd transfer speed issue

2008-01-18 Thread John Drescher
On Jan 18, 2008 1:46 PM, Will Payne [EMAIL PROTECTED] wrote:

 Hi all,

 I'm seeing slow transfers to/from my samba server. I just tried to copy a
 270MB file from a samba share to an XP machine. At first, the estimated
 time
 displayed as 141 minutes :(


 The odd thing is that if I then flood-ping from the server (in this case,
 I
 pinged my dsl router), the transfer completes in about 10 seconds. Hitting
 F5 repeatedly when browsing a share on the server also causes an increase
 of
 speed. I seem to get *more* throughput when there's a higher load..
 Watching
 a video off a samba share is quite choppy and keeps stopping but leaving
 the
 ping running seems to fix it.


Microsoft's estimates are known to be completely off a lot of times. If you
do not make any load on the server how long does the transfer take?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Odd transfer speed issue

2008-01-18 Thread Will Payne

Hi all,

I'm seeing slow transfers to/from my samba server. I just tried to copy a 
270MB file from a samba share to an XP machine. At first, the estimated time 
displayed as 141 minutes :(


The odd thing is that if I then flood-ping from the server (in this case, I 
pinged my dsl router), the transfer completes in about 10 seconds. Hitting 
F5 repeatedly when browsing a share on the server also causes an increase of 
speed. I seem to get *more* throughput when there's a higher load.. Watching 
a video off a samba share is quite choppy and keeps stopping but leaving the 
ping running seems to fix it.


Any ideas? My google powers fail me..

W


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


Re: [Samba] Re: Standalone Server with Wins -- Password Not Required on Win/XP

2008-01-18 Thread Chris Smith
On Friday 18 January 2008, Dragan Krnic wrote:
 What has preferred master to do with this passwords?
 I'm really puzzled

I'm a bit puzzled also. Because we changed that early on (took out 
non-essential statements - I was assisting) to simplify the smb.conf 
and as far as I remember it didn't make a difference. There was a group 
of changes made when it started to work properly and we didn't, at that 
time, go back and try to tie down exactly which one(s) solved it.

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


Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Volker Lendecke
On Fri, Jan 18, 2008 at 02:10:40PM +, Dave Ewart wrote:
  It's the Windows redirectory that might hold the file open
  longer than the app does it.
 
 What is Windows redirectory?

Sorry, Windows Redirector. It is the system component in a
Windows client operating system that redirects your drive d:
to a SMB share that resides on a file server.

  BTW, what is your server platform? With Linux and activated
  kernel oplock this should not happen.
 
 Server is Debian/Etch/amd64, but with a slightly newer-than-Etch kernel
 for hardware support: 2.6.22.

Hmm. This *should* work fine if you have not explicitly
disabled kernel oplocks in your smb.conf.

You might still try oplocks = no. If you are not able to
do this, then I can't help you any further.

Sorry,

Volker


pgpatH7rrTIDq.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] More then one wins server on a network.

2008-01-18 Thread Dominic Iadicicco
Can some explain to me why its bad to have more then one wins samba wins
server on a subnet.  I have two different domains on one subnet and want
to have each domain control be its own wins server.


Thanks again.


Dom

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


Re: [Samba] Odd transfer speed issue

2008-01-18 Thread Will Payne

I'm seeing slow transfers to/from my samba server. I just tried to copy a
270MB file from a samba share to an XP machine. At first, the estimated
time displayed as 141 minutes :(


-snip-

Microsoft's estimates are known to be completely off a lot of times. If 
you

do not make any load on the server how long does the transfer take?


I don't know how long it'd *actually* take (life's too short to let it 
complete) but it's definately at least several minutes when it should just 
be a matter of seconds..


HTTP downloads from the machine, scp-ing files to/from, etc are fine.. it's 
just samba that seems to have this issue..


Perplexed,
Will 


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


Re: [Samba] Strange locking behaviour upsets Apache

2008-01-18 Thread Dave Ewart
On Friday, 18.01.2008 at 14:53 +0100, Volker Lendecke wrote:

 On Fri, Jan 18, 2008 at 01:14:30PM +, Dave Ewart wrote:
  Can you explain what's actually going on in the above problem, please?
  Is the Windows editor doing something wrong/unhelpful in generating the
  lock?  Or is it simply taking advantage of behaviour which is allowed by
  Samba?  Specifically, why does the lock take 10-15 seconds to go away?
 
 It's the Windows redirectory that might hold the file open
 longer than the app does it.

What is Windows redirectory?

 BTW, what is your server platform? With Linux and activated
 kernel oplock this should not happen.

Server is Debian/Etch/amd64, but with a slightly newer-than-Etch kernel
for hardware support: 2.6.22.

Dave.
-- 
Dave Ewart
[EMAIL PROTECTED]
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016


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

[Samba] wbinfo -g works whereas wbinfo -u fails

2008-01-18 Thread Shirish Pargaonkar
How do I figure out wys wbinfo -u generates error?
Some of the other wbinfo options work.


[EMAIL PROTECTED] ~]# wbinfo -g
Error looking up domain groups
[EMAIL PROTECTED] ~]# wbinfo -g
BUILTIN#System Operators
BUILTIN#Replicators
BUILTIN#Guests
BUILTIN#Power Users
BUILTIN#Print Operators
BUILTIN#Administrators
BUILTIN#Account Operators
BUILTIN#Backup Operators
BUILTIN#Users

[EMAIL PROTECTED] ~]# wbinfo -u
Error looking up domain users
[EMAIL PROTECTED] ~]#

Some of these commands work too.


[EMAIL PROTECTED] ~]#  wbinfo -m
CIFSTEST5
BUILTIN

[EMAIL PROTECTED] ~]#  wbinfo -D CIFSTESTDOM
Name  : CIFSTESTDOM
Alt_Name  : cifstestdom.a.i.com
SID   : S-1-5-21-2849063682-2007077719-983662776
Active Directory  : Yes
Native: No
Primary   : Yes
Sequence  : -1
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unexpected.tdb already open

2008-01-18 Thread Jancio Wodnik

Daniel Albers pisze:

Is there any way to suppress the message:

   tdb(unnamed): tdb_open_ex: /var/samba/locks/unexpected.tdb 
(110,101) is already open in this process


They are filling my nmbd.log and I have read that they should be ignored
(Jerry,Carter post, Sun Aug  7 16:43:26 GMT 2005)

We are running Samba 3.0.28 on FreeBSD 6.2.

From util_tdb.c, it looks like this message could be suppressed with a 
different
'level' value passed to util_tdb:tdb_log(...) ; my smb.conf has 
loglevel = 0.


Thanks for your help,

Daniel Albers
IT Director
KPFA FM 94.1
Yes, i can confirm: i have this messages in my messages log with 
centos4.6 and samba 3.0.28 from sernet - many entries on 5 linux boxes 
acts as samba server.


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


Re: [Samba] Re: Standalone Server with Wins -- Password Not Required on Win/XP

2008-01-18 Thread Ryan Novosielski

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dragan Krnic wrote:
| If I enter userid Only, I gain full access to the share without
| Ever entering a password
| This incorrect behavior is caused as a result of
| preferred master = yes in the smb.conf file.
| If I comment this line out in smb.conf, everything
| works fine.
|
| What has preferred master to do with this passwords?
| I'm really puzzled, especially because I set my PDC as
| preferred master, even though it would probably by
| default (auto) chose to be one.

Virtually zero. All it does it make is slightly more likely that it will
win a browsing election. If you read the smb.conf manpage, I think it is
pretty clear, but it's been awhile since I read it.

That COULD have an effect if it disables browsing to the proper password
server, but it has no direct effect.

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

iD8DBQFHkOTXmb+gadEcsb4RAlBzAJ9WUpsaZpn4DRXw6DUVcERHoPyRUwCbBfiY
Rka1YX3NiHevNbPMfBgj1KI=
=2pof
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: set_canon_ace_list: sys_acl_set_file type file failed for file

2008-01-18 Thread Jeremy Allison
On Fri, Jan 18, 2008 at 03:29:38PM +,  paul.bowen (eng/cad/Design) wrote:
 Hi,
 
 Does anyone have any ideas about trouble shooting the following error 
 when trying to change folder permissions on a Samba Share
 [2008/01/18 15:59:42, 2] smbd/posix_acls.c:set_canon_ace_list(2480)
  set_canon_ace_list: sys_acl_set_file type file failed for file
 
 We are using  Version  3.0.24  on Solaris.  The share is on a NetApps 
 filer which is nfs licensed.

NetApp doesn't support POSIX ACL setting.

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


Re: [Samba] wrong permissions on windows

2008-01-18 Thread Stefan Onken
Am Donnerstag, 17. Januar 2008 schrieb Ryan Novosielski:

 A time change by default in Windows requires a user to be in the
 Power Users group. There is a group with normal access BELOW
 that level (whose name escapes me) that users end up in unless
 something special is done.

thanks. With the right mapping the users are now able to change the 
time...


-- 
www.stonki.de:the more I see, the more I know...
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Partnership in SMS

2008-01-18 Thread [EMAIL PROTECTED]
Dear Sirs,
We are interested in establishing a relationship with your company, as SMS.TC 
is specialized in sending sms worldwide.
With more than 30 direct connections with carriers, SMS.TC can optimize every 
destination, resulting in exceptional prices.
We would like to know your requests in order to offer the best we can.

SMS.TC is also interested in evaluating serious SMS gateway to improve our 
overall quality.

You can contact us also on msn or skype.

Best regards
SMS.TC

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

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


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1502-ge8a0524

2008-01-18 Thread Michael Adam
The branch, v3-2-test has been updated
   via  e8a0524961d81fa83e0316905dc9d215e4aa7656 (commit)
   via  d7a8d7ffbd724a59aa3fc4bdeca6be5d5a0e7258 (commit)
  from  645f2376d40fabdc787902ac7506ad7234616619 (commit)

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


- Log -
commit e8a0524961d81fa83e0316905dc9d215e4aa7656
Author: Michael Adam [EMAIL PROTECTED]
Date:   Fri Jan 18 09:40:42 2008 +0100

Add a registry backend netlogon_params that replaces the former dynamic 
overlay.

This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael

commit d7a8d7ffbd724a59aa3fc4bdeca6be5d5a0e7258
Author: Michael Adam [EMAIL PROTECTED]
Date:   Fri Jan 18 08:15:27 2008 +0100

Fix typo in  debug message.

Michael

---

Summary of changes:
 source/Makefile.in|1 +
 source/include/reg_objects.h  |1 +
 source/registry/reg_api.c |2 +-
 source/registry/reg_backend_netlogon_params.c |   58 +
 source/registry/reg_dynamic.c |4 ++
 source/registry/reg_frontend.c|2 +
 6 files changed, 67 insertions(+), 1 deletions(-)
 create mode 100644 source/registry/reg_backend_netlogon_params.c


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 2276500..45aa4cb 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -417,6 +417,7 @@ REGISTRY_OBJ = registry/reg_frontend.o 
registry/reg_cachehook.o registry/reg_pri
registry/reg_util.o registry/reg_dynamic.o 
registry/reg_perfcount.o \
   registry/reg_smbconf.o registry/reg_api.o \
   registry/reg_frontend_hilvl.o \
+  registry/reg_backend_netlogon_params.o \
   $(UTIL_REG_API_OBJ) $(UTIL_REG_SMBCONF_OBJ)
 
 RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o 
librpc/gen_ndr/srv_lsa.o
diff --git a/source/include/reg_objects.h b/source/include/reg_objects.h
index 23a14e6..3b846db 100644
--- a/source/include/reg_objects.h
+++ b/source/include/reg_objects.h
@@ -100,6 +100,7 @@ typedef struct {
 #define KEY_EVENTLOG   
HKLM\\SYSTEM\\CurrentControlSet\\Services\\Eventlog
 #define KEY_SHARES 
HKLM\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Shares
 #define KEY_SMBCONFHKLM\\SOFTWARE\\Samba\\smbconf
+#define KEY_NETLOGON_PARAMS
HKLM\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters
 #define KEY_TREE_ROOT  
 
 /*
diff --git a/source/registry/reg_api.c b/source/registry/reg_api.c
index 18435ff..788af28 100644
--- a/source/registry/reg_api.c
+++ b/source/registry/reg_api.c
@@ -183,7 +183,7 @@ static WERROR regkey_open_onelevel(TALLOC_CTX *mem_ctx,
/* Look up the table of registry I/O operations */
 
if ( !(key-hook = reghook_cache_find( key-name )) ) {
-   DEBUG(0,(reg_open_onelevel: Failed to assigned a 
+   DEBUG(0,(reg_open_onelevel: Failed to assign a 
 REGISTRY_HOOK to [%s]\n, key-name ));
result = WERR_BADFILE;
goto done;
diff --git a/source/registry/reg_backend_netlogon_params.c 
b/source/registry/reg_backend_netlogon_params.c
new file mode 100644
index 000..b70e1bd
--- /dev/null
+++ b/source/registry/reg_backend_netlogon_params.c
@@ -0,0 +1,58 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  Virtual Windows Registry Layer
+ *  Copyright (C) Gerald Carter 2002-2005
+ *  Copyright (C) Michael Adam  2008
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see http://www.gnu.org/licenses/.
+ */
+
+/*
+ * Netlogon parameters registry backend.
+ *
+ * This replaces the former dynamic netlogon parameters overlay.
+ */
+
+#include includes.h
+
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_REGISTRY
+
+
+static int netlogon_params_fetch_reg_values(const char *key,
+   REGVAL_CTR *regvals)
+{
+   uint32 dwValue;
+   
+   if ( !pdb_get_account_policy(AP_REFUSE_MACHINE_PW_CHANGE, dwValue) )
+   dwValue = 0;
+   
+   regval_ctr_addvalue( regvals, RefusePasswordChange, REG_DWORD,
+   

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1504-gf3901f1

2008-01-18 Thread Michael Adam
The branch, v3-2-test has been updated
   via  f3901f179b770ffadb3e5a82ac5a2da00d83f40a (commit)
  from  3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52 (commit)

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


- Log -
commit f3901f179b770ffadb3e5a82ac5a2da00d83f40a
Author: Michael Adam [EMAIL PROTECTED]
Date:   Fri Jan 18 12:07:02 2008 +0100

Use C99 structure initializers for netlogon_params_reg_ops.

Michael

---

Summary of changes:
 source/registry/reg_backend_netlogon_params.c |   10 +-
 1 files changed, 1 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/registry/reg_backend_netlogon_params.c 
b/source/registry/reg_backend_netlogon_params.c
index b70e1bd..507d2c5 100644
--- a/source/registry/reg_backend_netlogon_params.c
+++ b/source/registry/reg_backend_netlogon_params.c
@@ -46,13 +46,5 @@ static int netlogon_params_fetch_reg_values(const char *key,
 
 
 REGISTRY_OPS netlogon_params_reg_ops = {
-   NULL,
-   netlogon_params_fetch_reg_values,
-   NULL,
-   NULL,
-   NULL,
-   NULL,
-   NULL,
-   NULL,
-   NULL
+   .fetch_values = netlogon_params_fetch_reg_values,
 };


-- 
Samba Shared Repository


svn commit: samba-docs r1230 - in trunk/manpages-3: .

2008-01-18 Thread obnox
Author: obnox
Date: 2008-01-18 11:08:18 + (Fri, 18 Jan 2008)
New Revision: 1230

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

Log:
Fix output of backslashes in SMBCONF registry key.

Michael


Modified:
   trunk/manpages-3/smb.conf.5.xml


Changeset:
Modified: trunk/manpages-3/smb.conf.5.xml
===
--- trunk/manpages-3/smb.conf.5.xml 2008-01-18 10:59:31 UTC (rev 1229)
+++ trunk/manpages-3/smb.conf.5.xml 2008-01-18 11:08:18 UTC (rev 1230)
@@ -764,7 +764,7 @@
The registry configuration can be accessed with
tools like emphasisregedit/emphasis or emphasisnet rpc
registry/emphasis in the key
-
emphasisliteralHKLM\Software\Samba\smbconf/literal/emphasis.
+emphasisHKLM\Software\Samba\smbconf/emphasis.
 
More conveniently, the emphasisconf/emphasis subcommand of 
the
 citerefentryrefentrytitlenet/refentrytitle



svn commit: samba-docs r1229 - in trunk/smbdotconf/misc: .

2008-01-18 Thread obnox
Author: obnox
Date: 2008-01-18 10:59:31 + (Fri, 18 Jan 2008)
New Revision: 1229

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

Log:
Add more content to the description of registry shares.

And reverse the order of example/default value.

Michael


Modified:
   trunk/smbdotconf/misc/registryshares.xml


Changeset:
Modified: trunk/smbdotconf/misc/registryshares.xml
===
--- trunk/smbdotconf/misc/registryshares.xml2008-01-18 10:32:07 UTC (rev 
1228)
+++ trunk/smbdotconf/misc/registryshares.xml2008-01-18 10:59:31 UTC (rev 
1229)
@@ -11,7 +11,14 @@
registry. See the section on registry-based configuration
for details. 
/para
+
+   para
+   Note that this parameter defaults to emphasisno/emphasis,
+   but it is set to emphasisyes/emphasis when
+parameterconfig bakend/parameter is set
+   to emphasisregistry/emphasis.
+   /para
 /description
+value type=defaultno/value
 value type=exampleyes/value
-value type=defaultno/value
 /samba:parameter



svn commit: samba-docs r1226 - in trunk: manpages-3 smbdotconf/misc

2008-01-18 Thread kseeger
Author: kseeger
Date: 2008-01-18 10:19:31 + (Fri, 18 Jan 2008)
New Revision: 1226

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

Log:
-fix some typos
-add missing whitespaces
-fix example for 'registry shares'

still missing: Description of 'config backend'

Karolin
Modified:
   trunk/manpages-3/smb.conf.5.xml
   trunk/smbdotconf/misc/registryshares.xml


Changeset:
Modified: trunk/manpages-3/smb.conf.5.xml
===
--- trunk/manpages-3/smb.conf.5.xml 2008-01-16 17:26:57 UTC (rev 1225)
+++ trunk/manpages-3/smb.conf.5.xml 2008-01-18 10:19:31 UTC (rev 1226)
@@ -717,14 +717,14 @@
para
Starting with Samba version 3.2.0, the capability to
store Samba configuration in the registry is available.
-   There are two levels of registry configuration.
+   There are two levels of registry configuration:
/para
 
orderedlist continuation=restarts inheritnum=ignore 
numeration=arabic
listitemparaShare definitions stored in registry are used.
-   This is triggered by setting the global parameter
-   parameterregistry shares/parameter to
-   quoteyes/quote in emphasissmb.conf/emphasis.
+   This is triggered by setting the global 
+   parameter parameterregistry shares/parameter to 
quoteyes/quote 
+   in emphasissmb.conf/emphasis.
/para
 
paraNote: Shares defined in emphasissmb.conf/emphasis
@@ -733,15 +733,14 @@
/para/listitem
 
listitemparaGlobal emphasissmb.conf/emphasis options 
stored in
-   registry are used. This
-   is triggered by a new parameter
-   smbconfoption name=config backendregistry/smbconfoption in
+   registry are used. This is triggered by the 
+   parameter smbconfoption name=config 
backendregistry/smbconfoption in
the [global] section of emphasissmb.conf/emphasis.
-   This this removes everything that has been red from config files
-   to this poing and reads the content of the global configuration
-   section from the regsitry
+   This removes everything that has been read from config files
+   to this point and reads the content of the global configuration
+   section from the registry.
Activation of global registry options automatically
-   activates registry shares. In this case, no share definition
+   activates registry shares. In this case, no share definitions
from smb.conf are read: This is a registry only configuration
with the advantage that share definitions are not read
in a bulk at startup time but on demand when a share is
@@ -750,13 +749,13 @@
/orderedlist
 
para
-   Caveat: To make registry-based configurations foolprof at least 
to a
-   certain extent, the use of
-   parameterlock directory/parameter,
-   parameterconfig backend/parameter,
-   and parameterinclude/parameter inside the registry
+   Caveat: To make registry-based configurations foolproof at 
least to a
+   certain extent, the use 
+   of parameterlock directory/parameter, 
+parameterconfig backend/parameter, and
+parameterinclude/parameter inside the registry
configuration has been disabled. Especially, by changing the
-   parameterlock directory/parameter inside the registry
+parameterlock directory/parameter inside the registry
configuration, one would create a broken setup where the daemons
do not see the configuration they loaded once it is active.
/para
@@ -765,10 +764,10 @@
The registry configuration can be accessed with
tools like emphasisregedit/emphasis or emphasisnet rpc
registry/emphasis in the key
-   
emphasisliteralHKLM\Software\Samba\smbconf/literal/emphasis.
+
emphasisliteralHKLM\Software\Samba\smbconf/literal/emphasis.
 
More conveniently, the emphasisconf/emphasis subcommand of 
the
-   citerefentryrefentrytitlenet/refentrytitle
+citerefentryrefentrytitlenet/refentrytitle
manvolnum8/manvolnum/citerefentry utility
offers a dedicated interface to read and write the
registry based configuration locally, i.e. directly

Modified: trunk/smbdotconf/misc/registryshares.xml
===
--- trunk/smbdotconf/misc/registryshares.xml2008-01-16 17:26:57 UTC (rev 
1225)
+++ 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1503-g3fa0cf3

2008-01-18 Thread Volker Lendecke
The branch, v3-2-test has been updated
   via  3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52 (commit)
  from  e8a0524961d81fa83e0316905dc9d215e4aa7656 (commit)

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


- Log -
commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Fri Jan 18 11:08:17 2008 +0100

Add the allinfo command to smbclient

Modeled after the Samba4 allinfo command

---

Summary of changes:
 source/client/client.c |   88 
 source/include/smb.h   |   10 
 source/libsmb/clirap.c |  131 
 3 files changed, 229 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/client.c b/source/client/client.c
index 267c130..59ca2e0 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -1528,6 +1528,92 @@ static int cmd_altname(void)
 }
 
 /
+ Show all info we can get
+/
+
+static int do_allinfo(const char *name)
+{
+   fstring altname;
+   struct timespec b_time, a_time, m_time, c_time;
+   SMB_OFF_T size;
+   uint16_t mode;
+   SMB_INO_T ino;
+   NTTIME tmp;
+   unsigned int num_streams;
+   struct stream_struct *streams;
+   unsigned int i;
+
+   if (!NT_STATUS_IS_OK(cli_qpathinfo_alt_name(cli, name, altname))) {
+   d_printf(%s getting alt name for %s\n,
+cli_errstr(cli),name);
+   return false;
+   }
+   d_printf(altname: %s\n, altname);
+
+   if (!cli_qpathinfo2(cli, name, b_time, a_time, m_time, c_time,
+   size, mode, ino)) {
+   d_printf(%s getting pathinfo for %s\n,
+cli_errstr(cli),name);
+   return false;
+   }
+
+   unix_timespec_to_nt_time(tmp, b_time);
+   d_printf(create_time:%s\n, nt_time_string(talloc_tos(), tmp));
+
+   unix_timespec_to_nt_time(tmp, a_time);
+   d_printf(access_time:%s\n, nt_time_string(talloc_tos(), tmp));
+
+   unix_timespec_to_nt_time(tmp, m_time);
+   d_printf(write_time: %s\n, nt_time_string(talloc_tos(), tmp));
+
+   unix_timespec_to_nt_time(tmp, c_time);
+   d_printf(change_time:%s\n, nt_time_string(talloc_tos(), tmp));
+
+   if (!cli_qpathinfo_streams(cli, name, talloc_tos(), num_streams,
+  streams)) {
+   d_printf(%s getting streams for %s\n,
+cli_errstr(cli),name);
+   return false;
+   }
+
+   for (i=0; inum_streams; i++) {
+   d_printf(stream: [%s], %lld bytes\n, streams[i].name,
+(unsigned long long)streams[i].size);
+   }
+
+   return 0;
+}
+
+/
+ Show all info we can get
+/
+
+static int cmd_allinfo(void)
+{
+   TALLOC_CTX *ctx = talloc_tos();
+   char *name;
+   char *buf;
+
+   name = talloc_strdup(ctx, client_get_cur_dir());
+   if (!name) {
+   return 1;
+   }
+
+   if (!next_token_talloc(ctx, cmd_ptr, buf, NULL)) {
+   d_printf(altname file\n);
+   return 1;
+   }
+   name = talloc_asprintf_append(name, buf);
+   if (!name) {
+   return 1;
+   }
+
+   do_allinfo(name);
+
+   return 0;
+}
+
+/
  Put a single file.
 /
 
@@ -3839,6 +3925,8 @@ static struct {
char compl_args[2];  /* Completion argument info */
 } commands[] = {
   {?,cmd_help,[command] give help on a command,{COMPL_NONE,COMPL_NONE}},
+  {allinfo,cmd_allinfo,file show all available info,
+   {COMPL_NONE,COMPL_NONE}},
   {altname,cmd_altname,file show alt name,{COMPL_NONE,COMPL_NONE}},
   {archive,cmd_archive,level\n0=ignore archive bit\n1=only get archive 
files\n2=only get archive files and reset archive bit\n3=get all files and 
reset archive bit,{COMPL_NONE,COMPL_NONE}},
   {blocksize,cmd_block,blocksize number (default 
20),{COMPL_NONE,COMPL_NONE}},
diff --git a/source/include/smb.h b/source/include/smb.h
index d64b8ba..15e51db 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -574,6 +574,16 @@ struct trans_state {
char *data;
 };
 
+/*
+ * Info about an alternate data stream
+ */
+
+struct stream_struct {
+   SMB_OFF_T size;
+   SMB_OFF_T alloc_size;
+   char *name;
+};
+
 /* Include VFS stuff */
 
 

[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1515-g3a1bcbf

2008-01-18 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  3a1bcbfa7ca2b55265eb486e2b7c740e04775698 (commit)
  from  843e1694cfe4a999ed14a9c215b8e77723d0fe79 (commit)

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


- Log -
commit 3a1bcbfa7ca2b55265eb486e2b7c740e04775698
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Fri Jan 18 13:47:10 2008 -0800

Fix error message for new allinfo command.
Jeremy.

---

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


Changeset truncated at 500 lines:

diff --git a/source/client/client.c b/source/client/client.c
index 59ca2e0..28b4a2b 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -1600,7 +1600,7 @@ static int cmd_allinfo(void)
}
 
if (!next_token_talloc(ctx, cmd_ptr, buf, NULL)) {
-   d_printf(altname file\n);
+   d_printf(allinfo file\n);
return 1;
}
name = talloc_asprintf_append(name, buf);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1518-g63defd3

2008-01-18 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  63defd3e9d4ba3f02f36ec5ad7b73463f31962a1 (commit)
  from  e96cf1309e45628f4c27d03f77a4eef5e00602df (commit)

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


- Log -
commit 63defd3e9d4ba3f02f36ec5ad7b73463f31962a1
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Fri Jan 18 18:39:27 2008 -0800

Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.

---

Summary of changes:
 source/smbd/trans2.c |   20 
 1 files changed, 12 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 763b648..935a881 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -3743,12 +3743,6 @@ static void call_trans2qfilepathinfo(connection_struct 
*conn,
}
}
 
-   nlink = sbuf.st_nlink;
-
-   if ((nlink  0)  delete_pending) {
-   nlink -= 1;
-   }
-
if (INFO_LEVEL_IS_UNIX(info_level)  !lp_unix_extensions()) {
reply_nterror(req, NT_STATUS_INVALID_LEVEL);
return;
@@ -3767,6 +3761,16 @@ static void call_trans2qfilepathinfo(connection_struct 
*conn,
if (!mode)
mode = FILE_ATTRIBUTE_NORMAL;
 
+   nlink = sbuf.st_nlink;
+
+   if (nlink  (modeaDIR)) {
+   nlink = 1;
+   }
+
+   if ((nlink  0)  delete_pending) {
+   nlink -= 1;
+   }
+
fullpathname = fname;
if (!(mode  aDIR))
file_size = get_file_size(sbuf);
@@ -4013,7 +4017,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
data_size = 24;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,(modeaDIR)?1:nlink);
+   SIVAL(pdata,16,nlink);
SCVAL(pdata,20,delete_pending?1:0);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0); /* Padding. */
@@ -4091,7 +4095,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
pdata += 40;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,(modeaDIR)?1:nlink);
+   SIVAL(pdata,16,nlink);
SCVAL(pdata,20,delete_pending);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0);


-- 
Samba Shared Repository


Build status as of Sat Jan 19 00:00:02 2008

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

--- /home/build/master/cache/broken_results.txt.old 2008-01-18 
00:01:03.0 +
+++ /home/build/master/cache/broken_results.txt 2008-01-19 00:01:00.0 
+
@@ -1,4 +1,4 @@
-Build status as of Fri Jan 18 00:00:02 2008
+Build status as of Sat Jan 19 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -15,7 +15,7 @@
 samba-docs   0  0  0 
 samba-gtk4  4  0 
 samba4   0  0  0 
-samba_3_2_test 30 20 0 
+samba_3_2_test 30 19 0 
 samba_4_0_test 28 25 2 
 smb-build28 3  0 
 talloc   30 10 0 


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28-95-gf073f8b

2008-01-18 Thread Jeremy Allison
The branch, v3-0-test has been updated
   via  f073f8bb8249274adeae9f43af1dbb49dcf6e755 (commit)
  from  0cbc43562e358e30ba5d431ca54c42bb2d09dc44 (commit)

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


- Log -
commit f073f8bb8249274adeae9f43af1dbb49dcf6e755
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Fri Jan 18 17:57:31 2008 -0800

Back port vl's fix for nlink counts.
Jeremy.

---

Summary of changes:
 source/smbd/trans2.c |9 ++---
 1 files changed, 2 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 0d9dac3..5464ef2 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -3301,11 +3301,6 @@ static int call_trans2qfilepathinfo(connection_struct 
*conn, char *inbuf, char *
 
nlink = sbuf.st_nlink;
 
-   if ((nlink  0)  S_ISDIR(sbuf.st_mode)) {
-   /* NTFS does not seem to count .. */
-   nlink -= 1;
-   }
-
if ((nlink  0)  delete_pending) {
nlink -= 1;
}
@@ -3565,7 +3560,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
data_size = 24;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,nlink);
+   SIVAL(pdata,16,(modeaDIR)?1:nlink);
SCVAL(pdata,20,delete_pending?1:0);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0); /* Padding. */
@@ -3637,7 +3632,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
pdata += 40;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,nlink);
+   SIVAL(pdata,16,(modeaDIR)?1:nlink);
SCVAL(pdata,20,delete_pending);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1517-ge96cf13

2008-01-18 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  e96cf1309e45628f4c27d03f77a4eef5e00602df (commit)
  from  ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85 (commit)

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


- Log -
commit e96cf1309e45628f4c27d03f77a4eef5e00602df
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Thu Jan 17 17:48:33 2008 +0100

Always return nlink=1 for directories

I did not test it, but it should not affect cifsfs, there are special posix
calls that also return the stat information unfiltered.

---

Summary of changes:
 source/smbd/trans2.c |9 ++---
 1 files changed, 2 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 23d6f12..763b648 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -3745,11 +3745,6 @@ static void call_trans2qfilepathinfo(connection_struct 
*conn,
 
nlink = sbuf.st_nlink;
 
-   if ((nlink  0)  S_ISDIR(sbuf.st_mode)) {
-   /* NTFS does not seem to count .. */
-   nlink -= 1;
-   }
-
if ((nlink  0)  delete_pending) {
nlink -= 1;
}
@@ -4018,7 +4013,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
data_size = 24;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,nlink);
+   SIVAL(pdata,16,(modeaDIR)?1:nlink);
SCVAL(pdata,20,delete_pending?1:0);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0); /* Padding. */
@@ -4096,7 +4091,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
pdata += 40;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,nlink);
+   SIVAL(pdata,16,(modeaDIR)?1:nlink);
SCVAL(pdata,20,delete_pending);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1514-g843e169

2008-01-18 Thread Derrell Lipman
The branch, v3-2-test has been updated
   via  843e1694cfe4a999ed14a9c215b8e77723d0fe79 (commit)
  from  b8a57a24c390355c4950ca499c1d96aff80abad7 (commit)

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


- Log -
commit 843e1694cfe4a999ed14a9c215b8e77723d0fe79
Author: Derrell Lipman [EMAIL PROTECTED]
Date:   Fri Jan 18 14:22:49 2008 -0500

Fix typo that disabled setting group id.  Thanks, Henrik.

---

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


Changeset truncated at 500 lines:

diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c
index 2fd8294..fbcb7f6 100644
--- a/source/libsmb/libsmbclient.c
+++ b/source/libsmb/libsmbclient.c
@@ -5931,7 +5931,7 @@ smbc_setxattr_ctx(SMBCCTX *context,
 } else {
 ret = cacl_set(talloc_tos(), srv-cli,
ipc_srv-cli, ipc_srv-pol, path,
-   namevalue, SMBC_XATTR_MODE_CHOWN, 0);
+   namevalue, SMBC_XATTR_MODE_CHGRP, 0);
 }
TALLOC_FREE(frame);
 return ret;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28-96-g83ac455

2008-01-18 Thread Jeremy Allison
The branch, v3-0-test has been updated
   via  83ac4555a07a2c64a2cb94801e4cf56a602b43d4 (commit)
  from  f073f8bb8249274adeae9f43af1dbb49dcf6e755 (commit)

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


- Log -
commit 83ac4555a07a2c64a2cb94801e4cf56a602b43d4
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Fri Jan 18 18:39:29 2008 -0800

Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.

---

Summary of changes:
 source/smbd/trans2.c |   20 
 1 files changed, 12 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 5464ef2..3e1ba8a 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -3299,12 +3299,6 @@ static int call_trans2qfilepathinfo(connection_struct 
*conn, char *inbuf, char *
}
}
 
-   nlink = sbuf.st_nlink;
-
-   if ((nlink  0)  delete_pending) {
-   nlink -= 1;
-   }
-
if (INFO_LEVEL_IS_UNIX(info_level)  !lp_unix_extensions()) {
return ERROR_NT(NT_STATUS_INVALID_LEVEL);
}
@@ -3322,6 +3316,16 @@ static int call_trans2qfilepathinfo(connection_struct 
*conn, char *inbuf, char *
if (!mode)
mode = FILE_ATTRIBUTE_NORMAL;
 
+   nlink = sbuf.st_nlink;
+
+   if (nlink  (modeaDIR)) {
+   nlink = 1;
+   }
+
+   if ((nlink  0)  delete_pending) {
+   nlink -= 1;
+   }
+
fullpathname = fname;
if (!(mode  aDIR))
file_size = get_file_size(sbuf);
@@ -3560,7 +3564,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
data_size = 24;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,(modeaDIR)?1:nlink);
+   SIVAL(pdata,16,nlink);
SCVAL(pdata,20,delete_pending?1:0);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0); /* Padding. */
@@ -3632,7 +3636,7 @@ total_data=%u (should be %u)\n, (unsigned 
int)total_data, (unsigned int)IVAL(pd
pdata += 40;
SOFF_T(pdata,0,allocation_size);
SOFF_T(pdata,8,file_size);
-   SIVAL(pdata,16,(modeaDIR)?1:nlink);
+   SIVAL(pdata,16,nlink);
SCVAL(pdata,20,delete_pending);
SCVAL(pdata,21,(modeaDIR)?1:0);
SSVAL(pdata,22,0);


-- 
Samba Shared Repository


Rev 691: update for release in http://samba.org/~tridge/3_0-ctdb

2008-01-18 Thread tridge

revno: 691
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell [EMAIL PROTECTED]
branch nick: s3-ctdb-tridge
timestamp: Sat 2008-01-19 07:25:03 +1100
message:
  update for release
modified:
  packaging/RHEL4-CTDB/samba.spec samba.spec-20070530192107-og9sp62ho5xuaaer-4
=== modified file 'packaging/RHEL4-CTDB/samba.spec'
--- a/packaging/RHEL4-CTDB/samba.spec   2008-01-08 21:53:29 +
+++ b/packaging/RHEL4-CTDB/samba.spec   2008-01-18 20:25:03 +
@@ -6,7 +6,7 @@
 Packager: Samba Team [EMAIL PROTECTED]
 Name: samba
 Version:  3.0.25
-Release:  ctdb.14
+Release:  ctdb.15
 Epoch:0
 License: GNU GPL version 2
 Group: System Environment/Daemons
@@ -529,6 +529,9 @@
 %endif
 
 %changelog
+* Sat Jan 19 2008 : Version 3.0.25-ctdb.15
+ - fixed memory leak in dmapi code
+ - updated to latest tdb
 * Wed Jan 09 2008 : Version 3.0.25-ctdb.14
  - updated to new tdb from ctdb
 * Thu Nov 29 2007 : Version 3.0.25-ctdb.13



[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-500-ged1e58e

2008-01-18 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  ed1e58e8b35bc971451f4e0a357daa903cd7820d (commit)
  from  c2f2e01357c1b087aa1261fb2cac8687426d5a78 (commit)

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


- Log -
commit ed1e58e8b35bc971451f4e0a357daa903cd7820d
Author: Julien Kerihuel [EMAIL PROTECTED]
Date:   Fri Jan 18 18:30:00 2008 +0100

pidl: Add --version argument.

---

Summary of changes:
 source/pidl/lib/Parse/Pidl.pm |2 +-
 source/pidl/pidl  |   25 +++--
 2 files changed, 24 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/pidl/lib/Parse/Pidl.pm b/source/pidl/lib/Parse/Pidl.pm
index 0c6e0e5..c2c9463 100644
--- a/source/pidl/lib/Parse/Pidl.pm
+++ b/source/pidl/lib/Parse/Pidl.pm
@@ -9,7 +9,7 @@ package Parse::Pidl;
 
 require Exporter;
 @ISA = qw(Exporter);
[EMAIL PROTECTED] = qw(warning error fatal);
[EMAIL PROTECTED] = qw(warning error fatal $VERSION);
 
 use strict;
 
diff --git a/source/pidl/pidl b/source/pidl/pidl
index 4dfd57d..220d62c 100755
--- a/source/pidl/pidl
+++ b/source/pidl/pidl
@@ -52,6 +52,10 @@ both marshalling/unmarshalling and debugging purposes).
 =item I--help
 
 Show list of available options.
+
+=item I--version
+
+Show pidl version

 =item I--outputdir OUTNAME
 
@@ -403,7 +407,7 @@ use lib $RealBin;
 use lib $RealBin/lib;
 use Getopt::Long;
 use File::Basename;
-use Parse::Pidl;
+use Parse::Pidl qw ( $VERSION );
 use Parse::Pidl::Util;
 
 #
@@ -453,6 +457,7 @@ sub FileSave($$)
 
 my(@opt_incdirs) = (); 
 my($opt_help) = 0;
+my($opt_version) = 0;
 my($opt_parse_idl_tree) = 0;
 my($opt_dump_idl_tree);
 my($opt_dump_ndr_tree);
@@ -483,7 +488,9 @@ my($opt_warn_compat) = 0;
 # display help text
 sub ShowHelp()
 {
-print perl IDL parser and code generator
+print perl IDL parser and code generator\n;
+ShowVersion();
+print
 Copyright (C) Andrew Tridgell [EMAIL PROTECTED]
 Copyright (C) Jelmer Vernooij [EMAIL PROTECTED]
 
@@ -491,6 +498,7 @@ Usage: $Script [options] [--] idlfile [idlfile...]
 
 Generic Options:
  --help  this help page
+ --version   show pidl version
  --outputdir=OUTDIR  put output in OUTDIR/ [.]
  --warn-compat   warn about incompatibility with other compilers
  --quiet be quiet
@@ -528,9 +536,17 @@ Wireshark parsers:
 exit(0);
 }
 
+#
+# Display version
+sub ShowVersion()
+{
+print perl IDL version $VERSION\n;
+}
+
 # main program
 my $result = GetOptions (
'help|h|?' = \$opt_help, 
+'version' = \$opt_version,
'outputdir=s' = \$opt_outputdir,
'dump-idl' = \$opt_dump_idl,
'dump-idl-tree:s' = \$opt_dump_idl_tree,
@@ -565,6 +581,11 @@ if ($opt_help) {
 exit(0);
 }
 
+if ($opt_version) {
+ShowVersion();
+exit(0);
+}
+
 sub process_file($)
 {
my $idl_file = shift;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1516-gab0ee6e

2008-01-18 Thread Kai Blin
The branch, v3-2-test has been updated
   via  ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85 (commit)
  from  3a1bcbfa7ca2b55265eb486e2b7c740e04775698 (commit)

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


- Log -
commit ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85
Author: Kai Blin [EMAIL PROTECTED]
Date:   Sat Jan 19 02:12:35 2008 +0100

util_str: Don't return memory from talloc_tos(), use mem_ctx instead.

---

Summary of changes:
 source/lib/afs.c  |   23 +--
 source/lib/util_str.c |6 +++---
 source/rpc_server/srv_samr_util.c |   12 ++--
 source/utils/net_rpc_samsync.c|6 +++---
 source/utils/ntlm_auth.c  |   25 +++--
 5 files changed, 40 insertions(+), 32 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/afs.c b/source/lib/afs.c
index a7d6f6c..b3d590b 100644
--- a/source/lib/afs.c
+++ b/source/lib/afs.c
@@ -42,20 +42,23 @@ static char *afs_encode_token(const char *cell, const 
DATA_BLOB ticket,
  const struct ClearToken *ct)
 {
char *base64_ticket;
-   char *result;
+   char *result = NULL;
 
DATA_BLOB key = data_blob(ct-HandShakeKey, 8);
char *base64_key;
+   TALLOC_CTX *mem_ctx;
+
+   mem_ctx = talloc_init(afs_encode_token);
+   if (mem_ctx == NULL)
+   goto done;
 
-   base64_ticket = base64_encode_data_blob(ticket);
+   base64_ticket = base64_encode_data_blob(mem_ctx, ticket);
if (base64_ticket == NULL)
-   return NULL;
+   goto done;
 
-   base64_key = base64_encode_data_blob(key);
-   if (base64_key == NULL) {
-   TALLOC_FREE(base64_ticket);
-   return NULL;
-   }
+   base64_key = base64_encode_data_blob(mem_ctx, key);
+   if (base64_key == NULL)
+   goto done;
 
asprintf(result, %s\n%u\n%s\n%u\n%u\n%u\n%s\n, cell,
 ct-AuthHandle, base64_key, ct-ViceId, ct-BeginTimestamp,
@@ -63,8 +66,8 @@ static char *afs_encode_token(const char *cell, const 
DATA_BLOB ticket,
 
DEBUG(10, (Got ticket string:\n%s\n, result));
 
-   TALLOC_FREE(base64_ticket);
-   TALLOC_FREE(base64_key);
+done:
+   TALLOC_FREE(mem_ctx);
 
return result;
 }
diff --git a/source/lib/util_str.c b/source/lib/util_str.c
index 3e32681..bcb9197 100644
--- a/source/lib/util_str.c
+++ b/source/lib/util_str.c
@@ -2415,13 +2415,13 @@ void base64_decode_inplace(char *s)
 }
 
 /**
- * Encode a base64 string into a malloc()ed string caller to free.
+ * Encode a base64 string into a talloc()ed string caller to free.
  *
  * From SQUID: adopted from http://ftp.sunet.se/pub2/gnu/vm/base64-encode.c
  * with adjustments
  **/
 
-char *base64_encode_data_blob(DATA_BLOB data)
+char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data)
 {
int bits = 0;
int char_count = 0;
@@ -2434,7 +2434,7 @@ char *base64_encode_data_blob(DATA_BLOB data)
out_cnt = 0;
len = data.length;
output_len = data.length * 2;
-   result = TALLOC_ARRAY(talloc_tos(), char, output_len); /* get us plenty 
of space */
+   result = TALLOC_ARRAY(mem_ctx, char, output_len); /* get us plenty of 
space */
SMB_ASSERT(result != NULL);
 
while (len--  out_cnt  (data.length * 2) - 5) {
diff --git a/source/rpc_server/srv_samr_util.c 
b/source/rpc_server/srv_samr_util.c
index bde7936..c8f7321 100644
--- a/source/rpc_server/srv_samr_util.c
+++ b/source/rpc_server/srv_samr_util.c
@@ -44,16 +44,16 @@ void copy_id20_to_sam_passwd(struct samu *to, 
SAM_USER_INFO_20 *from)
char *new_string;
DATA_BLOB mung;
 
-   if (from == NULL || to == NULL) 
+   if (from == NULL || to == NULL)
return;
-   
+
if (from-hdr_munged_dial.buffer) {
old_string = pdb_get_munged_dial(to);
mung.length = from-hdr_munged_dial.uni_str_len;
mung.data = (uint8 *) from-uni_munged_dial.buffer;
mung.free = NULL;
new_string = (mung.length == 0) ?
-   NULL : base64_encode_data_blob(mung);
+   NULL : base64_encode_data_blob(talloc_tos(), mung);
DEBUG(10,(INFO_20 UNI_MUNGED_DIAL: %s - %s\n,old_string, 
new_string));
if (STRING_CHANGED_NC(old_string,new_string))
pdb_set_munged_dial(to   , new_string, PDB_CHANGED);
@@ -196,7 +196,7 @@ void copy_id21_to_sam_passwd(struct samu *to, 
SAM_USER_INFO_21 *from)
mung.data = (uint8 *) from-uni_munged_dial.buffer;
mung.free = NULL;
newstr = (mung.length == 0) ?
-   NULL : base64_encode_data_blob(mung);
+   NULL :