<div dir="ltr">Unfortuneately im tied to current debian stable in this setup and backporting sssd does not seem possible. Thanx Steve.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 2, 2014 at 10:44 AM, steve <span dir="ltr"><<a href="mailto:steve@steve-ss.com" target="_blank">steve@steve-ss.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2014-05-02 at 10:38 +0200, Jakub Hrozek wrote:<br>
<div><div class="h5">> On Fri, May 02, 2014 at 10:32:10AM +0200, steve wrote:<br>
> > On Fri, 2014-05-02 at 08:47 +0200, Paul Liljenberg wrote:<br>
> > ><br>
> > ><br>
> > > >On Wed, Apr 23, 2014 at 08:10:47AM +0200, Paul Liljenberg wrote:<br>
> > > >> Notice: I sent this email to the list using another mail address, which i<br>
> > > >> believe whas not verified properly. If this emali is properly sent to the<br>
> > > >> list you can disregard moderating the message.<br>
> > > >><br>
> > > >> Hello<br>
> > > >><br>
> > > >> Im setting up a single signon solution for about 1200 servers. The<br>
> > > >> situation as it seems is that we are setting up all users in a windows 2008<br>
> > > >> r2 active directory, adding proper unix permissions. A user with proper<br>
> > > >> priveliges to read active directory is being used by sssd to read which<br>
> > > >> users is allowed in and not. If the users does not have a home directory<br>
> > > >> they are being created automatically. So whats the issue here? Access to<br>
> > > >> the system does not happen instantanely and i believe its because sssd is<br>
> > > >> polling active directory every 120 seconds. It seems as if it has issues<br>
> > > >> remaining its state and it is just as if it would loose its local database.<br>
> > > >> I would like to be able to have users being logged directly after a user is<br>
> > > >> being added to active directory. Is this possible and how could this be<br>
> > > >> achieved?<br>
> > ><br>
> > > >I would encourage you to turn enumeration off. Enumeration is a background<br>
> > > >task that periodically downloads and saves all users from the server,<br>
> > > >which can be very intensitve especially for large environments.<br>
> > ><br>
> > > >Also, is there a reason to use a bind user and a password and not a<br>
> > > >keytab and then leverage GSSAPI?<br>
> > ><br>
> > > >We have some howtos on enrolling a client with AD for pre-1.9 clients:<br>
> > > ><a href="https://fedorahosted.org/sssd/wiki/Configuring%20sssd%20to%20authenticate%20with%20a%20Windows%202008%20Domain%20Servero" target="_blank">https://fedorahosted.org/sssd/wiki/Configuring%20sssd%20to%20authenticate%20with%20a%20Windows%202008%20Domain%20Servero</a><br>
> > ><br>
> > > >And also for 1.9 and later (recommended):<br>
> > > ><a href="https://fedorahosted.org/sssd/wiki/Configuring_sssd_with_ad_server" target="_blank">https://fedorahosted.org/sssd/wiki/Configuring_sssd_with_ad_server</a><br>
> > ><br>
> > ><br>
> > > Ive edit the configuration to not use enumeration. The goal is to use<br>
> > > GSSAPI to. For some reason it refuses logins. It does not give me any<br>
> > > helpful ouput to fix it.<br>
> > ><br>
> > ><br>
> > > conf:<br>
> > ><br>
> > ><br>
> > > [sssd]<br>
> > > config_file_version = 2<br>
> > > domains = INT.HOME.LAN<br>
> > > services = nss, pam<br>
> > > debug_level = 0<br>
> > ><br>
> > ><br>
> > > [nss]<br>
> > > filter_groups = root<br>
> > > filter_users = root<br>
> > > reconnection_retries = 3<br>
> > ><br>
> > ><br>
> > > [pam]<br>
> > > reconnection_retries = 3<br>
> > ><br>
> > ><br>
> > > [domain/INT.HOME.LAN]<br>
> > > # Unless you know you need referrals, turn them off<br>
> > > ldap_referrals = false<br>
> > > # Uncomment if you need offline logins<br>
> > > cache_credentials = true<br>
> > > enumerate = false<br>
> > ><br>
> > ><br>
> > > id_provider = ldap<br>
> > > auth_provider = krb5<br>
> > > chpass_provider = krb5<br>
> > > access_provider = ldap<br>
> > ><br>
> > ><br>
> > > # Uncomment if service discovery is not working<br>
> > > ldap_uri = ldap://vagrant-2008r2.int.home.lan<br>
> > ><br>
> > ><br>
> > > # Comment out if not using SASL/GSSAPI to bind<br>
> > > ldap_sasl_mech = GSSAPI<br>
> > > # Uncomment and adjust if the default principal host/fqdn at REALM is<br>
> > > not available<br>
> > > #ldap_sasl_authid = nfs/<a href="http://client.ad.example.com" target="_blank">client.ad.example.com</a> at <a href="http://AD.EXAMPLE.COM" target="_blank">AD.EXAMPLE.COM</a><br>
> > ><br>
> > ><br>
> > > # Define these only if anonymous binds are not allowed and no keytab<br>
> > > is available<br>
> > > # Enabling use_start_tls is very important, otherwise the bind<br>
> > > password is transmitted<br>
> > > # over the network in the clear<br>
> > > #ldap_id_use_start_tls = True<br>
> > > #ldap_default_bind_dn = CN=test,CN=Users,DC=int,DC=home,DC=local<br>
> > > #ldap_default_authtok_type = password<br>
> > > #ldap_default_authtok = secretpassword<br>
> > ><br>
> > ><br>
> > > ldap_schema = rfc2307bis<br>
> > ><br>
> > ><br>
> > > ldap_user_search_base = CN=Users,DC=int,DC=home,DC=lan<br>
> > > ldap_user_object_class = user<br>
> > ><br>
> > ><br>
> > > ldap_user_home_directory = unixHomeDirectory<br>
> > > ldap_user_principal = userPrincipalName<br>
> > ><br>
> > ><br>
> > > ldap_group_search_base = CN=linuxadmins,DC=int,DC=home,DC=lan<br>
> > > ldap_group_object_class = group<br>
> > ><br>
> > ><br>
> > > #ldap_access_filter = memberOf=cn=linuxadmins,dc=int,dc=home,dc=lan<br>
> > ><br>
> > ><br>
> > > ldap_access_order = expire<br>
> > > ldap_account_expire_policy = ad<br>
> > > ldap_force_upper_case_realm = true<br>
> > > #ldap_krb5_init_creds = true<br>
> > ><br>
> > ><br>
> > > # Uncomment if dns discovery of your AD servers isn't working.<br>
> > > #krb5_server = 192.168.3.11<br>
> > > krb5_realm = INT.HOME.LAN<br>
> > > #krb5_keytab = /etc/krb5.keytab<br>
> > ><br>
> > ><br>
> > > # Probably required with sssd 1.8.x and newer<br>
> > > krb5_canonicalize = false<br>
> > ><br>
> > ><br>
> > > # Perhaps you need to redirect to certain attributes?<br>
> > > #ldap_user_object_class = user<br>
> > > #ldap_user_name = sAMAccountName<br>
> > > #ldap_user_uid_number = msSFU30UidNumber<br>
> > > #ldap_user_gid_number = msSFU30GidNumber<br>
> > > #ldap_user_gecos = displayName<br>
> > > #ldap_user_home_directory = msSFU30HomeDirectory<br>
> > > #ldap_user_shell = msSFU30LoginShell<br>
> > > #ldap_user_principal = userPrincipalName<br>
> > > #ldap_group_object_class = group<br>
> > > #ldap_group_name = cn<br>
> > > #ldap_group_gid_number = msSFU30GidNumber<br>
> ><br>
> > Hi<br>
> > Can you upgrade to a more recent version and use the new ad backend?<br>
> ><br>
> > If not, remember that the older versions didn't map the ad attributes to<br>
> > something we could recognise. sAMAccountName as being the Linux username<br>
> > is one I remember off the top of my head. Also, don't assume defaults.<br>
> > uncomment the lines until you get it working. We've a 1.9 config against<br>
> > AD here:<br>
> > <a href="http://linuxcostablanca.blogspot.com.es/2013/04/sssd-in-samba-40.html" target="_blank">http://linuxcostablanca.blogspot.com.es/2013/04/sssd-in-samba-40.html</a><br>
> > HTH<br>
> > Steve<br>
><br>
</div></div>> Right, the mappings might need to be adjusted, depending on the<br>
> environment. The upstream guide for the LDAP provider is here:<br>
> <a href="https://fedorahosted.org/sssd/wiki/Configuring%20sssd%20to%20authenticate%20with%20a%20Windows%202008%20Domain%20Server" target="_blank">https://fedorahosted.org/sssd/wiki/Configuring%20sssd%20to%20authenticate%20with%20a%20Windows%202008%20Domain%20Server</a><br>
<br>
No. That's the guide the OP used for his config. All the AD attrs are<br>
commented so the user never gets authenticated.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
sssd-users mailing list<br>
<a href="mailto:sssd-users@lists.fedorahosted.org">sssd-users@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/sssd-users" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/sssd-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Vänliga Hälsningar / Best Regards<div>Paul Liljenberg</div></div>
</div>