Nazaretyan's blog blog about everthing ….

26Oct/090

Lesson 1. Samba and AD

Once Samba has been installed on your system, you should edit the smb.conf file, and configure the [global] section to point to your NT server, including hostname and NT domain.

# workgroup = NT-Domain-Name
workgroup = MYDOMAIN
...
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = ads
# Use password server option only with security = server
password server = nt-server-hostname.company.com
...
realm = realm.company.com

You will also have to edit the /etc/krb5.conf file, to add an entry that points to the Active Directory Server

[realms]
...
realm.company.com = {
kdc = nt-server-hostname.company.com
}
...

Start the Samba and Kerberos servers, and as root join the domain:

$ net join -U Administrator

Enter the administrator password at the prompt.

Next, verify that a user in the domain can be authenticated:

$ wbinfo -a user%password

You should see a number of lines of text, followed by authentication succeeded. The next step is to try the same login with the ntlm_auth program, which is what FreeRADIUS will be using:

$ ntlm_auth --request-nt-key --domain=MYDOMAIN --username=user --password=password

If all goes well, you should see authentication succeeding (NT_STATUS_OK). You should also see the NT_KEY output, which is needed in order for FreeRADIUS to perform MS-CHAP authentication.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes