Re: [Samba] smb.conf sync

2013-05-28 Thread Adam Thorn
On Mon, 2013-05-27 at 16:56 +0200, Michael De Groote wrote: > watch out when you do that!! > i killed one of my previous test-setups by doing that when i forgot to > change the netbios name for the second machine Our fix for that sort of problem is to have "/etc/samba/netbiosname.conf" which is di

Re: [Samba] configuring Shares, Users with Samba 4.0.5 as an AD DC

2013-05-18 Thread Adam Thorn
Ulrich Schneider wrote: >OK, I read a lot lot today ... last time I read samba manuals has been >a >while ... > >so new to me is ... acls in the file system. > >so is this correct, I can adapt windows file security settings directly > >in windows ... and somehow mysteriously ... same thing is

Re: [Samba] configuring Shares, Users with Samba 4.0.5 as an AD DC

2013-05-18 Thread Adam Thorn
Ulrich Schneider wrote: >Maybe I should rephrase the question (and use a more suitable topic) > >I have Samba 4.0.5. as an active domain controller. >I want to know how to set up shares e.g. this way: > >share1 accessible r/w for users in the active directory user group >group1 > >share

Re: [Samba] frequent tdb corruption

2013-05-16 Thread Adam Thorn
On Thu, 2013-05-16 at 13:29 +0200, Volker Lendecke wrote: > "use mmap = no" might provide another data point. Hi Volker, Thanks, but I tried setting that some time ago - I continued to see tdb corruption, so have since returned to not explicitly setting any value for "use mmap". Adam -- To u

Re: [Samba] frequent tdb corruption

2013-05-16 Thread Adam Thorn
> > In case it's relevant: the samba config files are stored on a different > > filesystem. There are a set of multiple disks which are mirrored over > > the network with FreeBSD's HAST (pretty much equivalent to DRBD), and > > the HAST devices are then combined into a RAIDZ2 pool. > > I think thi

Re: [Samba] frequent tdb corruption

2013-05-16 Thread Adam Thorn
Hi Andrew, > Can you please clarify: > > - Is the filesystem on this disk in any way shared? > - Is the block device involved in any way shared? I'm not 100% sure what you mean by "shared" in this context, but the filesystem where the tdbs are stored is: pair of local disks => mirrored togethe

Re: [Samba] frequent tdb corruption

2013-05-14 Thread Adam Thorn
> > On Tue, May 14, 2013 at 1:57 PM, Adam Thorn wrote: > > > [global] > >include = /data/config/samba/servers/%i > > > > and I've attached the result from running testparm on one of > those > &g

Re: [Samba] frequent tdb corruption

2013-05-14 Thread Adam Thorn
> What type of filesystem are you using? Do you have barriers enabled? > > I know in Linux that you should set barrier=1 on the ext3/ext4 filesystem in > order to prevent corruption of sam.ldb in > cases of power loss. It's all on ZFS, so I don't believe there's an equivalent setting. Adam -

Re: [Samba] frequent tdb corruption

2013-05-14 Thread Adam Thorn
> [global] >include = /data/config/samba/servers/%i > > and I've attached the result from running testparm on one of those > included files. ..that attachment seemed be mislaid, so it's attached here instead! Adam -- To unsubscribe from this list go to the following URL and read the instru

[Samba] frequent tdb corruption

2013-05-14 Thread Adam Thorn
Hi, I'm seeing regular tdb corruption; typical log messages are: tdb(/var/db/samba/sessionid.tdb): tdb_rec_read bad magic 0x42424242 at offset=672032 tdb(/var/db/samba/connections.tdb): tdb_rec_read bad magic 0x0 at offset=638594 tdb(/var/db/samba/locking.tdb): tdb_rec_read bad magic 0x4242

[Samba] Odd timestamps/replication latencies with Samba4

2011-08-02 Thread Adam Thorn
Hi, I've recently joined a Samba4 (alpha16) DC to an existing Windows domain (with multiple Windows DCs). A few hours after joining, one of the Windows servers raised an "Active Directory 1864" error. I can't find an obvious MS page to describe that one, but it's due to Windows believing that it h

Re: [Samba] 3.5.5, ADS mode, user authentication syntax

2011-07-20 Thread Adam Thorn
On Wed, 2011-07-20 at 00:09 +0100, Jonathan Buzzard wrote: > Yes the behaviour has changed though the concept of using > u...@domain.com as a username is something I have never come across > before. It is distinctly un-Windows like and I am astounded it ever worked. On the contrary, the user@dom

Re: [Samba] dns.keytab for Samba4 and Bind9

2011-06-30 Thread Adam Thorn
On Wed, 2011-06-29 at 18:55 +0100, Adam Thorn wrote: > Hi, > > When provisioning a new domain, samba4 > creates /usr/local/samba/private/dns.keytab. What's the best way to > create that file manually, when not provisioning a new domain? > > My use case is how one migr

[Samba] dns.keytab for Samba4 and Bind9

2011-06-29 Thread Adam Thorn
Hi, When provisioning a new domain, samba4 creates /usr/local/samba/private/dns.keytab. What's the best way to create that file manually, when not provisioning a new domain? My use case is how one migrates from a Windows AD+DNS to samba4+bind9. I begin by joining a new samba4 instance as a DC to