Re: [Samba] Samba 4 and new Kerberos version

2012-02-08 Thread steve

On 07/02/12 20:52, Gémes Géza wrote:

2012-02-07 16:07 keltezéssel, steve írta:

On 07/02/12 12:01, Andrew Bartlett wrote:

On Tue, 2012-02-07 at 10:24 +0100, steve wrote:

I just got this from the mit list:

quote
DES transition
==

The krb5-1.8 release disables single-DES cryptosystems by default.  As
a result, you may need to add the libdefaults setting
allow_weak_crypto = true to communicate with existing Kerberos
infrastructures if they do not support stronger ciphers.

/quote

Does/will this apply to us?

Heimdal did this a long time ago, so yes.  If you wish to use DES, you
have to set that in your krb5.conf.

Andrew Bartlett


Hi
I'm using S4 out of the box on openSUSE 12.1. All the Kerberos
transactions seem to choose arcfour.
Does the des stuff apply to me?
Thanks,
Steve


Hi,
You need to enable weak crypto if you want to use kerberos with apps
which depends on des (e.g nfs, openafs).
Regards
Geza
Mmm. That's what I thought. I added that line to krb5.conf before using 
nfs. I commented it and it still works. The s4 nfs transactions seem to 
choose arcfour, not des. I can't find this documented anywhere but 
noises on the nfs kernel list suggest that the weak crypto is not now 
necessary. Will leave the line commented until nfs explodes at some stage.

Cheers,
Steve

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


[Samba] Any news on Samba 4 winbind?

2012-02-08 Thread steve

Hi
I have nfs4 with idmapd working perfectly via the S4 LDAP. For Linux 
clients that is. I can specify uid:gid and name mapping works fine 
between server and client. If I want to map the Linux users to a windows 
7 box, I'm stuck with the values that winbind allocates when I create 
the samba4 user i.e. everyone has to have a uid of 100 if they want a 
choice of workstation:(


The last thing I want to appear to be is demanding. I just wanted to 
know if there were any workarounds available so I could use nfs on the 
linux side but keep the uid:gid I had added to LDAP on the windows side.


Thanks,
Steve

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


Re: [Samba] The Recycled PIDs Fix

2012-02-08 Thread Manoj Dahal
** Low Priority **

Volker,
 
In that case, which library/binary (and rpm) is responsible for wiping out the
share mode entries if the PID is not registered in server.tdb? And in what 
scenario
will this happen? I was trying to reproduce this with Samba running and I still 
see
my share mode entries intake.
 
Thanks,
 
-Manoj

 Volker Lendecke volker.lende...@sernet.de 2/8/2012 2:38 PM 
On Wed, Feb 08, 2012 at 01:28:33AM -0700, Manoj Dahal wrote:
 In which samba library/binary file and rpm does the source
 file source3/lib/serverid.c reflect to?
 I was guessing it could be smbd and samba-3.6.1*.rpm.

Sorry, I don't get your question. lib/serverid.c is linked
into quite a few binaries as you can see from Makefile.in.
It will certainly end up in the RPM files.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de

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

Re: [Samba] The Recycled PIDs Fix

2012-02-08 Thread Volker Lendecke
On Wed, Feb 08, 2012 at 02:17:33AM -0700, Manoj Dahal wrote:
 In that case, which library/binary (and rpm) is responsible for wiping out the
 share mode entries if the PID is not registered in server.tdb? And in what 
 scenario
 will this happen? I was trying to reproduce this with Samba running and I 
 still see
 my share mode entries intake.

It should be smbd when someone tries to open the file for
which a share mode entry exists without a corresponding
serverid.tdb entry.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Any news on Samba 4 winbind?

2012-02-08 Thread steve

On 02/08/2012 09:43 AM, steve wrote:

Hi
I have nfs4 with idmapd working perfectly via the S4 LDAP. For Linux 
clients that is. I can specify uid:gid and name mapping works fine 
between server and client. If I want to map the Linux users to a 
windows 7 box, I'm stuck with the values that winbind allocates when I 
create the samba4 user i.e. everyone has to have a uid of 100 ***if 
they want a choice of workstation:(


The last thing I want to appear to be is demanding. I just wanted to 
know if there were any workarounds available so I could use nfs on the 
linux side but keep the uid:gid I had added to LDAP on the windows side.


Thanks,
Steve


*** correction: gid of 100
IOW the uid:gid that wbinfo -i username gives you.
Sorry.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Incorrect domain SID when creating new users

2012-02-08 Thread Dermot
Hi,

I created a new user on our Samba domain master yesterday but the user
was unable to login from WinXP to the domain. I think they got an
error that a device connected to the system wasn't working. The user
was created using smbldap-useradd.

The logs showed this for the user workstation:


  _netr_LogonSamLogon: user FOO\efields has user sid
S-1-5-21-908662176-1457135431-1537874043-3288
   but group sid S-1-5-21-1979685110-1467996072-351907979-513.
  The conflicting domain portions are not supported for NETLOGON calls

I used the phpadmin interface to change the domain part of the SID so
it matched the domain and the user was able to login. The question is
where do I set the domain SID? I remember doing it at some stage when
I set-up the samba domain but I have forgotten.

Can someone point me in the right direction. Sorry for the lazy post,
I'm sure it I did some more digging I'd find it documented somewhere.
Thanks in advance,
Dermot.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Incorrect domain SID when creating new users

2012-02-08 Thread Miguel Medalha



I created a new user on our Samba domain master yesterday but the user
was unable to login from WinXP to the domain. I think they got an
error that a device connected to the system wasn't working. The user
was created using smbldap-useradd.

(...) The question is
where do I set the domain SID? I remember doing it at some stage when
I set-up the samba domain but I have forgotten.


The SID number is configured in /etc/smbldap-tools/smbldap.conf

smbldap-tools comes with a script to assist in the basic configuration 
of the tools. It's called configure.pl in most versions but the name 
was recently changed to smbldap-config.pl


At least in RedHat-alike distros, the script resides in 
/usr/share/doc/smbldap-tools-x.x.x, where x.x.x is your particular 
version. Current version is 0.9.7-1.


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


Re: [Samba] Incorrect domain SID when creating new users

2012-02-08 Thread Dermot
fffOn 8 February 2012 10:18, Miguel Medalha
miguelmeda...@sapo.pt wrote:


 (...) The question is

 where do I set the domain SID? I remember doing it at some stage when
 I set-up the samba domain but I have forgotten.


 The SID number is configured in /etc/smbldap-tools/smbldap.conf

 smbldap-tools comes with a script to assist in the basic configuration of
 the tools. It's called configure.pl in most versions but the name was
 recently changed to smbldap-config.pl


Thanks for the reply. I can't recall runnning configure.pl. Before I
cause myself any harm, I thought I should check with the list. The
smbldap.conf says to run `net getlocalsid` to obtain the SID for the
config. When I do that I get a different SID from what I was
expecting. I would have expected the domain part of the local machine
SID to match the domains SID but they do not (see below) and I would
have expected the local machine SID to match what is in the
smbldap.conf.

net getdomainsid
SID for local machine PDC is: S-1-5-21-597566789-4152996160-2957772391
SID for domain FOO is: S-1-5-21-1979685110-1467996072-351907979

grep SID /etc/smbldap-tools/smbldap.conf
#SID=S-1-5-21-2252255531-4061614174-2474224977
SID=S-1-5-21-900663976-1457140431-1537874043


When I create a new user, the user get a primary group SID that looks like
S-1-5-21-1979685110-1467996072-351907979-513
and a SambaSID that reads:
S-1-5-21-900663976-1457140431-1537874043-3290

So I need to change the way the domain part of the primary group SID
is defined and possibly edit the smbldap.conf so that the SID uses the
domain SID. Does that sound correct? If so, how can I modify the
primary group SID?

Thanks again,
Dermot.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba 4 latest git failed to provision: DNS

2012-02-08 Thread steve

On 02/08/2012 01:33 AM, steve wrote:

On 07/02/12 23:45, steve wrote:

This:
https://lists.samba.org/archive/samba-technical/2012-February/081535.html
fixes this:



More dns problems:

samba --version
Version 4.0.0alpha18-GIT-e32ad9b

bin/tdbbackup: /home/steve/samba-master/bin/shared/private/libtdb.so: 
version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by 
bin/tdbbackup)

Failed to setup database for BIND, AD based DNS cannot be used
Traceback (most recent call last):
  File ./source4/setup/provision, line 262, in module
useeadb=eadb, next_rid=opts.next_rid, lp=lp)
  File bin/python/samba/provision/__init__.py, line 1757, in provision
am_rodc=am_rodc, lp=lp)
  File bin/python/samba/provision/__init__.py, line 1491, in 
provision_fill

targetdir=targetdir, site=DEFAULTSITE)
  File bin/python/samba/provision/sambadns.py, line 990, in 
setup_ad_dns
create_samdb_copy(samdb, logger, paths, names, domainsid, 
domainguid)
  File bin/python/samba/provision/sambadns.py, line 751, in 
create_samdb_copy

os.path.join(dns_dir, sam.ldb))
  File bin/python/samba/provision/sambadns.py, line 688, in tdb_copy
raise Exception(Error copying %s % file1)
Exception: Error copying /usr/local/samba/private/sam.ldb

Any ideas anyone?
Thanks,
Steve



But not this:

Provisioning with the internal dns doesn't work either:

/usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last):
/usr/local/samba/sbin/samba_dnsupdate:   File 
/usr/local/samba/sbin/samba_dnsupdate, line 487, in module

/usr/local/samba/sbin/samba_dnsupdate: get_credentials(lp)
/usr/local/samba/sbin/samba_dnsupdate:   File 
/usr/local/samba/sbin/samba_dnsupdate, line 119, in get_credentials
/usr/local/samba/sbin/samba_dnsupdate: creds.get_named_ccache(lp, 
ccachename)
/usr/local/samba/sbin/samba_dnsupdate: RuntimeError: kinit for 
HH3$@HH3.SITE failed (Cannot contact any KDC for requested realm)

/usr/local/samba/sbin/samba_dnsupdate:

Not my lucky day:(


It produces this error after a restart.

I've wasted quite a bit of time with cases like this. Would it be OK for 
one of us here to subscribe to samba-technical if we promise not to post?

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


[Samba] slow creating files

2012-02-08 Thread Gankov Aleksey
We tried to migrate from old Windows fileserver (p4, single HDD) to 
Samba (FedoraCore15, Samba 3.5.12-72.fc15, ext4 volume, xeon, raid5).
Our pipeline is so, that some special software generates files on that 
fileserver.

The typical filesize ~50 mbytes.
On the old hardware, software (win2k3 server) the time of single file 
creation was about 10 seconds. On the new configuration it takes 20-25 
seconds.
Copying of large files to\from samba server is ok (more than 80 
mbytes\sec).

It was default Samba installation.
The usual tuning doesn't help at all (TCPNODELAY etc...)

Is there any idea for tuning?

Also, I wrote easy test that confused me:

#include stdio.h
#include stdlib.h
#include time.h
void main(int argc, char *argv[])
{
int fsize=4000;
int i=0;
FILE *to;
char 
str[]=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890;

time_t start, end;
double diff;

time(start);
to=fopen(argv[1], w+);
for(i=0; i  fsize/100; i++)
{
fprintf(to, \n%7d-%s,i, str);
fflush(to); // makes it slow!
}
fclose(to);
time(end);
diff=difftime(end,start);
printf(\n \t time_diff =  %.2lf, diff);
}

This was started on Win7 client PC, It creates about 40 mbytes size 
file in pointed path.
Comparing timings on our samba share and win2k3 share gives: ~40 
seconds on Samba and on  3-4 seconds win2k3!

That means that fflush cause dramatically slow down of fileshare.

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


Re: [Samba] APW and Windows 7

2012-02-08 Thread Chris Smith
On Tue, Feb 7, 2012 at 6:07 PM, Mike Vallabh m...@waikato.ac.nz wrote:
  What I haven't figured out (but have managed to work around) is that when
 you install the driver via APW, it presents a list of Manufacturers and
 Printer Models.  If I do the above from a Win7 (32-bit) client everything
 works as you would expect.  If however I do the above from a Win7 (64-bit)
 client I do not get presented with the Manufacturers/Models window.  Instead
 the drivers windows says No drivers found for your device.  Does this
 have something to so with how the Windows Active Directory views \\myprinter
 as either a 32-bit or 64-bit server when I joined it to the domain?

Didn't have a local 32 bit client to test with but I can duplicate the
APW problem with a raw queue and a 64 bit client. I normally would not
run across this as I use cupsaddsmb to add drivers but decided to
create a raw print queue and give it a shot. In following the
instructions at:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2627720
which I've used successfully many times in the past (with older
versions of Samba and 32 bit clients) the APW does not provide a
driver list. If I ignore Do not click on Yes! Instead, click on No in
the error dialog. and click on Yes the APW will present a driver
list, but unless things have changed we know method that is incorrect.

Suggest you create a bug report for this.

Also it's been mentioned many times on this list that with a modern
distro the socket options =  should not be specified. I don't know
that distro but you may be hurting performance by using it.

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

Re: [Samba] Samba 4 latest git failed to provision: DNS

2012-02-08 Thread Kai Blin
On 2012-02-08 13:19, steve wrote:
Hi Steve,

 I've wasted quite a bit of time with cases like this. Would it be
 OK for one of us here to subscribe to samba-technical if we promise
 not to post?

You're always free to subscribe to samba-technical. You're also free
to post things to samba-technical if it's development-related, too. In
this case, this seems like a problem with the build system, which
clearly is a fit topic for samba-technical. Just know that if you
bring your problems to samba-technical, you'll be expected to test
patches (hopefully). :)

Cheers,
Kai

-- 
Kai Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] APW and Windows 7

2012-02-08 Thread Christ Schlacta
Were you careful to install both the 32 and 64 bit printer drivers on 
the samba server?  If you omit the 64 bit drivers, that would explain 
the strange behavior.


On 2/8/2012 07:09, Chris Smith wrote:

On Tue, Feb 7, 2012 at 6:07 PM, Mike Vallabhm...@waikato.ac.nz  wrote:

  What I haven't figured out (but have managed to work around) is that when
you install the driver via APW, it presents a list of Manufacturers and
Printer Models.  If I do the above from a Win7 (32-bit) client everything
works as you would expect.  If however I do the above from a Win7 (64-bit)
client I do not get presented with the Manufacturers/Models window.  Instead
the drivers windows says No drivers found for your device.  Does this
have something to so with how the Windows Active Directory views \\myprinter
as either a 32-bit or 64-bit server when I joined it to the domain?

Didn't have a local 32 bit client to test with but I can duplicate the
APW problem with a raw queue and a 64 bit client. I normally would not
run across this as I use cupsaddsmb to add drivers but decided to
create a raw print queue and give it a shot. In following the
instructions at:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2627720
which I've used successfully many times in the past (with older
versions of Samba and 32 bit clients) the APW does not provide a
driver list. If I ignore Do not click on Yes! Instead, click on No in
the error dialog. and click on Yes the APW will present a driver
list, but unless things have changed we know method that is incorrect.

Suggest you create a bug report for this.

Also it's been mentioned many times on this list that with a modern
distro the socket options =  should not be specified. I don't know
that distro but you may be hurting performance by using it.

Chris

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


[Samba] Group Mappings

2012-02-08 Thread Simon Faulkner

Samba 3.6.2

My Domain Admins, including root, don't get admin permissions on local PCs.

My Windows 7 clients can join the domain but when I look in the 
Administrators group it shows the sid for the Domain Admins group (RID = 
512) and the icon has a question mark


net groupmap list seems OK

Any ideas where to look next?

TIA

Simon

--
Simon Faulkner  01538 303 900
Staffordshire Moorlands

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


[Samba] Samba4 user mapping into filesystem

2012-02-08 Thread Brantley Hobbs
Hi all!

I have Samba 4.0.0alpha17 installed, running as a PDC for my small
home network.  Everything works great, but I'm noticing something odd.
 When a user creates a file, it's created with a non-existent owner on
the filesystem.  The group is OK.

The problem is that when I set ACL's from a Windows computer, the
files with that owner can't be changed (i.e., Windows gives a
'retry/continue/cancel dialog).  If I change those files to
root:users, I can set ACL's on them all day long.

I've searched all over and can't find out any clues as to why this is
happening, or how to correct it.

My questions:
- What underlying filesystem permissions, owner and group should I set
for files/directories in a Samba share?
- Should I/Can I force the owner/group and permissions on newly created files?
- Why are new files created with a non-existent user in the first place?

My installation:
- Ubuntu 11.10 (server)
- Underlying filesystem is a mix of EXT3 and EXT4 (EXT3 FS has xattrs
enabled and working)
- Not using UNIX users; the users are all in the internal Samba database
- Samba runs as root
- My smb.conf file is using a bare minimum of options; just enough to
define shares and set some service information

Thanks for your help.

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


Re: [Samba] smbd crashes

2012-02-08 Thread Peter Trifonov
Hello folks,

 
 After upgrading from samba 3.4.9 to samba 3.6.1 on a FreeBSD 8.1 x86
 system smbd stopped working.
 It starts successfully, but crashes as soon as someone tries to connect to
a
 share.
 Log file contains a lot of entries like the following:
 
 [2012/02/06 11:05:13,  1] lib/util_tdb.c:521(tdb_wrap_log)
   tdb(unnamed): tdb_open_ex: spinlocks no longer supported
 [2012/02/06 11:05:13,  0] lib/messages_local.c:112(messaging_tdb_init)
   ERROR: Failed to initialise messages database: Unknown error: 0

The problem still remains  after upgrading to samba 3.6.3.  
It appears that spinlocks are somehow automatically enabled for any newly
created database. Is there any way to avoid this behavior?





With best regards,
P. Trifonov
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 user mapping into filesystem

2012-02-08 Thread William Brown
 
 
 The problem is that when I set ACL's from a Windows computer, the
 files with that owner can't be changed (i.e., Windows gives a
 'retry/continue/cancel dialog).  If I change those files to
 root:users, I can set ACL's on them all day long.



You likely don't have ACL's enabled on the filesystem that samba is sharing. 
You can check with

sudo tune2fs -l /dev/vg_lillie/lv_root | grep option

replacing your disk into that command. You should see something like

Default mount options:user_xattr acl

If not, you should enable the filesystem ACL using tune2fs, then reboot your 
machine.

tune2fs -o acl /dev/sda1

Sincerely,

William Brown

Research  Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindexsearch=0x3C0AC6DAB2F928A2






signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Samba4 user mapping into filesystem

2012-02-08 Thread William Brown

On 09/02/2012, at 08:51, William Brown wrote:

 
 
 The problem is that when I set ACL's from a Windows computer, the
 files with that owner can't be changed (i.e., Windows gives a
 'retry/continue/cancel dialog).  If I change those files to
 root:users, I can set ACL's on them all day long.
 
 
 
 You likely don't have ACL's enabled on the filesystem that samba is sharing. 
 You can check with
 
 sudo tune2fs -l /dev/vg_lillie/lv_root | grep option
 
 replacing your disk into that command. You should see something like
 
 Default mount options:user_xattr acl
 
 If not, you should enable the filesystem ACL using tune2fs, then reboot your 
 machine.
 
 tune2fs -o acl /dev/sda1
 


And this is why you don't use a mailing list while half asleep. I misread yoru 
problem. Probably still good to check that. 

Anyway, do you have the machine joined to its own domain? Are you running 
winbind to resolve the usernames etc?

The issue you might be seeing is that while they have an owner that isn't 
there, if you use getfacl on the file it should have the ACL's to allow the 
group / user in question to read/write it. The non existent user could be due 
to winbind trying to map the user Id to an account, but you don't have the 
client side of the resolver setup, so it shows non existant. using ls, check 
the numerical ID on the files. 

Sincerely,

William Brown

Research  Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindexsearch=0x3C0AC6DAB2F928A2






signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] samba-3.6.0 .spec anad patches for SRPM building for RHEL 5 and 6 at https://github.com/nkadel/samba-3.6.0-srpm

2012-02-08 Thread Nico Kadel-Garcia
For folks who want samba-3.6.0 for RHEL 5 or 6, and would prefer to
have RHEL compatible layouts rather than the somewhat different
layouts of the packages at
http://ftp.samba.org/pub/samba/Binary_Packages/, I've published some
.spec files and patches at

https://github.com/nkadel/samba-3.6.0-srpm

I'm happy to walk through how to build these with mock to get very
clean packages for your particular distribution. They're backported
from the samba-3.6.0 for Fedora, and compile and pass at least testing
on RHEL 5 and RHEL 6 with i386 and x86_64 environments. I personally
use them for CIFS 2.x testing.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] APW and Windows 7

2012-02-08 Thread Chris Smith
On Wed, Feb 8, 2012 at 12:45 PM, Christ Schlacta li...@aarcane.org wrote:
 Were you careful to install both the 32 and 64 bit printer drivers on the
 samba server?

I think you're missing the point. Installing the drivers on the Samba
server is what we're trying to do :) Using the APW is a known, and
documented (see the link in my previous post) method way to accomplish
this.

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


[Samba] Screenshot

2012-02-08 Thread Simon Faulkner
Any chance anyone can take a look at this screen shot of the 
Administrator group on a Domain PC


I can't figure out why it is showing the SID rather than the name of the 
group?


TIA

Simon

--
Simon Faulkner  01538 303 900
Staffordshire Moorlands

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

[SCM] Samba Shared Repository - branch master updated

2012-02-08 Thread Andrew Bartlett
The branch, master has been updated
   via  773182f s3-passdb: Remove #if _SAMBA_BUILD_ == 4 from pdb_samba4
   via  2c04520 s3-docs: Remove references to long-gone smbmount utilities
   via  e4546f5 auth: rename ntlmssp.c to ntlmssp_util.c
   via  89cd086 s3-auth Add const to make_user_info_map
   via  76021cc s4-messaging: fix pymessaging docstring
   via  ff5a337 s3-build use common VERSION file for all builds
  from  75628e6 pidl: add more mapped types

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 773182f186f218b45abd84b996b37f27a07e2660
Author: Andrew Bartlett abart...@samba.org
Date:   Wed Feb 8 17:41:54 2012 +1100

s3-passdb: Remove #if _SAMBA_BUILD_ == 4 from pdb_samba4

pdb_samba4 is only built with waf anyway.

Andrew Bartlett

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Wed Feb  8 09:17:40 CET 2012 on sn-devel-104

commit 2c04520f328aec22c12dc79f4712b14471118b1b
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Feb 3 14:51:59 2012 +1100

s3-docs: Remove references to long-gone smbmount utilities

commit e4546f50feb6e93775ad20e153b8156eb60a6a57
Author: Andrew Bartlett abart...@samba.org
Date:   Tue Jan 31 08:54:22 2012 +1100

auth: rename ntlmssp.c to ntlmssp_util.c

commit 89cd086561bdf5741ad96e6c63780e4d229e8699
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Jan 30 22:44:28 2012 +1100

s3-auth Add const to make_user_info_map

commit 76021cc6264f1b33470ee2550bd408735686dc53
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Feb 6 17:44:34 2012 +1100

s4-messaging: fix pymessaging docstring

commit ff5a337483cd9f212fa0fd0931b3fa12797f55f8
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Jul 4 10:14:27 2011 +1000

s3-build use common VERSION file for all builds

There is no need to have both version files at this point.

Andrew Bartlett

---

Summary of changes:
 auth/ntlmssp/{ntlmssp.c = ntlmssp_util.c} |0
 auth/ntlmssp/wscript_build |2 +-
 docs-xml/manpages-3/samba.7.xml|   10 ---
 docs-xml/using_samba/ch02.xml  |6 --
 packaging/SGI/mkman|3 -
 source3/Makefile.in|2 +-
 source3/VERSION|  105 
 source3/auth/auth_util.c   |4 +-
 source3/auth/proto.h   |4 +-
 source3/passdb/pdb_samba4.c|2 -
 source3/po/ru/help/welcome.html|3 -
 source3/script/mkversion.sh|2 +-
 source4/lib/messaging/pymessaging.c|5 +-
 swat/help/welcome.html |3 -
 swat/lang/ja/help/welcome.html |3 -
 swat/lang/tr/help/welcome.html |3 -
 16 files changed, 9 insertions(+), 148 deletions(-)
 rename auth/ntlmssp/{ntlmssp.c = ntlmssp_util.c} (100%)
 delete mode 100644 source3/VERSION


Changeset truncated at 500 lines:

diff --git a/auth/ntlmssp/ntlmssp.c b/auth/ntlmssp/ntlmssp_util.c
similarity index 100%
rename from auth/ntlmssp/ntlmssp.c
rename to auth/ntlmssp/ntlmssp_util.c
diff --git a/auth/ntlmssp/wscript_build b/auth/ntlmssp/wscript_build
index 16c31ac..e68c4c8 100644
--- a/auth/ntlmssp/wscript_build
+++ b/auth/ntlmssp/wscript_build
@@ -1,3 +1,3 @@
 bld.SAMBA_SUBSYSTEM('NTLMSSP_COMMON',
-source='gensec_ntlmssp.c ntlmssp.c ntlmssp_ndr.c 
ntlmssp_server.c ntlmssp_sign.c',
+source='gensec_ntlmssp.c ntlmssp_util.c ntlmssp_ndr.c 
ntlmssp_server.c ntlmssp_sign.c',
 deps='samba-util NDR_NTLMSSP MSRPC_PARSE NTLM_CHECK')
diff --git a/docs-xml/manpages-3/samba.7.xml b/docs-xml/manpages-3/samba.7.xml
index 2a76dff..95cbf07 100644
--- a/docs-xml/manpages-3/samba.7.xml
+++ b/docs-xml/manpages-3/samba.7.xml
@@ -244,16 +244,6 @@
/para/listitem/varlistentry
 
varlistentry
-   term
-citerefentryrefentrytitlesmbmount/refentrytitlemanvolnum8/manvolnum/citerefentry,
 
-citerefentryrefentrytitlesmbumount/refentrytitlemanvolnum8/manvolnum/citerefentry,
 
-citerefentryrefentrytitlesmbmnt/refentrytitlemanvolnum8/manvolnum/citerefentry/term
-   
listitemparacommandsmbmount/command,commandsmbumount/command and 
commandsmbmnt/command are commands that can be used to 
-   mount CIFS/SMB shares on Linux.
-   /para/listitem
-   /varlistentry
-
-   varlistentry
termciterefentryrefentrytitlesmbcquotas/refentrytitle
manvolnum1/manvolnum/citerefentry/term
listitemparacommandsmbcquotas/command is a tool that 
diff --git a/docs-xml/using_samba/ch02.xml b/docs-xml/using_samba/ch02.xml
index 307f5f3..ad4b51c 100644
--- 

[SCM] Samba Shared Repository - branch master updated

2012-02-08 Thread Jelmer Vernooij
The branch, master has been updated
   via  24ed8c5 regshell: Fix a counter that can actually be non-zero.
  from  773182f s3-passdb: Remove #if _SAMBA_BUILD_ == 4 from pdb_samba4

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 24ed8c59244de695e370055fa3a1af418029d8b9
Author: Jelmer Vernooij jel...@samba.org
Date:   Wed Feb 8 14:17:17 2012 +0100

regshell: Fix a counter that can actually be non-zero.

This was a regression caused by one of the unsigned patches.

Autobuild-User: Jelmer Vernooij jel...@samba.org
Autobuild-Date: Wed Feb  8 16:00:22 CET 2012 on sn-devel-104

---

Summary of changes:
 source4/lib/registry/tools/regshell.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/registry/tools/regshell.c 
b/source4/lib/registry/tools/regshell.c
index 6bd7fd3..1a4067b 100644
--- a/source4/lib/registry/tools/regshell.c
+++ b/source4/lib/registry/tools/regshell.c
@@ -428,7 +428,7 @@ static char **reg_complete_command(const char *text, int 
start, int end)
/* Complete command */
char **matches;
size_t len, samelen=0;
-   unsigned int i, count=1;
+   int i, count=1;
 
matches = malloc_array_p(char *, MAX_COMPLETIONS);
if (!matches) return NULL;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2012-02-08 Thread Jeremy Allison
The branch, master has been updated
   via  4cf9923 Fix shadow variable name warning.
  from  24ed8c5 regshell: Fix a counter that can actually be non-zero.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 4cf9923b09954a0605fb006e7d90d2fbff4d0a6b
Author: Jeremy Allison j...@samba.org
Date:   Wed Feb 8 12:15:04 2012 -0800

Fix shadow variable name warning.

Autobuild-User: Jeremy Allison j...@samba.org
Autobuild-Date: Wed Feb  8 22:55:08 CET 2012 on sn-devel-104

---

Summary of changes:
 lib/tdb2/transaction.c |   20 ++--
 1 files changed, 10 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tdb2/transaction.c b/lib/tdb2/transaction.c
index dd94510..dbdaf32 100644
--- a/lib/tdb2/transaction.c
+++ b/lib/tdb2/transaction.c
@@ -795,22 +795,22 @@ static struct tdb_recovery_record *alloc_recovery(struct 
tdb_context *tdb,
offset += off;
 
while (off  length) {
-   tdb_len_t len;
+   tdb_len_t len1;
unsigned int samelen;
 
-   len = different(tdb-tdb2.transaction-blocks[i] + off,
+   len1 = different(tdb-tdb2.transaction-blocks[i] + off,
buffer + off, length - off,
-   sizeof(offset) + sizeof(len) + 1,
+   sizeof(offset) + sizeof(len1) + 1,
samelen);
 
memcpy(p, offset, sizeof(offset));
-   memcpy(p + sizeof(offset), len, sizeof(len));
-   tdb_convert(tdb, p, sizeof(offset) + sizeof(len));
-   p += sizeof(offset) + sizeof(len);
-   memcpy(p, buffer + off, len);
-   p += len;
-   off += len + samelen;
-   offset += len + samelen;
+   memcpy(p + sizeof(offset), len1, sizeof(len1));
+   tdb_convert(tdb, p, sizeof(offset) + sizeof(len1));
+   p += sizeof(offset) + sizeof(len1);
+   memcpy(p, buffer + off, len1);
+   p += len1;
+   off += len1 + samelen;
+   offset += len1 + samelen;
}
tdb_access_release(tdb, buffer);
}


-- 
Samba Shared Repository


[SCM] Samba Website Repository - branch master updated

2012-02-08 Thread Lars Müller
The branch, master has been updated
   via  71f8606 Remove 3smil as the web page is dead + no answer
   via  7c3b046 Update phone number of novso
  from  2e6773c Announce Samba 3.6.3.

http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit 71f860685b0e2a63ef3ec9576bf6ad90383867eb
Author: Lars Müller l...@samba.org
Date:   Wed Feb 8 23:44:45 2012 +0100

Remove 3smil as the web page is dead + no answer

commit 7c3b0468099084fee7453c8185432ccce5c3ee0e
Author: Lars Müller l...@samba.org
Date:   Wed Feb 8 23:43:32 2012 +0100

Update phone number of novso

---

Summary of changes:
 support/france.html  |2 +-
 support/germany.html |   27 ---
 2 files changed, 1 insertions(+), 28 deletions(-)


Changeset truncated at 500 lines:

diff --git a/support/france.html b/support/france.html
index 33ddb6d..2079e04 100644
--- a/support/france.html
+++ b/support/france.html
@@ -39,7 +39,7 @@ Novso
 France
 
 a href=http://www.novso.com;http://www.novso.com/a
-Tel: 01 79 97 19 50
+Tel: +33 1 83 64 22 70
 
 a href=mailto:i...@novso.com;i...@novso.com/a
 Nicholas Deffayet
diff --git a/support/germany.html b/support/germany.html
index 4c2415f..255d014 100644
--- a/support/germany.html
+++ b/support/germany.html
@@ -4,33 +4,6 @@
 !--#include virtual=header_support.html --
 h2 align=centerCommercial Support - Germany/h2
 
-!-- Added JHT 20100809 --
-hr /
-h33smil, Ltd./h3
-presmall
-3smil, Ltd.
-Muuml;hlenstr. 60
-50354 Hürth
-NRW, Germany
-
-a href=http://3smil.com/;http://3smil.com//a
-Tel: 02233-4053016
-a href=i...@3smil.comi...@3smil.com/a
-Daniel Muuml;ller
-/small/pre
-p
-3smil ist spezialisiert auf Open Source IT Dienstleistungen. Im Bereich Samba 
unterstuuml;tzen wir große Netzwerke mit verteilten Architekturen. Unsere 
Kunden sind meisten Genossenschaften, Schulen, Verwaltungsbehörden, Kirchen 
oder ouml;ffentliche Einrichtungen.
-/pp
-Wir haben uns auf darauf spezialisiert, Windows Domaincontroller durch Samba 
und OpenLDAP abzulösen. Damit das reibungslos funktioniert, sind wir Ihnen von 
der Konzepterstellung uuml;ber die Durchfuuml;hrung bis hin zur späteren 
Pflege Ihres Netzwerks genau der richtige Ansprechpartner.
-/pp
-Da uns die Kundennauml;he sehr wichtig ist, bieten wir unseren Service im 
Raum Kouml;ln/Bonn an.
-/pp
-Unser Abrechnungssystem ist modular aufgebaut, so dass Sie nur Zahlen was Sie 
wirklich in Anspruch nehmen.
-/pp
-Spezializiertes: Migration von Windows zu Samba + OpenLDAP, Pflege und Wartung 
von Samba + OpenLDAP Netzwerken, verteilte Architekturen und Datensicherheit.
-/p
-
-
 !-- Added JHT 20100427 --
 hr /
 h3itsystems Deutschland AG/h3


-- 
Samba Website Repository


[SCM] Samba Shared Repository - branch master updated

2012-02-08 Thread Andrew Bartlett
The branch, master has been updated
   via  4328f3c smbwrapper: Remove smbwrapper
   via  b93326b s3-build: remove EXEEXT from Makefiles
   via  fa1c713 s4:join python code - perform a fallback password set 
operation over libnet
   via  36e5526 s4:join python code - write the SAM account name correctly
  from  4cf9923 Fix shadow variable name warning.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 4328f3ccf37d9a1baadbc55f658902e3b16ff125
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Feb 3 15:06:48 2012 +1100

smbwrapper: Remove smbwrapper

There are now many better ways to access a remote SMB filesystem,
which do not rely on LD_PRELOAD and the associated dangers.  FUSE,
gvfs and the CIFS VFS are all much better options which do not require
knowing every possible libc entry point that can deal with a file
descriptor.

As an example of the maintainence that would be required to keep this
going, recent changes to deal with thread races and close-on-exec have
resulted in dup3(), but this isn't currently mapped.  While this would
not be hard to add, it illistrates why it is better to move to an
interface designed for this task.

Andrew Bartlett

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Thu Feb  9 01:58:24 CET 2012 on sn-devel-104

commit b93326b9689d0ad935eed35f7cf5201ad04ac1ff
Author: Andrew Bartlett abart...@samba.org
Date:   Thu Jan 26 09:23:23 2012 +1100

s3-build: remove EXEEXT from Makefiles

As far as I am aware, we do not actually build on any platforms that
require this.  The last Stratos VOS release on
ftp://ftp.stratus.com/vos/samba/samba.html was 3.0.5

Andrew Bartlett

commit fa1c71382d4f89d9f6c45287a20b1817e08d098d
Author: Matthias Dieter Wallnöfer m...@samba.org
Date:   Mon Nov 14 17:53:39 2011 +0100

s4:join python code - perform a fallback password set operation over libnet

Windows 2000 DCs allow LDAP password set operations only with the help of 
SSL.
Given the fact that this technique is hard to setup it is easier to use SAMR
over libnet.

Reviewed-By: Andrew Bartlett abart...@samba.org

commit 36e5526685b92cea6e5a1b389737574213cd98ab
Author: Matthias Dieter Wallnöfer m...@samba.org
Date:   Sun Jan 8 16:41:54 2012 +0100

s4:join python code - write the SAM account name correctly

It is easier for the comprehension

Reviewed-By: Andrew Bartlett abart...@samba.org

---

Summary of changes:
 docs-xml/scripts/find_missing_manpages.pl|1 -
 docs-xml/using_samba/appd.xml|8 -
 docs-xml/using_samba/ch01.xml|   11 -
 docs-xml/using_samba/ch02.xml|8 -
 examples/VFS/configure.in|3 -
 examples/libsmbclient/smbwrapper/Makefile|   39 -
 examples/libsmbclient/smbwrapper/README  |   40 -
 examples/libsmbclient/smbwrapper/bsd-strlcat.c   |   71 -
 examples/libsmbclient/smbwrapper/bsd-strlcpy.c   |   67 -
 examples/libsmbclient/smbwrapper/bsd-strlfunc.h  |7 -
 examples/libsmbclient/smbwrapper/opendir_smbsh.c |   47 -
 examples/libsmbclient/smbwrapper/select.c|  122 --
 examples/libsmbclient/smbwrapper/smbsh.1 |  203 ---
 examples/libsmbclient/smbwrapper/smbsh.1.html|  108 --
 examples/libsmbclient/smbwrapper/smbsh.1.xml |  164 --
 examples/libsmbclient/smbwrapper/smbsh.c |  162 --
 examples/libsmbclient/smbwrapper/smbw.c  |  932 
 examples/libsmbclient/smbwrapper/smbw.h  |  166 ---
 examples/libsmbclient/smbwrapper/smbw_dir.c  |  355 -
 examples/libsmbclient/smbwrapper/smbw_stat.c |  100 --
 examples/libsmbclient/smbwrapper/wrapper.c   | 1727 --
 examples/libsmbclient/smbwrapper/wrapper.h   |  212 ---
 packaging/SGI/idb.pl |5 -
 source3/Makefile.in  |  187 ++--
 source3/configure.in |   25 +-
 source3/lib/netapi/examples/Makefile.in  |  208 ++--
 source3/lib/netapi/tests/Makefile.in |4 +-
 source3/m4/swat.m4   |2 +-
 source4/scripting/python/samba/join.py   |   26 +-
 29 files changed, 231 insertions(+), 4779 deletions(-)
 delete mode 100644 examples/libsmbclient/smbwrapper/Makefile
 delete mode 100644 examples/libsmbclient/smbwrapper/README
 delete mode 100644 examples/libsmbclient/smbwrapper/bsd-strlcat.c
 delete mode 100644 examples/libsmbclient/smbwrapper/bsd-strlcpy.c
 delete mode 100644 examples/libsmbclient/smbwrapper/bsd-strlfunc.h
 delete mode 100644 examples/libsmbclient/smbwrapper/opendir_smbsh.c
 delete mode 100644 examples/libsmbclient/smbwrapper/select.c
 delete