I first tried the samba4 package in the ubuntu intrepid repositories, but when you do a
./setup/provision --realm=azulogic.com --domain=azulogic --adminpass=fubar --server-role='domain controller'you get a python stackdump with
IOError: [Errno 2] No such file or directory: '/usr/etc/samba/smb.conf'I tried creating a "/usr/etc/samba" folder (though the distaste was high), but then proceeded to get further file path errors.
So, next I switched to the Debian Experimental package. This worked much better.
After you apt-get install the package, you'll have to fixup /etc/init.d/samba4 - it's still looking for smbd (the samba3 daemon), whereas in samba4 its now /usr/sbin/samba.
So, I just did a
ln -s /usr/sbin/samba /usr/sbin/smbdto get it to work.
After getting krb5, dns, and samba ready to go, I tried to join a linux machine running winbind 2:3.2.3-1ubuntu3 to the domain. No luck though:
(~) net ads join -U AdministratorHow do you fix this? One way is to run in the "single" process model mode. I changed /etc/init.d/samba4 to launch the samba daemon with -M single. Then you see a nice:
Enter Administrator's password:
Failed to join domain: failed to lookup DC info for domain 'AZULOGIC.COM' over rpc: NT_STATUS_INTERNAL_ERROR
(~) net ads join -U AdministratorOne final note: as far as I can tell the debian version (4.0.0alpha6-GIT-7fb9007) crashes when someone tries to do a change password. So beware!
Enter Administrator's password:
Using short domain name -- AZULOGIC
Joined 'LTS' to realm 'azulogic.com
No comments:
Post a Comment