Koozali.org: home of the SME Server

addming/joining SME7 with windows Active Directory Domain

Offline jester

  • *
  • 496
  • +1/-0
addming/joining SME7 with windows Active Directory Domain
« on: February 20, 2006, 12:37:32 PM »
I've been searching my butt off for this on contribs.org and stumbled on it by accident. (can't we make this into an howto in the wiki somerwhere?!):
http://forums.contribs.org/index.php?topic=26380.0

I've used the described method to join my SME7 server into an windows2003 ADS domain and have it authenticate against it... IT WORKS!!

There is one question though: this script was made for SME6.x and it describes copying the /etc/e-smith/templates/etc/pam.d/login/20auth template, but it seems on SME7 this '20auth' is not used anymore...

Beeing the newbie i am i just made this custom-template fragment and added the suggested lines (see extract code below). But since this authentication stuff and i don't know what i'm dooing ( ;-) ) i start to worry... could this be a security risk?! Could someone tell me if i'm opening a nice door for possible hackers or not?! Are not just the lines with 'sufficient' actually needed... and can the rest be thrown?!

extract:
Code: [Select]
{
    use esmith::db;
    use esmith::config;

    local $conf{'telnet'} = $telnet;

    my $rootLogin = db_get_prop(\%conf, "telnet", "PermitRootLogin")
   || "no";
    if (defined $rootLogin && $rootLogin eq 'no')
    {
   $OUT .= "auth       required   /lib/security/pam_securetty.so\n";
    }
    $OUT .= "auth       sufficient      /lib/security/pam_winbind.so\n";
    $OUT .= "auth       sufficient      /lib/security/pam_unix.so use_first_pass\n";
    $OUT .= "auth       required   /lib/security/pam_stack.so service=system-auth\n";
    $OUT .= "auth       required   /lib/security/pam_nologin.so\n";
}


Kind regards,
jester.

Offline gregswallow

  • *
  • 651
  • +1/-0
addming/joining SME7 with windows Active Directory Domain
« Reply #1 on: February 25, 2006, 10:17:07 AM »
Jester, your question is a bit technical for the forums.  Please join the devinfo mailing list if you haven't already and ask there, or better, submit all the instructions for adding this functionality as a new feature request for "SME Future" in the Bug Tracker.  The developers are sure to notice it there and will comment.