<div dir="ltr">Hi Matt<div><br><div>- CentOS : Did you copy ipasam.so and change your smb.conf accordingly? <span style="font-size:12.8000001907349px">sambaSamAccount is not needed anymore that way.</span></div><div><span style="font-size:12.8000001907349px">- Default IPA Way : won't work if your Windows is not part of a domain controller. </span><span style="font-size:12.8000001907349px">DOMAIN\username may work for some users using Windows 7 - not 8 nor 10 (it did for me but I was the only one at the office... quite useless)</span></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">This config may work on your CentOS (for the ipasam way):</span></div><div><span style="font-size:12.8000001907349px">workgroup = TEST</span></div><div><span style="font-size:12.8000001907349px">realm = <a href="http://TEST.NET" target="_blank">TEST.NET</a></span></div><div><span style="font-size:12.8000001907349px">kerberos method = dedicated keytab</span></div><div><span style="font-size:12.8000001907349px">dedicated keytab file = FILE:/<.....>/samba.keytab</span></div><div><span style="font-size:12.8000001907349px">create krb5 conf = no</span></div><div><span style="font-size:12.8000001907349px">security = user</span></div><div><span style="font-size:12.8000001907349px">encrypt passwords = true</span></div><div><span style="font-size:12.8000001907349px">passdb backend = ipasam:ldaps://<a href="http://youripa.test.net" target="_blank">youripa.test.net</a></span></div><div><span style="font-size:12.8000001907349px">ldapsam:trusted = yes</span></div><div><span style="font-size:12.8000001907349px">ldapsuffix = <a href="http://test.net" target="_blank">test.net</a></span></div><div><span style="font-size:12.8000001907349px">ldap user suffix = cn=users,cn=accounts</span></div><div><span style="font-size:12.8000001907349px">ldap group suffix = cn=groups,cn=accounts</span><span style="font-size:12.8000001907349px"><br></span></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div><font face="arial, helvetica, sans-serif"><div><span style="font-family:arial"><font face="arial, helvetica, sans-serif"><div>--</div><div><font color="#666666">Youenn Piolet</font></div><div><font size="1" color="#999999"><a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a></font></div><div style="font-size:large"><span style="font-size:small"><span style="font-family:arial"><div><font face="tahoma, sans-serif"><span style="font-family:arial,verdana,tahoma,sans-serif;font-size:11px"><span style="font-family:tahoma,sans-serif;font-size:small"><font color="#666666"><span style="color:rgb(142,142,142);font-family:arial,verdana,tahoma,sans-serif;font-size:11px"><em><br></em></span></font></span></span></font></div><font color="#8E8E8E" face="arial, verdana, tahoma, sans-serif"></font></span><font color="#8E8E8E" face="arial, verdana, tahoma, sans-serif"></font><font color="#8E8E8E" face="arial, verdana, tahoma, sans-serif"></font></span></div></font></span></div></font></div></div>
<br><div class="gmail_quote">2015-08-12 22:15 GMT+02:00 Matt . <span dir="ltr"><<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
OK the default IPA way works great actually when testing it as described here:<br>
<br>
<a href="http://www.freeipa.org/page/Howto/Integrating_a_Samba_File_Server_With_IPA" rel="noreferrer" target="_blank">http://www.freeipa.org/page/Howto/Integrating_a_Samba_File_Server_With_IPA</a><br>
<br>
On the samba server I can auth and see my share where I want to connect to.<br>
<br>
The issue is, on Windows I cannot auth, even when I do DOMAIN\username<br>
as username<br>
<br>
So, the IPA way should work.<br>
<br>
Any comments here ?<br>
<br>
Cheers,<br>
<br>
Matt<br>
<div><div><br>
2015-08-12 19:00 GMT+02:00 Matt . <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>>:<br>
> HI GUys,<br>
><br>
> I'm testing this out and I think I almost setup, this on a CentOS samba server.<br>
><br>
> I'm using the ipa-adtrust way of Youeen but it seems we still need to<br>
> add (objectclass=sambaSamAccount)) ?<br>
><br>
> Info is welcome!<br>
><br>
> I will report back when I have it working.<br>
><br>
> Thanks!<br>
><br>
> Matt<br>
><br>
> 2015-08-10 11:16 GMT+02:00 Christopher Lamb <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>> The next route I will try - is the one Youeen took, using ipa-adtrust<br>
>><br>
>><br>
>><br>
>> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>> To:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>> Date:   10.08.2015 10:03<br>
>> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth against IPA<br>
>><br>
>><br>
>><br>
>> Hi Chris,<br>
>><br>
>> Okay this is good to hear.<br>
>><br>
>> But don't we want a IPA managed Scheme ?<br>
>><br>
>> When I did a "ipa-adtrust-install --add-sids" it also wanted a local<br>
>> installed Samba and I wonder why.<br>
>><br>
>> Good that we make some progres on making it all clear.<br>
>><br>
>> Cheers,<br>
>><br>
>> Matt<br>
>><br>
>> 2015-08-10 6:12 GMT+02:00 Christopher Lamb <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>> ldapsam + the samba extensions, pretty much as described in the<br>
>> Techslaves<br>
>>> article. Once I have a draft for the wiki page, I will mail you.<br>
>>><br>
>>><br>
>>><br>
>>> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>> To:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>>             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>> Date:   <a href="tel:09.08.2015%2021" value="+33908201521" target="_blank">09.08.2015 21</a>:17<br>
>>> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth against IPA<br>
>>><br>
>>><br>
>>><br>
>>> Hi,<br>
>>><br>
>>> Yes I know about "anything" but which way did you use now ?<br>
>>><br>
>>><br>
>>><br>
>>> 2015-08-09 20:56 GMT+02:00 Christopher Lamb<br>
>> <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>> Hi Matt<br>
>>>><br>
>>>> I am on OEL 7.1. - so anything that works on that should be good for<br>
>> RHEL<br>
>>>> and Centos 7.x<br>
>>>><br>
>>>> I intend to add a how-to to the FreeIPA Wiki over the next few days. As<br>
>>> we<br>
>>>> have suggested earlier, we will likely end up with several, one for each<br>
>>> of<br>
>>>> the possible integration paths.<br>
>>>><br>
>>>> Chris<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>> To:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>>>             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>> Date:   <a href="tel:09.08.2015%2016" value="+33908201516" target="_blank">09.08.2015 16</a>:45<br>
>>>> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth against IPA<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Hi Chris,<br>
>>>><br>
>>>> This sounds great!<br>
>>>><br>
>>>> What are you using now, both CentOS ? So Samba and FreeIPA ?<br>
>>>><br>
>>>> Maybe it's good to explain which way you used now in steps too, so we<br>
>>>> can combine or create multiple howto's ?<br>
>>>><br>
>>>> At least we are going somewhere!<br>
>>>><br>
>>>> Thanks,<br>
>>>><br>
>>>> Matt<br>
>>>><br>
>>>> 2015-08-09 14:54 GMT+02:00 Christopher Lamb<br>
>>> <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>> Hi Matt<br>
>>>>><br>
>>>>> My test integration of FreeIPA 4.x and Samba 4.x with the "good old<br>
>>> Samba<br>
>>>>> Schema extensions) is up and working, almost flawlessly.<br>
>>>>><br>
>>>>> I can add users and groups via the FreeIPA CLI, and they get the<br>
>> correct<br>
>>>>> ObjectClasses / attributes required for Samba.<br>
>>>>><br>
>>>>> So far I have not yet bothered to try the extensions to the WebUI,<br>
>>>> because<br>
>>>>> it is currently giving me the classic "Your session has expired. Please<br>
>>>>> re-login." error which renders the WebUI useless.<br>
>>>>><br>
>>>>> The only problem I have so far encountered managing Samba / FreeIPA<br>
>>> users<br>
>>>>> via FreeIPA CLI commands is with the handling of the attribute<br>
>>>>> sambaPwdLastSet. This is the subject of an existing thread, also<br>
>> updated<br>
>>>>> today.<br>
>>>>><br>
>>>>> There is also an existing alternative to hacking group.py, using "Class<br>
>>>> of<br>
>>>>> Service" (Cos) documented in this thread from February 2015<br>
>>>>><br>
>>> <a href="https://www.redhat.com/archives/freeipa-users/2015-February/msg00172.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/freeipa-users/2015-February/msg00172.html</a><br>
>>>> .<br>
>>>>> I have not yet tried it, but it sounds reasonable.<br>
>>>>><br>
>>>>> Chris<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>> To:     Christopher Lamb/Switzerland/IBM@IBMCH<br>
>>>>> Cc:     "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>>, Youenn<br>
>>>>>             PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>><br>
>>>>> Date:   <a href="tel:06.08.2015%2016" value="+33608201516" target="_blank">06.08.2015 16</a>:19<br>
>>>>> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth against<br>
>> IPA<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Hi Chris,<br>
>>>>><br>
>>>>> OK, than we might create two different versions of the wiki, I think<br>
>>>>> this is nice.<br>
>>>>><br>
>>>>> I'm still figuring out why I get that:<br>
>>>>><br>
>>>>> IPA Error 4205: ObjectclassViolation<br>
>>>>><br>
>>>>> missing attribute "sambaGroupType" required by object class<br>
>>>>> "sambaGroupMapping"<br>
>>>>><br>
>>>>> Matt<br>
>>>>><br>
>>>>> 2015-08-06 16:09 GMT+02:00 Christopher Lamb<br>
>>>> <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>>> Hi Matt<br>
>>>>>><br>
>>>>>> As far as I can make out, there are at least 2 viable Samba / FreeIPA<br>
>>>>>> integration paths.<br>
>>>>>><br>
>>>>>> The route I took is suited where there is no Active Directory<br>
>> involved:<br>
>>>>> In<br>
>>>>>> my case all the Windows, OSX and Linux clients are islands that sit on<br>
>>>>> the<br>
>>>>>> same network.<br>
>>>>>><br>
>>>>>> The route that Youenn has taken (unless I have got completely the<br>
>> wrong<br>
>>>>> end<br>
>>>>>> of the stick) requires Active Directory in the architecture.<br>
>>>>>><br>
>>>>>> Chris<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>> To:     Youenn PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>><br>
>>>>>> Cc:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>>>>>             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>> Date:   <a href="tel:06.08.2015%2014" value="+33608201514" target="_blank">06.08.2015 14</a>:42<br>
>>>>>> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth against<br>
>>> IPA<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>> OK, this sounds already quite logical, but I'm still refering to the<br>
>>>>>> old howto we found earlier, does that one still apply somewhere or not<br>
>>>>>> at all ?<br>
>>>>>><br>
>>>>>> Thanks,<br>
>>>>>><br>
>>>>>> Matt<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> 2015-08-06 12:23 GMT+02:00 Youenn PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>>:<br>
>>>>>>> Hey guys,<br>
>>>>>>><br>
>>>>>>> I'll try to make a tutorial soon, sorry I'm quite in a rush these<br>
>>>>> days :)<br>
>>>>>>><br>
>>>>>>> General idea:<br>
>>>>>>><br>
>>>>>>> On FreeIPA (4.1)<br>
>>>>>>> - `ipa-adtrust-install --add-sids` (creates ipaNTsecurityidentifier<br>
>>>>>>> attribude, also known as SID)<br>
>>>>>>> - regenerate each user password to build ipaNTHash attribute, not<br>
>> here<br>
>>>>> by<br>
>>>>>>> default on users<br>
>>>>>>> - use your ldap browser to check ipaNTHash values are here on user<br>
>>>>>> objects<br>
>>>>>>> - create a CIFS service for your samba server<br>
>>>>>>> - Create user roles/permissions as described here:<br>
>>>>>>><br>
>>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>> <a href="http://freeipa-users.redhat.narkive.com/ez2uKpFS/authenticate-samba-3-or-4-with-freeipa" rel="noreferrer" target="_blank">http://freeipa-users.redhat.narkive.com/ez2uKpFS/authenticate-samba-3-or-4-with-freeipa</a><br>
>><br>
>>><br>
>>>><br>
>>>>><br>
>>>>>><br>
>>>>>>> so that CIFS service will be able to read ipaNTsecurityidentifier and<br>
>>>>>>> ipaNTHash attributes in LDAP (ACI)<br>
>>>>>>> - SCP ipasam.so module to your cifs server (this is the magic<br>
>> trick) :<br>
>>>>>> scp<br>
>>>>>>> /usr/lib64/samba/pdb/ipasam.so<br>
>>>>>>> root@samba-server.domain:/usr/lib64/samba/pdb/ You can also try to<br>
>>>>>> recompile<br>
>>>>>>> it.<br>
>>>>>>><br>
>>>>>>> On SAMBA Server side (CentOS 7...)<br>
>>>>>>> - Install server keytab file for CIFS<br>
>>>>>>> - check ipasam.so is here.<br>
>>>>>>> - check you can read password hash in LDAP with `ldapsearch -Y GSSAPI<br>
>>>>>>> uid=admin ipaNTHash` thanks to kerberos<br>
>>>>>>> - make your smb.conf following the linked thread and restart service<br>
>>>>>>><br>
>>>>>>> I don't know if it works in Ubuntu. I know sssd has evolved quickly<br>
>>> and<br>
>>>>>>> ipasam may use quite recent functionalities, the best is to just try.<br>
>>>>> You<br>
>>>>>>> can read in previous thread : "If you insist on Ubuntu you need to<br>
>> get<br>
>>>>>>> ipasam somewhere, most likely to compile it yourself".<br>
>>>>>>><br>
>>>>>>> Make sure your user has ipaNTHash attribute :)<br>
>>>>>>><br>
>>>>>>> You may want to debug authentication on samba server, I usually do<br>
>>>> this:<br>
>>>>>>> `tail -f /var/log/samba/log* | grep <username><br>
>>>>>>><br>
>>>>>>> Cheers<br>
>>>>>>> --<br>
>>>>>>> Youenn Piolet<br>
>>>>>>> <a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> 2015-08-05 17:40 GMT+02:00 Matt . <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>>:<br>
>>>>>>>><br>
>>>>>>>> Hi,<br>
>>>>>>>><br>
>>>>>>>> This sounds great to me too, but a howto would help to make it more<br>
>>>>>>>> clear about what you have done here. The thread confuses me a little<br>
>>>>>>>> bit.<br>
>>>>>>>><br>
>>>>>>>> Can you paste your commands so we can test out too and report back ?<br>
>>>>>>>><br>
>>>>>>>> Thanks!<br>
>>>>>>>><br>
>>>>>>>> Matt<br>
>>>>>>>><br>
>>>>>>>> 2015-08-05 15:18 GMT+02:00 Christopher Lamb<br>
>>>>>> <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>>>>> > Hi Youenn<br>
>>>>>>>> ><br>
>>>>>>>> > Good news that you have got an integration working<br>
>>>>>>>> ><br>
>>>>>>>> > Now you have got it going, and the solution is fresh in your mind,<br>
>>>>> how<br>
>>>>>>>> > about adding a How-to page on this solution to the FreeIPA wiki?<br>
>>>>>>>> ><br>
>>>>>>>> > Chris<br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> > From:   Youenn PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>><br>
>>>>>>>> > To:     "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> > Cc:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>>>>>>> >             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> > Date:   <a href="tel:05.08.2015%2014" value="+33508201514" target="_blank">05.08.2015 14</a>:51<br>
>>>>>>>> > Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth<br>
>>> against<br>
>>>>>> IPA<br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> > Hi guys,<br>
>>>>>>>> ><br>
>>>>>>>> > Thank you so much your previous answers.<br>
>>>>>>>> > I realised my SID were stored in ipaNTsecurityidentifier, thanks<br>
>> to<br>
>>>>>>>> > ipa-adtrust-install --add-sids<br>
>>>>>>>> ><br>
>>>>>>>> > I found an other way to configure smb here:<br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>> <a href="http://freeipa-users.redhat.narkive.com/ez2uKpFS/authenticate-samba-3-or-4-with-freeipa" rel="noreferrer" target="_blank">http://freeipa-users.redhat.narkive.com/ez2uKpFS/authenticate-samba-3-or-4-with-freeipa</a><br>
>><br>
>>><br>
>>>><br>
>>>>><br>
>>>>>><br>
>>>>>>>> > It works perfectly.<br>
>>>>>>>> ><br>
>>>>>>>> > I'm using module ipasam.so I have manually scp to the samba<br>
>> server,<br>
>>>>>>>> > Samba is set to use kerberos + ldapsam via this ipasam module.<br>
>>>>>>>> > Following the instructions, I created a user role allowing service<br>
>>>>>>>> > principal to read ipaNTHash value from the LDAP.<br>
>>>>>>>> > ipaNTHash are generated each time a user changes his password.<br>
>>>>>>>> > Authentication works perfectly on Windows 7, 8 and 10.<br>
>>>>>>>> ><br>
>>>>>>>> > For more details, the previously linked thread is quite clear.<br>
>>>>>>>> ><br>
>>>>>>>> > Cheers<br>
>>>>>>>> ><br>
>>>>>>>> > --<br>
>>>>>>>> > Youenn Piolet<br>
>>>>>>>> > <a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> > 2015-08-05 11:10 GMT+02:00 Matt . <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>>:<br>
>>>>>>>> >   Hi Chris.<br>
>>>>>>>> ><br>
>>>>>>>> >   Yes, Apache Studio did that but I was not sure why it complained<br>
>>>> it<br>
>>>>>>>> >   was "already" there.<br>
>>>>>>>> ><br>
>>>>>>>> >   I'm still getting:<br>
>>>>>>>> ><br>
>>>>>>>> >   IPA Error 4205: ObjectclassViolation<br>
>>>>>>>> ><br>
>>>>>>>> >   missing attribute "sambaGroupType" required by object class<br>
>>>>>>>> >   "sambaGroupMapping"<br>
>>>>>>>> ><br>
>>>>>>>> >   When adding a user.<br>
>>>>>>>> ><br>
>>>>>>>> >   I also see "class" as fielname under my "Last name", this is not<br>
>>>> OK<br>
>>>>>>>> > also.<br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> >   We sure need to make some howto, I think we can nail this<br>
>> down :)<br>
>>>>>>>> ><br>
>>>>>>>> >   Thanks for the heads up!<br>
>>>>>>>> ><br>
>>>>>>>> >   Matthijs<br>
>>>>>>>> ><br>
>>>>>>>> >   2015-08-05 7:51 GMT+02:00 Christopher Lamb<br>
>>>>>>>> > <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>>>>> >   > Hi Matt<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > If I use Apache Directory Studio to add an attribute<br>
>>>>>> ipaCustomFields<br>
>>>>>>>> > to<br>
>>>>>>>> >   > cn=ipaConfig,cn=etc, the operation it performs is a modify, as<br>
>>>>>> shown<br>
>>>>>>>> >   below:<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > #!RESULT OK<br>
>>>>>>>> >   > #!CONNECTION ldap://xxx-ldap2.my.silly.example.com:yyy<br>
>>>>>>>> >   > #!DATE 2015-08-05T05:45:04.608<br>
>>>>>>>> >   > dn: cn=ipaConfig,cn=etc,dc=my,dc=silly,dc=example,dc=com<br>
>>>>>>>> >   > changetype: modify<br>
>>>>>>>> >   > add: ipaCustomFields<br>
>>>>>>>> >   > ipaCustomFields: Samba Group Type,sambagrouptype,true<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > After that I then have a visible attribute ipaCustomFields as<br>
>>>>>>>> > expected.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > When adding the attribute, the wizard offered me<br>
>>>>> "ipaCustomFields"<br>
>>>>>>>> > as<br>
>>>>>>>> >   > attribute type in a drop down list.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Once we get this cracked, we really must write a how-to on the<br>
>>>>>>>> > FreeIPA<br>
>>>>>>>> >   > Wiki.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Chris<br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > From:   Christopher Lamb/Switzerland/IBM@IBMCH<br>
>>>>>>>> >   > To:     "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> >   > Cc:     "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>" <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> >   > Date:   <a href="tel:05.08.2015%2007" value="+33508201507" target="_blank">05.08.2015 07</a>:31<br>
>>>>>>>> >   > Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth<br>
>>>>>> against<br>
>>>>>>>> >   IPA<br>
>>>>>>>> >   > Sent by:        <a href="mailto:freeipa-users-bounces@redhat.com" target="_blank">freeipa-users-bounces@redhat.com</a><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Hi Matt<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > I also got the same result at that step, but can see nothing<br>
>> in<br>
>>>>>>>> > Apache<br>
>>>>>>>> >   > Directory Studio.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > As I am using existing Samba / FreeIPA groups migrated across,<br>
>>>>>> they<br>
>>>>>>>> >   > probably were migrated with all the required attributes.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Looking more closely at that LDIF: I wonder should it not be:<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > ldapmodify -Y GSSAPI <<EOF<br>
>>>>>>>> >   > dn: cn=ipaconfig,cn=etc,dc=domain,dc=tld<br>
>>>>>>>> >   > changetype: modify<br>
>>>>>>>> >   > add: ipaCustomFields<br>
>>>>>>>> >   > ipaCustomFields: "Samba Group Type,sambagrouptype,true"<br>
>>>>>>>> >   > EOF<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > i.e. changetype: modify, instead of changetype add ?<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > I don't want to play around with my prod directory - I will<br>
>>>> setup<br>
>>>>>> an<br>
>>>>>>>> > EL<br>
>>>>>>>> >   7.1<br>
>>>>>>>> >   > VM and install FreeIPA 4.x and Samba 4.x That will allow me to<br>
>>>>>> play<br>
>>>>>>>> >   around<br>
>>>>>>>> >   > more destructively.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Chris<br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > From:            "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> >   > To:              Christopher Lamb/Switzerland/IBM@IBMCH<br>
>>>>>>>> >   > Cc:              Youenn PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>>, "<br>
>>>>>>>> >   <a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>"<br>
>>>>>>>> >   >             <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> >   > Date:            <a href="tel:05.08.2015%2001" value="+33508201501" target="_blank">05.08.2015 01</a>:01<br>
>>>>>>>> >   > Subject:                 Re: [Freeipa-users] Ubuntu Samba<br>
>>> Server<br>
>>>>>>>> > Auth<br>
>>>>>>>> >   against IPA<br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Hi Chris,<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > I'm at the right path, but my issue is that:<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > ldapmodify -Y GSSAPI <<EOF<br>
>>>>>>>> >   > dn: cn=ipaconfig,cn=etc,dc=domain,dc=tld<br>
>>>>>>>> >   > changetype: add<br>
>>>>>>>> >   > add: ipaCustomFields<br>
>>>>>>>> >   > ipaCustomFields: "Samba Group Type,sambagrouptype,true"<br>
>>>>>>>> >   > EOF<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Does say it exists, my ldap explorer doesn't show it, and when<br>
>>> I<br>
>>>>>> add<br>
>>>>>>>> >   > it manually as an attribute it still fails when I add a user<br>
>> on<br>
>>>>>> this<br>
>>>>>>>> >   > sambagrouptype as it's needed by the other attributes<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > So that is my issue I think so far.<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Any clue about that ?<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > No problem "you don't know something or are no guru" we are<br>
>> all<br>
>>>>>>>> >   > learning! :)<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Cheers,<br>
>>>>>>>> >   ><br>
>>>>>>>> >   > Matt<br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > 2015-08-04 21:22 GMT+02:00 Christopher Lamb <<br>
>>>>>>>> >   <a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>>>>> >   >> Hi Matt, Youeen<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> Just to set the background properly, I did not invent this<br>
>>>>>> process.<br>
>>>>>>>> > I<br>
>>>>>>>> >   > know<br>
>>>>>>>> >   >> only a little about FreeIPA, and almost nothing about Samba,<br>
>>>> but<br>
>>>>>> I<br>
>>>>>>>> >   guess<br>
>>>>>>>> >   > I<br>
>>>>>>>> >   >> was lucky enough to get the integration working on a Sunday<br>
>>>>>>>> > afternoon.<br>
>>>>>>>> >   (I<br>
>>>>>>>> >   >> did have an older FreeIPA 3.x / Samba 3.x installation as a<br>
>>>>>>>> >   reference).<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> It sounds like we need to step back, and look at the test<br>
>> user<br>
>>>>>> and<br>
>>>>>>>> >   group<br>
>>>>>>>> >   > in<br>
>>>>>>>> >   >> the FreeIPA LDAP tree. I find using an LDAP browser makes<br>
>> this<br>
>>>>>> much<br>
>>>>>>>> >   > easier.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> My FreeIPA / Samba Users have the following Samba extensions<br>
>>> in<br>
>>>>>>>> >   FreeIPA<br>
>>>>>>>> >   >> (cn=accounts, cn=users):<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> * objectClass: sambasamaccount<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> * Attributes: sambaSID, sambaNTPassword, sambaPwdLastSet<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> My FreeIPA / Samba Groups have the following Samba extensions<br>
>>>> in<br>
>>>>>>>> >   FreeIPA<br>
>>>>>>>> >   >> (cn=accounts, cn=groups):<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> * objectClass: sambaGroupMapping<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> * Attributes: sambaGroupType, sambaSID<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> The Users must belong to one or more of the samba groups that<br>
>>>>> you<br>
>>>>>>>> > have<br>
>>>>>>>> >   >> setup.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> If you don't have something similar to the above (which<br>
>> sounds<br>
>>>>>> like<br>
>>>>>>>> > it<br>
>>>>>>>> >   is<br>
>>>>>>>> >   >> the case), then something went wrong applying the extensions.<br>
>>>> It<br>
>>>>>>>> > would<br>
>>>>>>>> >   be<br>
>>>>>>>> >   >> worth testing comparing a new user / group created post<br>
>> adding<br>
>>>>>> the<br>
>>>>>>>> >   >> extensions to a previous existing user.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> i.e.<br>
>>>>>>>> >   >> are the extensions missing on existing users / groups?<br>
>>>>>>>> >   >> are the extensions missing on new users / groups?<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> Cheers<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> Chris<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> From:   Youenn PIOLET <<a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a>><br>
>>>>>>>> >   >> To:     "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> >   >> Cc:     Christopher Lamb/Switzerland/IBM@IBMCH,<br>
>>>>>>>> >   >>             "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>"<br>
>>>>> <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> >   >> Date:   <a href="tel:04.08.2015%2018" value="+33408201518" target="_blank">04.08.2015 18</a>:56<br>
>>>>>>>> >   >> Subject:        Re: [Freeipa-users] Ubuntu Samba Server Auth<br>
>>>>>>>> > against<br>
>>>>>>>> >   IPA<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> Hi there,<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> I have difficulties to follow you at this point :)<br>
>>>>>>>> >   >> Here is what I've done and what I've understood:<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> ## SMB Side<br>
>>>>>>>> >   >> - Testparm OK<br>
>>>>>>>> >   >> - I've got the same NT_STATUS_NO_SUCH_USER when I try to<br>
>>>>> connect.<br>
>>>>>>>> >   >> - pdbedit -Lv output is all successfull but I can see there<br>
>> is<br>
>>>> a<br>
>>>>>>>> >   filter :<br>
>>>>>>>> >   >> (&(uid=*)(objectclass=sambaSamAccount). In LDAP, the users<br>
>>>> don't<br>
>>>>>>>> > have<br>
>>>>>>>> >   >> sambaSamAccount.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> ## LDAP / FreeIPA side<br>
>>>>>>>> >   >> - Since SMB server uses LDAP, I did ipa-adtrust-install on my<br>
>>>>>>>> > FreeIPA<br>
>>>>>>>> >   >> server to get samba LDAP extensions.<br>
>>>>>>>> >   >> - I can see samba classes exist in LDAP but are not used on<br>
>> my<br>
>>>>>>>> > group<br>
>>>>>>>> >   >> objects nor my user objects<br>
>>>>>>>> >   >> - I have add sambaSamAccount in FreeIPA default user classes,<br>
>>>>>>>> >   >> and sambaGroupMapping to default group classes. In that state<br>
>>> I<br>
>>>>>>>> > can't<br>
>>>>>>>> >   >> create user nor groups anymore, as new samba attributes are<br>
>>>>>> needed<br>
>>>>>>>> > for<br>
>>>>>>>> >   >> instantiation.<br>
>>>>>>>> >   >> - I have add in etc ipaCustomFields: 'Samba Group<br>
>>>>>>>> >   > Type,sambagrouptype,true'<br>
>>>>>>>> >   >> but I don't get what it does.<br>
>>>>>>>> >   >> - I tried to add the samba.js plugin. It works, and adds the<br>
>>>>>>>> > "local"<br>
>>>>>>>> >   > option<br>
>>>>>>>> >   >> when creating a group in FreeIPA, supposed to set<br>
>>>> sambagrouptype<br>
>>>>>> to<br>
>>>>>>>> > 4<br>
>>>>>>>> >   or<br>
>>>>>>>> >   > 2<br>
>>>>>>>> >   >> (domain). It doesn't work and tells that sambagrouptype<br>
>>>>> attribute<br>
>>>>>>>> >   doesn't<br>
>>>>>>>> >   >> exist (but it should now I put sambaGroupType class by<br>
>>>>>> default...)<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> ## Questions<br>
>>>>>>>> >   >> 0) Can I ask samba not to search sambaSamAccount and use<br>
>>> unix /<br>
>>>>>>>> > posix<br>
>>>>>>>> >   >> instead? I guess no.<br>
>>>>>>>> >   >> 1) How to generate the user/group SIDs ? They are requested<br>
>> to<br>
>>>>>> add<br>
>>>>>>>> >   >> sambaSamAccount classes.<br>
>>>>>>>> >   >> This article doesn't seem relevant since we don't use domain<br>
>>>>>>>> >   controller<br>
>>>>>>>> >   >><br>
>>>>>>>> >   ><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>> <a href="http://docs.fedoraproject.org/en-US/Fedora/17/html/FreeIPA_Guide/cifs.html" rel="noreferrer" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/17/html/FreeIPA_Guide/cifs.html</a><br>
>>>>>>>> ><br>
>>>>>>>> >   >> and netgetlocalsid returns an error.<br>
>>>>>>>> >   >> 2) How to fix samba.js plugin?<br>
>>>>>>>> >   >> 3) I guess an equivalent of samba.js is needed for user<br>
>>>>> creation,<br>
>>>>>>>> >   where<br>
>>>>>>>> >   > can<br>
>>>>>>>> >   >> I find it?<br>
>>>>>>>> >   >> 4) Is your setup working with Windows 8 / Windows 10 and not<br>
>>>>> only<br>
>>>>>>>> >   Windows<br>
>>>>>>>> >   >> 7?<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> Thanks a lot for your previous and future answers<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> --<br>
>>>>>>>> >   >> Youenn Piolet<br>
>>>>>>>> >   >> <a href="mailto:piolet.y@gmail.com" target="_blank">piolet.y@gmail.com</a><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >> 2015-08-04 17:55 GMT+02:00 Matt . <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>>:<br>
>>>>>>>> >   >>   Hi,<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   Yes, log is anonymised.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   It's strange, my user doesn't have a SambaPwdLastSet, also<br>
>>>>> when<br>
>>>>>> I<br>
>>>>>>>> >   >>   change it's password it doesn't get it in ldap.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   There must be something going wrong I guess.<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   Matt<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   2015-08-04 17:45 GMT+02:00 Christopher Lamb<br>
>>>>>>>> >   > <<a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a><br>
>>>>>>>> >   >>   >:<br>
>>>>>>>> >   >>   > Hi Matt<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > I assume [username] is a real username, identical to that<br>
>>>> in<br>
>>>>>>>> > the<br>
>>>>>>>> >   >>   FreeIPA<br>
>>>>>>>> >   >>   > cn=accounts, cn=users tree? (i.e. you anonymised the log<br>
>>>>>>>> > extract).<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > You user should be a member of the appropriate samba<br>
>>> groups<br>
>>>>>>>> > that<br>
>>>>>>>> >   you<br>
>>>>>>>> >   >>   setup<br>
>>>>>>>> >   >>   > in FreeIPA.<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > You should check that the user attribute SambaPwdLastSet<br>
>>> is<br>
>>>>>> set<br>
>>>>>>>> > to<br>
>>>>>>>> >   a<br>
>>>>>>>> >   >>   > positive value (e.g. 1). If not you get an error in the<br>
>>>>> Samba<br>
>>>>>>>> > logs<br>
>>>>>>>> >   -<br>
>>>>>>>> >   > I<br>
>>>>>>>> >   >>   > would need to play around again with a test user to find<br>
>>>> out<br>
>>>>>>>> > the<br>
>>>>>>>> >   > exact<br>
>>>>>>>> >   >>   > error.<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > I don't understand what you mean about syncing the users<br>
>>>>>> local,<br>
>>>>>>>> >   but<br>
>>>>>>>> >   > we<br>
>>>>>>>> >   >>   did<br>
>>>>>>>> >   >>   > not need to do anything like that.<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > Chris<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> >   >>   > To:     Christopher Lamb/Switzerland/IBM@IBMCH<br>
>>>>>>>> >   >>   > Cc:     "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>"<br>
>>>>> <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> >   >>   > Date:   <a href="tel:04.08.2015%2015" value="+33408201515" target="_blank">04.08.2015 15</a>:33<br>
>>>>>>>> >   >>   > Subject:        Re: [Freeipa-users] Ubuntu Samba Server<br>
>>>> Auth<br>
>>>>>>>> >   against<br>
>>>>>>>> >   >>   IPA<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > Hi Chris,<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > A puppet run added another passdb backend, that was<br>
>>> causing<br>
>>>>>> my<br>
>>>>>>>> >   issue.<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > What I still experience is:<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > [2015/08/04 15:29:45.477783,  3]<br>
>>>>>>>> >   >>   > ../source3/auth/check_samsec.c:399(check_sam_security)<br>
>>>>>>>> >   >>   >   check_sam_security: Couldn't find user 'username' in<br>
>>>>>> passdb.<br>
>>>>>>>> >   >>   > [2015/08/04 15:29:45.478026,  2]<br>
>>>>>>>> >   >>   > ../source3/auth/auth.c:288(auth_check_ntlm_password)<br>
>>>>>>>> >   >>   >   check_ntlm_password:  Authentication for user<br>
>> [username]<br>
>>>>> -><br>
>>>>>>>> >   >>   > [username] FAILED with error NT_STATUS_NO_SUCH_USER<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > I also wonder if I shall still sync the users local, or<br>
>> is<br>
>>>>> it<br>
>>>>>>>> >   > needed ?<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > Thanks again,<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > Matt<br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   > 2015-08-04 14:16 GMT+02:00 Christopher Lamb <<br>
>>>>>>>> >   >>   <a href="mailto:christopher.lamb@ch.ibm.com" target="_blank">christopher.lamb@ch.ibm.com</a>>:<br>
>>>>>>>> >   >>   >> Hi Matt<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> From our smb.conf file:<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> [global]<br>
>>>>>>>> >   >>   >>    security = user<br>
>>>>>>>> >   >>   >>    passdb backend =<br>
>>>>>>>> > ldapsam:ldap://<a href="http://xxx-ldap2.my.silly.example.com" rel="noreferrer" target="_blank">xxx-ldap2.my.silly.example.com</a><br>
>>>>>>>> >   >>   >>    ldap suffix = dc=my,dc=silly,dc=example,dc=com<br>
>>>>>>>> >   >>   >>    ldap admin dn = cn=Directory Manager<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> So yes, we use Directory Manager, it works for us. I<br>
>> have<br>
>>>>>> not<br>
>>>>>>>> >   tried<br>
>>>>>>>> >   >>   with<br>
>>>>>>>> >   >>   > a<br>
>>>>>>>> >   >>   >> less powerful user, but it is conceivable that a lesser<br>
>>>>> user<br>
>>>>>>>> > may<br>
>>>>>>>> >   not<br>
>>>>>>>> >   >>   see<br>
>>>>>>>> >   >>   >> all the required attributes, resulting in "no such user"<br>
>>>>>>>> > errors.<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> Chris<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> From:   "Matt ." <<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>><br>
>>>>>>>> >   >>   >> To:     Christopher Lamb/Switzerland/IBM@IBMCH<br>
>>>>>>>> >   >>   >> Cc:     "<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>"<br>
>>>>>> <<a href="mailto:freeipa-users@redhat.com" target="_blank">freeipa-users@redhat.com</a>><br>
>>>>>>>> >   >>   >> Date:   <a href="tel:04.08.2015%2013" value="+33408201513" target="_blank">04.08.2015 13</a>:32<br>
>>>>>>>> >   >>   >> Subject:        Re: [Freeipa-users] Ubuntu Samba Server<br>
>>>>> Auth<br>
>>>>>>>> >   against<br>
>>>>>>>> >   >>   IPA<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> Hi Chris,<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> Thanks for the heads up, indeed local is 4 I see now<br>
>> when<br>
>>>> I<br>
>>>>>>>> > add a<br>
>>>>>>>> >   >>   >> group from the GUI, great thanks!<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> But do you use Directory Manager as ldap admin user or<br>
>>>> some<br>
>>>>>>>> > other<br>
>>>>>>>> >   >>   >> admin account ?<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> I'm not sure id DM is needed and it should get that deep<br>
>>>>>> into<br>
>>>>>>>> >   IPA.<br>
>>>>>>>> >   >>   >> Also when starting samba it cannot find "such user" as<br>
>>>> that<br>
>>>>>>>> >   sounds<br>
>>>>>>>> >   >>   >> quite known as it has no UID.<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> From your config I see you use DM, this should work ?<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> Thanks!<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >> Matt<br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   >><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >>   ><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >>   --<br>
>>>>>>>> >   >>   Manage your subscription for the Freeipa-users mailing<br>
>> list:<br>
>>>>>>>> >   >>   <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>> >   >>   Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   >><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   > --<br>
>>>>>>>> >   > Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>> >   > <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>> >   > Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> >   ><br>
>>>>>>>> ><br>
>>>>>>>> >   --<br>
>>>>>>>> >   Manage your subscription for the Freeipa-users mailing list:<br>
>>>>>>>> >   <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>>>>>>>> >   Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>>> ><br>
>>>>>>><br>
>>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
>><br>
</div></div></blockquote></div><br></div></div>