<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=koi8-r">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 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";
        mso-fareast-language:EN-US;}
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-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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="RU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello everyone.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We have a IPA 3 and AD domain trust.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Users from AD successfully logs on to linux servers via ssh and hbac rules works fine with external groups. But not a sudo rules.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When rule defines as ‘who’ IPA users rule works well. If it is defines external group for corresponding AD group which is AD user member of, this user gets
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="mailto:user@ad.com">user@ad.com</a> is not allowed to run sudo on host.com.  This incident will be reported.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In debug there is a strings<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(Mon Mar 30 13:54:00 2015) [sssd[sudo]] [sysdb_search_group_by_gid] (0x0400): No such entry<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(Mon Mar 30 13:54:00 2015) [sssd[sudo]] [sudosrv_get_sudorules_query_cache] (0x0200): Searching sysdb with [(&(objectClass=sudoRule)(|(sudoUser=ALL)(name=defaults)(sudoUser=user@ad.com)(<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">sudoUser=#<span style="color:red">xxxxxxxxxx</span>)(sudoUser=%<span style="color:red">....cuted.......</span>(sudoUser<span style="color:red">=%....cuted.....</span>)(sudoUser=+*))(&(dataExpireTimestamp<=1427702040)))]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(Mon Mar 30 13:54:00 2015) [sssd[sudo]] [sudosrv_get_sudorules_query_cache] (0x0020): Error looking up SUDO rules(Mon Mar 30 13:54:00 2015) [sssd[sudo]] [sudosrv_get_rules] (0x0020): Unable to retr<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ieve expired sudo rules [5]: Input/output error<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve seen a number of closed bugs with similar error message, but at last on this RHEL 6.6 server sssd is fully updated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt">And sorry for the huge underlined message, it is generated automatically and I have no rights to avoid it in my mails
</span><span lang="EN-US" style="font-size:8.0pt;font-family:Wingdings">L</span><span lang="EN-US" style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">With best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">Alexander Frolushkin,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">Senior engineer in system administration
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">and database management
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">MegaFon, Siberian branch<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">http://english.corp.megafon.ru/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">Cell
</span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU"> +79232508764<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU">Phone +79232507764</span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial Narrow","sans-serif";mso-fareast-language:RU"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Информация в этом сообщении предназначена исключительно для конкретных лиц, которым она адресована. В сообщении может содержаться конфиденциальная информация, которая не может быть раскрыта или использована кем-либо, кроме адресатов. Если вы не адресат этого
 сообщения, то использование, переадресация, копирование или распространение содержания сообщения или его части незаконно и запрещено. Если Вы получили это сообщение ошибочно, пожалуйста, незамедлительно сообщите отправителю об этом и удалите со всем содержимым
 само сообщение и любые возможные его копии и приложения.<br>
<br>
The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. The contents may not be disclosed
 or used by anyone other than the addressee. If you are not the intended recipient(s), any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you have received this communication
 in error please notify us immediately by responding to this email and then delete the e-mail and all attachments and any copies thereof.<br>
<br>
(c)20mf50<br>
</font>
</body>
</html>