<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">And the /var/lib/samba/winbindd_privileged directory is owned by winbindd with group winbindd_priv?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> freeradius-users-bounces+stefan.paetow=ja.net@lists.freeradius.org
 [mailto:freeradius-users-bounces+stefan.paetow=ja.net@lists.freeradius.org] <b>On Behalf Of
</b>nfischer@hush.com<br>
<b>Sent:</b> 18 August 2014 16:53<br>
<b>To:</b> freeradius-users@lists.freeradius.org<br>
<b>Subject:</b> freeRADIUS -> AD Auth<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi,<br>
after I fully crashed my freeRADIUS Server I have to ask again:<br>
<br>
It still fails with:<br>
# Executing group from file /etc/freeradius/sites-enabled/inner-tunnel<br>
+- entering group authenticate {...}<br>
[eap] Request found, released from the list<br>
[eap] EAP/mschapv2<br>
[eap] processing type mschapv2<br>
[mschapv2] # Executing group from file /etc/freeradius/sites-enabled/inner-tunnel<br>
[mschapv2] +- entering group MS-CHAP {...}<br>
[mschap] Creating challenge hash with username: hausmeister@OBLAN<br>
[mschap] Told to do MS-CHAPv2 for hausmeister@OBLAN with NT-Password<br>
[mschap]        expand: %{Stripped-User-Name} -> hausmeister<br>
[mschap]        expand: --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} -> --username=hausmeister<br>
[mschap] Creating challenge hash with username: hausmeister@OBLAN<br>
[mschap]        expand: %{mschap:Challenge} -> 01b99ad5745936be<br>
[mschap]        expand: --challenge=%{%{mschap:Challenge}:-00} -> --challenge=01b99ad5745936be<br>
[mschap]        expand: %{mschap:NT-Response} -> cfebe53922a2a18a8e0f423e8562a651148d2b18cd4fbc3e<br>
[mschap]        expand: --nt-response=%{%{mschap:NT-Response}:-00} -> --nt-<br>
<br>
response=cfebe53922a2a18a8e0f423e8562a651148d2b18cd4fbc3e<br>
Exec-Program output: Reading winbind reply failed! (0xc0000001)<br>
Exec-Program-Wait: plaintext: Reading winbind reply failed! (0xc0000001)<br>
Exec-Program: returned: 1<br>
[mschap] External script failed.<br>
[mschap] FAILED: MS-CHAP2-Response is incorrect<br>
++[mschap] returns reject<br>
<br>
so Im not sure why.<br>
I think its because hes not allowed to execute the ntlm or my mschap is cofigured wrong. (or both)<br>
<br>
I checked the users/groups:<br>
sambashare:x:111:haus-meister<br>
winbindd_priv:x:112:freerad<br>
freerad:x:113:freerad<br>
ssl-cert:x:114:freerad<br>
<br>
looks fine to me?<br>
<br>
So my NTLM_Auth string in the modules/mschap is:<br>
 ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
<br>
<br>
I allso tried a lot of other stuff nothing change.<br>
Hope you can help me again.<br>
<br>
<br>
-- <br>
Mit freundlichem Gruß<br>
Nicolas Fischer<br>
<br>
email: <a href="mailto:nfischer@hush.com">nfischer@hush.com</a><br>
jabber: <a href="mailto:jagger@jabber.ccc.de">jagger@jabber.ccc.de</a><br>
tel: 01573-0420888<br>
Skype: jagger64<br>
TOX: Just ask me :)<br>
<br>
PGP-Key:<br>
<a href="http://keyserver.ubuntu.com/pks/lookup?op=vindex&fingerprint=on&search=0xCF5E6AD15A5B6132">http://keyserver.ubuntu.com/pks/lookup?op=vindex&fingerprint=on&search=0xCF5E6AD15A5B6132</a><br>
If you sent me a PGP Crypted Mail I´ll be happy and will give you a free cookie :)</span><o:p></o:p></p>
</div>
<PRE>Janet(UK) is a trading name of Jisc Collections and Janet Limited, a 
not-for-profit company which is registered in England under No. 2881024 
and whose Registered Office is at Lumen House, Library Avenue,
Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
</PRE></body>
</html>