>Hi Johan >I tried to do the same thing, but I was less successful.
>Can you give a configuration file for your samba setup? I was stuck add >getting my users authenticated against my samba domain controller (although >my pc was registered in my domain) >Thanks >steven Here are my config files I used the samba3 by example, it it all Works very well, I also use a ldap backend. The only thing that has a error is the nsswitch.conf file in the by example doc, it tells you to use ldap but you must use winbind. My config is from a FreeBSD 7.1 PRERELEASE machine. If you leave out the ldap settings you should be able to use the tdb backend. My win2003 server is server01 my Samba server is server02 What is important is the /etc/krb5.conf file and the /etc/nsswitch.conf file ######################################################### #/usr/local/etc/smb.conf file ######################################################### [global] workgroup = SMBDOMAIN realm = SMBDOMAIN.LOCAL netbios name = server02 interfaces = bce0 lo0 server string = %L security = ads # ldap backend ldap admin dn = cn=Manager,dc=smbdomain,dc=local ldap idmap suffix = ou=Idmap ldap suffix = dc=smbdomain,dc=local idmap backend = ldap:ldap://ldap.smbdomain.local # end ldap backend idmap uid = 5000-100000 idmap gid = 5000-100000 template homedir = /usr/home/%U template shell = /bin/sh #winbind cache time = 3600 #winbind nested groups = yes winbind use default domain = yes winbind separator = + winbind enum users = yes winbind enum groups = yes #password server = server01.smbdomain.local #wins server = server01.smbdomain.local socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 use sendfile = yes local master = no domain logons = no domain master = no preferred master = no dns proxy = no username map = /usr/local/samba/usermap nt acl support = yes # Printing load printers = yes printing = cups printcap name = cups # LOGGING syslog only = Yes log file = /var/log/samba/%m loglevel = 1 ads:10 auth:10 sam:10 rpc:10 #log level = 3 max log size = 1000 syslog = 2 # logon options logon script = logon.bat # logon path = \\%L\profiles\%u logon path = logon home = \\server02\%U logon drive = H: #============================ Share Definitions ============================== [homes] root preexec = /usr/local/samba/scripts/firslogon comment = Home Directories valid users = SMBDOMAIN+%S read only = no browseable = no [Data] comment = Data path = /usr/local/samba/data browseable = yes writeable = yes create mode = 0755 directory mode = 0755 ######################################################### #/etc/krb5.conf file (Capitol letters are important) ######################################################### [libdefaults] default_realm = SMBDOMAIN.LOCAL clockskew = 300 [realms] SMBDOMAIN.LOCAL = { kdc = server01.smbdomain.local } [domain_realm] .smbdomain.local = SMBDOMAIN.LOCAL ######################################################### #/etc/nsswitch.conf file # The important stuff is group: and passwd: ######################################################### # # nsswitch.conf(5) - name service switch configuration file # $FreeBSD: src/etc/nsswitch.conf,v 1.1 2006/05/03 15:14:47 ume Exp $ # group: files winbind group_compat: nis hosts: files dns networks: files passwd: files winbind passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files Hope this helps. Regards, Johan No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.8.6/1769 - Release Date: 5-11-2008 7:17 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba