[Samba] netlogon & homes with Samba4 DC

spamvoll at googlemail.com spamvoll at googlemail.com
Fri Jun 7 14:05:08 MDT 2013


hmm, Ive changed it to [home] but that doesnt change anything :(

Ive created the homedir manually, does not help.

Here are my logs:

http://pastebin.com/J7ij9P4Z
client log:
http://pastebin.com/vHV9CZiu

[2013/06/07 21:14:00.778318,  3]
../source3/smbd/password.c:138(register_homes_share)
  No home directory defined for user 'MYDOM\PC$'

Why a homedirectory for a Computer ?

[2013/06/07 21:14:00.779581,  3]
../source3/smbd/service.c:612(make_connection_snum)
  Connect path is '/tmp' for service [IPC$]

Why defining /tmp as share ?

[2013/06/07 21:14:02.996959,  3]
../source3/smbd/password.c:138(register_homes_share)
  No home directory defined for user 'MYDOM\hpeter'

Why not ? Should Samba create that for me ?

this is at "log level 3"
Ive seen nothing that reports why homedirs for user does not work and there
is nothing in it about the netlogon scripts :(

Attached a picture on how the profiles are configured in AD

ls -al /usr/local/samba/var/locks/sysvol/mydom.de/scripts
total 20
drwxrwx---+ 2 root 3000000 4096 Jun  1 20:57 .
drwxrwx---+ 4 root 3000000 4096 Jun  1 15:27 ..
-rwxrwxrwx+ 1 root root      29 Jun  1 20:57 hpeter.bat

Regards



2013/6/4 Daniel Müller <mueller at tropenklinik.de>

> Of course:
>
> # Global parameters
> [global]
>         workgroup = TPLECHLER
>         realm = tplechler.kkh
>         netbios name = LINUX2
>         server role = active directory domain controller
>         server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
> winbind, ntp_signd, kcc, dnsupdate
>         idmap_ldb:use rfc2307 = yes
>         log level= 5
>         allow dns updates = signed
>
> [netlogon]
>         path = /usr/local/samba/var/locks/sysvol/tplechler.kkh/scripts
>         read only = No
>
> [sysvol]
>         path = /usr/local/samba/var/locks/sysvol
>         read only = No
> [home]
>         path = /home/windows/users  <--- Look at it, it is home--and
> working!!!
>         read only = No
>
>
> EDV Daniel Müller
>
> Leitung EDV
> Tropenklinik Paul-Lechler-Krankenhaus
> Paul-Lechler-Str. 24
> 72076 Tübingen
> Tel.: 07071/206-463, Fax: 07071/206-499
> eMail: mueller at tropenklinik.de
> Internet: www.tropenklinik.de
>
> Von: spamvoll at googlemail.com [mailto:spamvoll at googlemail.com]
> Gesendet: Montag, 3. Juni 2013 20:54
> An: mueller at tropenklinik.de
> Betreff: Re: [Samba] netlogon & homes with Samba4 DC
>
> Hi Daniel,
>
> are you sure ? the included manpages say:
> "There are three special sections, [global], [homes] and [printers], which
> are described under.."
>
> Ill try to change that and see
>
> 2013/6/3 Daniel Müller <mueller at tropenklinik.de>
> It is not "homes" anymore within samba4 it calls "home".
> You need to set the rights for your netlogon from your adm windows client
> or
> within ads tool in your user profile
>
> -----------------------------------------------
> EDV Daniel Müller
>
> Leitung EDV
> Tropenklinik Paul-Lechler-Krankenhaus
> Paul-Lechler-Str. 24
> 72076 Tübingen
>
> Tel.: 07071/206-463, Fax: 07071/206-499
> eMail: mueller at tropenklinik.de
> Internet: www.tropenklinik.de
> -----------------------------------------------
> -----Ursprüngliche Nachricht-----
> Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]
> Im
> Auftrag von Robert Gurdon
> Gesendet: Sonntag, 2. Juni 2013 01:02
> An: spamvoll at gmail.com
> Cc: samba at lists.samba.org
> Betreff: Re: [Samba] netlogon & homes with Samba4 DC
>
> Hi,
>
> 1) Windows 7 logs should say something about your netlogon script.
>
> 2) I think you have to create the home directories via RSAT or make a pam
> script and login with the newly created user.
>      I would suggest the second option, since as I discovered when you make
> your home directories with RSAT you will have getfacl and winbind problems.
> Well, if you try to use getfacl on a RSAT made directory samba's winbind
> part dies.
>
> 2013-06-01 22:38 keltezéssel, spamvoll at googlemail.com írta:
> > hi all,
> >
> > ive setup Samba4 as DC on Ubuntu Server LTS and have two problems right
> now:
> >
> > 1) netlogon
> >
> > smb.conf
> > [netlogon]
> >          path = /usr/local/samba/var/locks/sysvol/asta-wh.de/scripts
> >          read only = No
> >
> > I can access the folder and execute the script as user, but it gets
> > not executed automaticly
> >
> > Ive added to [netlogon]
> >          preexec = echo %u is in %G >> /tmp/netlogon
> >
> > to see if netlogon is executed, and its not.
> > Client PC is a new installed Windows 7 Pro.
> > And Ive added \\SMB4SRV\netlogon\userf00.bat via M$ AD Tools to the User.
> > Roaming Prifiles are also enabled and working.
> >
> > 2) homes
> >
> > smb.conf
> > [homes]
> >          comment = Home Directories
> >          path = /home/HOME/%S
> >          valid users = %S
> >          read only = No
> >          browseable = Yes
> >
> > Home directorys are not created.
> >
> > Im happy with every hint to the right direction
> >
> > Hans
>
> --
> Kind regards:
>
>                                  Robert
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
>
>


More information about the samba mailing list