Forge Home

ldap

Controls ldap server and global ldap auth on unix system

10,736 downloads

9,261 latest version

2.0 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0 (deleted)
  • 0.0.6 (deleted)
  • 0.0.5 (deleted)
  • 0.0.3 (deleted)
  • 0.0.2 (deleted)
  • 0.0.1 (deleted)
released Nov 24th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'alkivi-ldap', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add alkivi-ldap
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install alkivi-ldap --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

alkivi/ldap — version 0.1.1 Nov 24th 2014

LDAP Module

This module will install and configure a LDAP server. Samba utilisation is possible using special parameters

Usage

Minimal server configuration

class { ldap: 
  uri          => 'ldap.alkivi.fr',
  base         => 'dc=alkivi,dc=fr',
  organization => 'Alkivi SAS',
  commonname   => 'alkivi',
  domain_name  => 'alkivi.fr',
  ssl          => true,
}

This will do the typical install, configure and service management.

More server configuration

class { ldap: 
  organization => 'Alkivi SAS',
  commonname   => 'alkivi',
  domain_name  => 'alkivi.fr',
  uri          => 'ldap.alkivi.fr',
  base         => 'dc=alkivi,dc=fr',
  ssl          => true,
  ssldir       => '/etc/ssl/ldap',
  sslcert      => 'alkivi-ldap',
  backend      => 'HDB',
  motd         => true,
  firewall     => true,
}

Samba support

class { 'ldap::samba': }
class { 'ldap::smbldap':
  sid         => 'S-1-5-21-4095410810-3205272473-3842645657',
  sambaDomain => 'home',
  readbinddn  => 'cn=admin,dc=home',
  writebinddn => 'cn=admin,dc=home',
  mailDomain  => 'alkivi.fr',
  suffix      => 'dc=home',
  usersdn     => 'people',
  computersdn => 'computers',
  groupsdn    => 'groups',
  idmapdn     => 'idmap',
}

This will install smbldap tools and create default configuration, and populate your ldap directory with what is needed for domain control To obtain the sid, you can use net getlocalsid

PAM and NSS support

class { 'ldap::pam':
  base        => 'dc=home',
  base_passwd => 'ou=people',
  base_shadow => 'ou=people',
  base_group  => 'ou=groups',
}

class { 'ldap::nss':
  base        => 'dc=home',
  base_passwd => 'ou=people',
  base_shadow => 'ou=people',
  base_group  => 'ou=groups',
}

Host configuration

You have two type of host, basic one, or samba one according to which classes you want to include. Samba user is added with smbldap-tools while basic user is not.

ldap::sambauser{ 'toto':
 email        => 'toto@alkivi.fr',
 uname        => 'toto',
 firstName    => 'Toto',
 lastName     => 'Awesome',
 create_local => false,
}

ldap::user{ 'toto':
 email        => 'toto@alkivi.fr',
 uname        => 'toto',
 firstName    => 'Toto',
 lastName     => 'Awesome',
 create_local => false,
}

Limitations

  • This module has been tested on Debian Wheezy, Squeeze.

License

All the code is freely distributable under the terms of the LGPLv3 license.

Contact

Need help ? contact@alkivi.fr

Support

Please log tickets and issues at our Github