This module will setup your AIX system to use AD LDAP Authentication.
This module probably over-steps the concept of "do one thing" pretty far. I contend that the GSKit8 stuff and management of the SSL KDB file probably belongs in its own module, but for now its a self contained "setup my ldap authentication" module. This module also attempts to make sure that local accounts will have SYSTEM=compat registry=files
added to them so that they still work.
The aixldap module will install the necessary packages and configure Active Directory (AD) Kerberos LDAP authentication.
/tmp/pkg
. You may want to stage them at provisioning time or make them available over NFS / autofs (puppet-autofs).# AIX Package Repo - This content is not specifically profile material
class profile::aix_pkg_repo (
String $repo_mount,
String $repo_path = '/var/run/pkg_repo',
)
# Create mountpoint
file { $repo_path:
ensure => directory,
before => Mount[$repo_path],
}
# Create filesystem mount reference (do not mount)
mount { $repo_path:
ensure => 'unmounted',
atboot => false,
device => $repo_mount,
fstype => 'nfs',
options => 'ro,fg,intr'
}
# List dependencies on this repo_path
$pkg_repo_dependencies = [
Exec['install-aixldap-packages-all-at-once'],
#Package['rpm.rte'],
]
# Make sure the dependencies process before the mountpoint is unmounted again.
$pkg_repo_dependencies.each | $res | {
# This may seem backwards, but remember the "Mount[$repo_path]" will actually unmount
$res -> Mount[$repo_path]
}
# This will *mount* the pkg_repo before changing the dependent resources
transition { "mount ${repo_path}":
resource => Mount[$repo_path],
attributes => { ensure => 'mounted' },
prior_to => $pkg_repo_dependencies,
}
}
At the most basic level, this module is going to require a few values in hieradata (or in the class call):
If you want to use SSL, you will also need to provide:
There are many other parameters that you can set to customize other parts. Please refer to the [manifests/init.pp] code for details.
AIX base profile:
# Specify this as early as possible in your AIX Base profile so that ANY users created will have this in scope.
User {
ia_load_module => 'files',
attributes => ['SYSTEM=compat','registry=files']
}
include aixldap
Hiera:
aixldap::basedn: dc=mydomain,dc=com
aixldap::binddn: cn=myldapuser,ou=People,dc=mydomain,dc=com
aixldap::bindpw: ENC.........please_use_eyaml!
aixldap::bindpw_crypted: (use secldapclntd -e 'bind_password') ... and maybe use eymal too?
aixldap::ldapservers: adserver.sub.domain.com
Special Note: If you need to have multiple userbasedn values, you can specify them as an array like so:
aixldap::ldap_cfg_options:
userbasedn:
- OU=Users,OU=UnixTeam,dc=mydomain,dc=com
- OU=ServiceAccounts,dc=mydomain,dc=com
See https://larkit.github.io/puppetmodule-aixldap/
This is only compatible with AIX. We have only tested it on AIX 7.1 (TL2 and TL4) and AIX 7.2 (TL1). NOTE that the idsldap* packages are TL specific. Check your oslevel -s
output (facter os.release.full
)
Feel free to fork/cone and submit pull requests.
See CHANGELOG.md.