[Samba] resolve KDC network address error

2010-06-07 Thread Daniel Mueller

Hello Samba-List-Users

I have a problem with KDC network name resolution. I tried to google it 
and sought help on IRC#samba, to no avail. So I'll post my problem here.


In the spirit of privacy and normalization all server names in this post 
are replaced. CAPTIAL server names are actually capitalized in the 
configuration files.


Setup:
1x Debian5 x64 server running samba 3.2.5
2x Windows Server 2008R2 domain controllers (Active Directory running in 
native mode)

some Windows7 Clients

here are my configuration files:

smb.conf (global section)
8<--
# Global parameters
[global]
netbios name = SAMBASERVER01
workgroup = DOMAIN
realm = DOMAIN.LOCAL
preferred master = no
server string = Productive Datastore
interfaces = eth0 172.16.1.15
map to guest = bad user
security = ADS
encrypt passwords = yes
log level = 2
syslog = 2
winbind separator = +
printcap name = /etc/printcap
printing =
load printers = no
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
idmap uid = 1-2
idmap gid = 1-2
usershare allow guests = no
hide files = /$RECYCLE.BIN/desktop.ini/
vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rename unlink rmdir pwrite
full_audit:failure = none
#full_audit:facility = LOCAL7
full_audit:priority = NOTICE
8<--

krb5.conf
8<--
[libdefaults]
default_realm = DOMAIN.LOCAL

[realms]
DOMAIN.LOCAL = {
# dc01 is FSMO server
kdc = dc01.domain.local
kdc = dc02.domain.local
admin_server = dc01.megasol.local
default_domain = domain.local
}

[domain_realm]
.domain.local = DOMAIN.LOCAL
domain.local = DOMAIN.LOCAL
8<--

the domain join ran without errors:

SAMBASERVER01:~# net ads join -U Administrator
Enter Administrator's password:
Using short domain name -- DOMAIN
Joined 'SAMBASERVER01' to realm 'domain.local'

kinit is contempt, too:

SAMBASERVER01:~# kinit -V Administrator
Password for administra...@domain.local:
Authenticated to Kerberos v5

I logged into DC01 using the domain administrator account:
I can connect to the samba server; no problems.

I logged into a windows7 client using a domain user:
I can connect to the samba server; no problems.

I logged into a windows7 client user local admin (no domain login):
I can't connect to the samba server

I use smbclient on SAMBASERVER01:
SAMBASERVER01:~# smbclient //SAMBASERVER01/SHARE -U Administrator
Enter Administrator's password:
session setup failed: NT code 0x0721

I use smbclient on SAMBASERVER01 again:
SAMBASERVER01:~# smbclient //SAMBASERVER01/IT -U Administrator
Enter Administrator password:
session setup failed: NT_STATUS_PIPE_DISCONNECTED

I use smbclient using Kerberos authentication:
SAMBASERVER01:~# smbclient //SAMBASERVER01/IT -k
OS=[Unix] Server=[Samba 3.2.5]
smb: \>
that works!

the smbd and nmbd logs are clean
but it seems that winbind ist struggling:

log.winbindd
8<--
[2010/06/07 10:17:59,  2] 
libsmb/cliconnect.c:cli_session_setup_kerberos(619)

  Doing kerberos session setup
[2010/06/07 10:17:59,  1] libsmb/clikrb5.c:ads_krb5_mk_req(680)
  ads_krb5_mk_req: krb5_get_credentials failed for dc...@domain (Cannot 
resolve network address for KDC in requested realm)
[2010/06/07 10:17:59,  1] 
libsmb/cliconnect.c:cli_session_setup_kerberos(626)
  cli_session_setup_kerberos: spnego_gen_negTokenTarg failed: Cannot 
resolve network address for KDC in requested realm

[2010/06/07 10:17:59,  1] winbindd/winbindd_util.c:trustdom_recv(260)
  Could not receive trustdoms
8<--

I'm at a loss here... can anyone help? Or point me into the right direction?

Cheers

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


[Samba] smbmount ignores noatime

2009-04-07 Thread Daniel Mueller

When mounting a Windows share within Linux the noatime option seems to
be ignored. I use the following command
mount -tsmbfs -ousername=user,noatime //192.168.0.12/eclipse /mnt/tmp

Each cat /mnt/tmp/testfile updates the last access time regardless if
noatime specified or not.

I'm running smbmount v2.0.7 on a old Suse production system, but I could
reproduce the same behaviour with a current Ubuntu system using
mount.cifs. So I assume I'm doing something wrong?! Any help in this
matter would be highly appreciated...

Thanks
Daniel

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


[Samba] Samba 3.0.6 & Krb5-1.3.4 problems

2004-09-13 Thread Daniel Mueller
Hello fellow Samba Administrators.
We've been serving data with samba2 to our company for 1 1/2 year now.
Now we want to go one step further: Samba 3 with ADS integration.
I've installed a test Linux box (2.6.8 Slackware 10.0) and installed the 
following software form source:

x Linux-PAM-0.77 (pain ./configure)
x openldap-2.2.15 (./configure --disable-slapd --disable-slurpd)
x acl-2.2.15 (plain ./configure & make install-dev)
x krb5-1.3.4 (./configure --prefix=/usr/local/kerberos
--without-krb4 --enable-dns --enable-dns-for-kdc --enable-dns-for-realm 
--enable-shared)

x samba-3.0.6 (./configure --prefix=/usr/local/samba --with-smbwrapper 
--with-dce-dfs
--with-ads --with-smbmount --with-pam --with-libsmbclient 
--with-acl-support --with-winbind
--with-krb5=/usr/local/kerberos --with-quotas --with-ldap)

Sofar so good. Since everything works as i expected it to work. i was 
able to join the samba
server to the ADS i can connect form a windows 2000 client to the 
shares. i can use the
ADS groups and users on the samba server (which is s god! :) ) 
and everything is fine.

but. I cant manage the permissions form a windows client... i get the 
"permission denied" message
each and every time i try to save changes i made to the permissions of a 
share...

i dont know if this has anything to do with the following error message 
i got in my log.smbd:

smbd/kerberos_verify.c:ads_keytab_verify_ticket(61)
ads_keytab_verify_ticket: krb5_kt_start_seq_get failed (No such file of 
directory)
smbd/sesssetup.c:reply_spnego_kerberos(265)
make_server_info_from_pw failed!

i get this messages like every time i connect to a samba share... and 
every time i do something to the share (touching files, folders etc.)

anyone have to same problem? help badly needed here...
thanks
Daniel
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba