1 1.1 christos INSTALLATION 2 1.1 christos ============ 3 1.1 christos 4 1.1 christos Dependencies 5 1.1 christos ------------------ 6 1.1 christos ppm is provided along with OpenLDAP sources. By default, it is available into contrib/slapd-modules. 7 1.1 christos - make sure both OpenLDAP sources and ppm are available for building. 8 1.1 christos - install cracklib development files if you want to test passwords against cracklib 9 1.1 christos 10 1.1 christos 11 1.1 christos Build 12 1.1 christos ----- 13 1.1 christos Enter contrib/slapd-modules/ppm directory 14 1.1 christos 15 1.1 christos You can optionally customize some variables if you don't want the default ones: 16 1.1 christos - prefix: prefix of the path where ppm is to be installed (defaults to /usr/local) 17 1.1 christos - ldap_subdir: OpenLDAP specific subdirectory for modules and configurations (defaults to openldap ) 18 1.1 christos - moduledir: where the ppm module is to be deployed (defaults to $prefix/$libexecdir/$ldap_subdir) 19 1.1 christos - etcdir: used to compose default sysconfdir location (defaults to $prefix/etc) 20 1.1 christos - sysconfdir: where the ppm example policy is to be deployed (defaults to $prefix/$etcdir/$ldap_subdir) 21 1.1 christos - LDAP_SRC: path to OpenLDAP source directory 22 1.1 christos - Options in OPTS variable: 23 1.1 christos CONFIG_FILE: (DEPRECATED) path to a ppm configuration file (see PPM_READ_FILE in ppm.h) 24 1.1 christos note: ppm configuration now lies into pwdCheckModuleArg password policy attribute 25 1.1 christos provided example file is only helpful as an example or for testing 26 1.1 christos CRACKLIB: if defined, link against cracklib 27 1.1 christos DEBUG: If defined, ppm logs its actions with syslog 28 1.1 christos 29 1.1 christos 30 1.1 christos To build ppm, simply run these commands: 31 1.1 christos (based upon the default prefix /usr/local of OpenLDAP) 32 1.1 christos 33 1.1 christos ``` 34 1.1 christos make clean 35 1.1 christos make 36 1.1 christos make test 37 1.1 christos make install 38 1.1 christos ``` 39 1.1 christos 40 1.1 christos Here is an illustrative example showing how to overload some options: 41 1.1 christos 42 1.1 christos ``` 43 1.1 christos make clean 44 1.1 christos make LDAP_SRC=../../.. prefix=/usr/local libdir=/usr/local/lib 45 1.1 christos make test LDAP_SRC=../../.. 46 1.1 christos make install prefix=/usr/local libdir=/usr/local/lib 47 1.1 christos ``` 48 1.1 christos 49