<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>I've been following the FreeRadius Deployment guide http://deployingradius.com/documents/configuration/active_directory.html<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>The following software is installed on a Centos 6 VM:<o:p></o:p></p><p class=MsoPlainText>- Samba 3.5.6, Freeradius 2.1.10, wpa_supplicant-0.7.3, gcc v4.4.4-13, openssl, winbind.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I successfully performed basic configuration tests with the ‘eapol_test’ command for:<o:p></o:p></p><p class=MsoPlainText>- PAP, EAP, EAP-TLS, EAP-TTLS, EAP-MD5 & EAP-MSCHAPv5.<o:p></o:p></p><p class=MsoPlainText>I’ve created production certificates & successfully tested for the above protocols.<o:p></o:p></p><p class=MsoPlainText>Installed Kerberos 1.8.2 & tested that successfully.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I've edited /etc/krb5.conf, as follows:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[logging]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> default = FILE:/var/log/krb5libs.log<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> kdc = FILE:/var/log/krb5kdc.log<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> admin_server = FILE:/var/log/kadmind.log<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[libdefaults]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> default_realm = CAMPUS.ADS.UWE.AC.UK<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dns_lookup_realm = false<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> dns_lookup_kdc = false<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> ticket_lifetime = 24h<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> renew_lifetime = 7d<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> forwardable = true<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[realms]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> CAMPUS.ADS.UWE.AC.UK = {<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> kdc = campus.ads.uwe.ac.uk<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> admin_server = radius.uwe.ac.uk<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> default_domain = CAMPUS.ADS.UWE.AC.UK<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> }<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[domain_realm]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> .campus.ads.uwe.ac.uk = CAMPUS.ADS.UWE.AC.UK<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> campus.ads.uwe.ac.uk = CAMPUS.ADS.UWE.AC.UK<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I've also edited /etc/samba/smb.conf (comments & blank lines excluded):<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[global]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> workgroup = CAMPUS<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> server string = Samba Server Version %v<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> log file = /var/log/samba/log.%m<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> max log size = 50<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> security = ads<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> passdb backend = tdbsam<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> realm = campus.ads.uwe.ac.uk<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> password server = campus.ads.uwe.ac.uk<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> load printers = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> cups options = raw<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> winbind separator = +<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> idmap uid = 10000-20000<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> idmap gid = 10000-20000<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> winbind enum users = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> winbind enum groups = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> template homedir = /home/%D/%U<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> template shell = /bin/rbash<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> client use spnego = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> client ntlmv2 auth = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> encrypt passwords = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> winbind use default domain = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> restrict anonymous = 2<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> domain master = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> local master = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> preferred master = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> os level = 0<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[homes]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> comment = Home Directories<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> browseable = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> writable = yes<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>[printers]<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> comment = All Printers<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> path = /var/spool/samba<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> browseable = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> guest ok = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> writable = no<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'> printable = yes<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I then run 'net join -U USERNAME' and get:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Unable to find a suitable server for domain CAMPUS<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Unable to find a suitable server for domain CAMPUS</span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Running 'wbinfo -a USERNAME%PASSWORD' returns:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-family:"Courier New"'>plaintext password authentication failed<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Could not authenticate user USERNAME%PASSWORD with plaintext password<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>challenge/response password authentication failed<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>error code was NT_STATUS_NO_LOGON_SERVERS (0xc000005e)<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>error messsage was: No logon servers<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Could not authenticate user USERNAME with challenge/response<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Can anyone tell me what I've done wrong?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Thanks<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Martin.<o:p></o:p></p></div></body></html>