Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] krb5.conf file in /var/lib/samba/smb_krb5; Samba 3..

 
   Linux (Home) -> Samba RSS
Next:  [Samba] UserPrincipalName with samba/winbind 3.2  
Author Message
Alex de Vaal

External


Since: Dec 18, 2007
Posts: 5



(Msg. 1) Posted: Wed Feb 27, 2008 1:30 pm
Post subject: [Samba] krb5.conf file in /var/lib/samba/smb_krb5; Samba 3.0.27a
Archived from groups: linux>samba (more info?)

Hello list,

I've upgraded from Samba 3.0.14a to 3.0.27a (Samba is a domain member of a
W2k3 native AD) and I see that in the /var/lib/samba/smb_krb5 directory a
krb5.conf file is created.
Is this krb5.conf file extracted from my original /etc/krb5.conf? Or is this
file created from the "password server =" entry in my smb.conf file?
My original /etc/krb5.conf contains the DC's in DNS name and the
krb5.conffile in /var/lib/samba/smb_krb5 contains DC's on IP address.

I noticed also that the krb5.conf file in /var/lib/samba/smb_krb5 is only
renewed if /var/lib/samba/gencache.tdb is deleted before winbind is
restarted and it also uses the DC that is configured as primary DC in Sites
and Services in the Active Directory.

Can anyone shed a light how this work?

Thnx,
Alex.

Some info:

/etc/samba/smb.conf
=======

password server = adm02.test.com, adm03.test.com


/etc/krb5.conf
==========

[libdefaults]
default_realm = TEST.COM

[realms]
TEST.COM = {
kdc = adm02.test.com:88
kdc = adm03.test.com:88
kdc = adm01.test.com:88


/etc/hosts
========

192.168.100.100 adm01.test.com
10.0.0.100 adm02.test.com
192.168.100.110 nhadm03.test.com


/var/lib/samba/smb_krb5/krb5.conf.TEST
=============================

[libdefaults]
default_realm = TEST.COM

[realms]
TEST.COM = {
kdc = 192.168.100.110
kdc = 10.0.0.100
}
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Eric Roseme

External


Since: Feb 27, 2008
Posts: 2



(Msg. 2) Posted: Wed Feb 27, 2008 6:10 pm
Post subject: Re: [Samba] krb5.conf file in /var/lib/samba/smb_krb5; Samba 3.0.27a [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I asked a co-worker who attended the Samba workshop last September to
pose the following question. The answer follows (maybe it will help):

Q1. Will the new (3.0.25b) krb5 code (that creates a
Samba-specific krb5.conf file) be documented somewhere?


A1. Samba does not have documentation about the Samba-specific
krb5.conf that is placed in locking directory. And also, after running
kinit to obtain Kerberos ticket, Samba stores the ticket into memory
tdb, probbaly gencache.tdb. But Samba doesn't provide a tool to allow
users to see which DC Samba is talking to. Currently, we can use klist
to see which domain is being used by Samba.

Obviously this does not answer your question about how it works, but it
might get you closer.

Eric Roseme


Alex de Vaal wrote:
> Hello list,
>
> I've upgraded from Samba 3.0.14a to 3.0.27a (Samba is a domain member of a
> W2k3 native AD) and I see that in the /var/lib/samba/smb_krb5 directory a
> krb5.conf file is created.
> Is this krb5.conf file extracted from my original /etc/krb5.conf? Or is this
> file created from the "password server =" entry in my smb.conf file?
> My original /etc/krb5.conf contains the DC's in DNS name and the
> krb5.conffile in /var/lib/samba/smb_krb5 contains DC's on IP address.
>
> I noticed also that the krb5.conf file in /var/lib/samba/smb_krb5 is only
> renewed if /var/lib/samba/gencache.tdb is deleted before winbind is
> restarted and it also uses the DC that is configured as primary DC in Sites
> and Services in the Active Directory.
>
> Can anyone shed a light how this work?
>
> Thnx,
> Alex.
>
> Some info:
>
> /etc/samba/smb.conf
> =======
>
> password server = adm02.test.com, adm03.test.com
>
>
> /etc/krb5.conf
> ==========
>
> [libdefaults]
> default_realm = TEST.COM
>
> [realms]
> TEST.COM = {
> kdc = adm02.test.com:88
> kdc = adm03.test.com:88
> kdc = adm01.test.com:88
>
>
> /etc/hosts
> ========
>
> 192.168.100.100 adm01.test.com
> 10.0.0.100 adm02.test.com
> 192.168.100.110 nhadm03.test.com
>
>
> /var/lib/samba/smb_krb5/krb5.conf.TEST
> =============================
>
> [libdefaults]
> default_realm = TEST.COM
>
> [realms]
> TEST.COM = {
> kdc = 192.168.100.110
> kdc = 10.0.0.100
> }
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Alex de Vaal

External


Since: Dec 18, 2007
Posts: 5



(Msg. 3) Posted: Thu Feb 28, 2008 9:00 am
Post subject: Re: [Samba] krb5.conf file in /var/lib/samba/smb_krb5; Samba 3.0.27a [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Eric,

Thnx for your answer, now I know I couldn't find anything about the
subject... Wink
Before I asked the question about the krb5.conf file in
/var/lib/samba/smb_krb5 I searched all Samba documentation and googled
around, but I didn't find an answer that satisfied me.
I already noticed that this file has a link with the gencache.tdb file, I
played around with this in my test environment (remove the files and start
the daemons and look what is in it with a binary editor).

I'd like to understand what the file does, because my Samba domain members
in the live environment have no DC's in the same IP net, they are all behind
routers. So I want to know how this works, before I use Samba 3.0.27a in my
live AD environment.

BTW; you can see with "netstat -na | grep 445" to which DC the Samba server
is talking to...

Regards,
Alex.



On Wed, Feb 27, 2008 at 5:52 PM, Eric Roseme <eroseme.TakeThisOut@emonster.rose.hp.com>
wrote:

> I asked a co-worker who attended the Samba workshop last September to
> pose the following question. The answer follows (maybe it will help):
>
> Q1. Will the new (3.0.25b) krb5 code (that creates a
> Samba-specific krb5.conf file) be documented somewhere?
>
>
> A1. Samba does not have documentation about the Samba-specific
> krb5.conf that is placed in locking directory. And also, after running
> kinit to obtain Kerberos ticket, Samba stores the ticket into memory
> tdb, probbaly gencache.tdb. But Samba doesn't provide a tool to allow
> users to see which DC Samba is talking to. Currently, we can use klist
> to see which domain is being used by Samba.
>
> Obviously this does not answer your question about how it works, but it
> might get you closer.
>
> Eric Roseme
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Eric Roseme

External


Since: Feb 27, 2008
Posts: 2



(Msg. 4) Posted: Thu Feb 28, 2008 5:40 pm
Post subject: Re: [Samba] krb5.conf file in /var/lib/samba/smb_krb5; Samba 3.0.27a [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Alex,

The reason that I was looking at this was because although I had MD5
configured in /etc/krb5.conf, Wireshark showed that the AS-REQ/REP,
TGS-REQ/REP, and the "SMB Session Setup AndX Request" and Response were
all in RC4. I could not figure out why until I found the Samba
krb5.conf. So it appears that Samba supersedes the /etc/krb5.conf
enctype and uses RC4.

Eric

Alex de Vaal wrote:
> Hello Eric,
>
> Thnx for your answer, now I know I couldn't find anything about the
> subject... Wink
> Before I asked the question about the krb5.conf file in
> /var/lib/samba/smb_krb5 I searched all Samba documentation and googled
> around, but I didn't find an answer that satisfied me.
> I already noticed that this file has a link with the gencache.tdb file, I
> played around with this in my test environment (remove the files and start
> the daemons and look what is in it with a binary editor).
>
> I'd like to understand what the file does, because my Samba domain members
> in the live environment have no DC's in the same IP net, they are all behind
> routers. So I want to know how this works, before I use Samba 3.0.27a in my
> live AD environment.
>
> BTW; you can see with "netstat -na | grep 445" to which DC the Samba server
> is talking to...
>
> Regards,
> Alex.
>
>
>
> On Wed, Feb 27, 2008 at 5:52 PM, Eric Roseme <eroseme.TakeThisOut@emonster.rose.hp.com>
> wrote:
>
>> I asked a co-worker who attended the Samba workshop last September to
>> pose the following question. The answer follows (maybe it will help):
>>
>> Q1. Will the new (3.0.25b) krb5 code (that creates a
>> Samba-specific krb5.conf file) be documented somewhere?
>>
>>
>> A1. Samba does not have documentation about the Samba-specific
>> krb5.conf that is placed in locking directory. And also, after running
>> kinit to obtain Kerberos ticket, Samba stores the ticket into memory
>> tdb, probbaly gencache.tdb. But Samba doesn't provide a tool to allow
>> users to see which DC Samba is talking to. Currently, we can use klist
>> to see which domain is being used by Samba.
>>
>> Obviously this does not answer your question about how it works, but it
>> might get you closer.
>>
>> Eric Roseme
>>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] krb5.conf "kpasswd protocol = SET_CHANGE" - Hello, I would like to know when do we need to specify "kpasswd protocol = SET_CHANGE" in krb5.com in the [realms] section when talking to windows AD domain. I usually don't use it and it works fine BUT I recently needed to use it since...

[Samba] freeRADIUS + krb5 + samba + AD - Hi, We are using freeRADIUS 1.1.6. + samba 3.0.1 + krb5-1.3.2 talk to active-directory(win2k3). Followed by: http://wiki.freeradius.org/FreeRADIUS_Active_Directory_Integration_HOWTO Now it can work. But there are multiple domains in..

[Samba] smb.conf setting for file permissions? - Hi, I have a very old version of samba on one of the boxes I'm not allowed to update. I have a request from a user group that all the group be allowed to edit a set of file. At the command line I 'chmod 666 $file' and all is well. I can edit and save th...

[Samba] How to inform all the daemons I have modified the .. - Hello, everyone I edit the lp_load() of the samba source that this fuction may modify the smb.conf sometimes. How can I let all the samba daemons know that? Restarting samba service may cause all link break up. Thanks! -- To..

[Samba] Samba Core dump when using AD groups on the Linux .. - Hi all, smbd -V: Version 3.0.23d-19.2-1179-SUSE-SL10.2 I'm seeing a core dump in /var/log/messages when trying to access the security tab from Windows when I have Active Directory users and groups assigned to the Linux file system. I can replicate..
       Linux (Home) -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact