Jump to content

Recommended Posts

Posted

I heard some people mention they used samba for their file servers seemlessly in their windows domains.

 

Just wondered if anyone can give me any tips, mainly on which security they use.

 

Is it best to try and incorporate active directory security with linux, or do you just use samba security?

 

Thanks.

Posted
I heard some people mention they used samba for their file servers seemlessly in their windows domains.

 

This thread might prove a useful addition to the wiki link mentioned above:

 

http://www.edugeek.net/forums/nix/48032-configuring-samba.html

 

We now have a half-dozen or so file servers running Samba. They all work very well, however I've come accross an issue trying to mount home directories from another Linux machine, as detailed at the end of that thread above. I couldn't get our LTSP server to log users on when using Samba authentication, so I switched to using Likewise-Open for AD integration. This works fine, but now I can't get the UID on the two machines to match up - I'll have to re-install the file server using Likewise-Open instead of Samba. This probably won't be an issue in your environment unless you;re using LTSP thin clients too, but you might want to use the RID backend for UID assignment just for a spot of future-proofing.

 

--

David Hicks

Posted

Exactly what dhicks said. The syntax for rid mapping is:

 

idmap uid = 70000-1000000

idmap gid = 70000-1000000

idmap backend = rid:”EXAMPLE=70000-1000000″

 

Where EXAMPLE is the short domain name. It will then use 70000 + the last four digits of the user's SID.

 

This is how I did it: Ubuntu 10.04 Active Directory Authentication | Run Level 3

 

A few other things I tweaked were the following settings:

 

winbind cache time = 60 <- default is 300, so if you add an AD user, it won't show up for 5 mins on the linux server.

 

see smb.conf

Posted

Thanks

 

I was trying to work through this:

https://help.ubuntu.com/community/Samba/Kerberos

 

But i fell at the first hurdle, which always seems to be the case with these linux tutorials.

 

kadmin -p admin/admin

 

Authenticating as principal admin/admin with password.

kadmin: Client not found in Kerberos database while initializing kadmin interface

 

I then proceded to spend rest of day looking at other tutorials that had me:

kadmin.local: listprincs

kadmin.local -q "addprinc admin/admin"

 

all sorts of stuff basically.

 

But am now going to have a look at this other one on notrainers.

 

Cheers

Posted
But i fell at the first hurdle, which always seems to be the case with these linux tutorials.

 

What Linux distribution are you using? I used Debian, and I'm pretty sure the latest version of Ubuntu should be the same: I typed

 

apt-get install samba smbclient winbind krb5-doc krb5-user krb5-config

 

at the command line, and it pretty much configured itself.

 

--

David Hicks

Posted

Hello,

 

Made some slight progress with getting samba and AD to work together.

 

When i restart machine, i have to restart some services after i ssh back into linux. krb5-admin-server and krb5-kdc

 

Then i have to rejoin net ads join -u Administrator

 

i then get wbinfo -g and wbinfo -u to work

 

I am not sure then waht to do.

 

I dont seem to be able to log into ssh using AD accounts, and i wasnt able to use a UNC path to samba with an AD accounts credentials either.

 

Whats my next step anyone.

 

Thanks.

Posted
i wasnt able to use a UNC path to samba with an AD accounts credentials

 

Do you have the line:

 

winbind use default domain = yes

 

in smb.conf?

 

--

David Hicks

Posted
Yes i have that line in there.

 

Hmm, odd - "wbinfo -u" brings up a list of all your domain users, obviously? Have you set the share permissions in smb.conf so that the user you're trying to log on to the Samaba server with actually has permissions to see the share?

 

--

David Hicks

Posted

hi

 

i may have configured the home directory section incorrectly, i used the samba homedirectory wiki, which mayb be a little convoluted for me.

 

Have you got a simple home example i could maybe use for testing.

 

Thanks.

Posted

Hi,

 

I still cannot log on with ssh or via unc \\servername\. not sure if i am using the correct format for a username though, tried username, [email protected], username+fqdn.co.uk, username+netbios, etc

 

I have another issue, it appears that if i leave the machine for a period of time i seem to lose my connection to AD.

 

I then receive:

[2010/06/25 10:26:44, 0] utils/net_ads.c:ads_startup(191)

ads_connect: Invalid credentials

 

after i try the sudo net ads join -U Administrator command.

 

 

 

I try and run

Posted

Hi

 

One more afterthought...

 

I seem to have problems with none of the users being able to access their My Documents at the moment, on the network.

 

Could this be related to the hacking around with linux and samba i have been doing?

 

Just rebooting the DC with my fingers crossed.

 

:-S

Posted
I seem to have problems with none of the users being able to access their My Documents at the moment, on the network.

 

Do all the times on your servers match up? Active Directory authentication will fail if the apparant time on different machines is too great (not sure how much, is it 10 minutes?).

 

--

David Hicks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...