View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Simon Adlem > OSS-LDAPops >


Annotate this POD


Open  0
View/Report Bugs

NAME ^ - a programme to make a local cache of LDAP netgroups.


This programme pulls a copy of netgroups from the LDAP server, prefixes their name with 'local' and places them in the /etc/netgroups file

by doing this, you can configure access.conf to also allow these local netgroups. thus allowing login even if the LDAP server is not online to answer netgroup queries.

This script should be run from cron at an appropriate interval.


A configuration file is required in /etc/netgroupcache.conf An example is below:

        #Global config
        #These options are passed to OSS::LDAPops and are all required.
        $GLOBAL::config = 
                LDAPHOST        =>      '',
                BINDDN          =>      'uid=webportal, ou=writeaccess, dc=auth, dc=mydomain,dc=net',
                BASEDN          =>      'dc=auth,dc=mydomain,dc=net',
                NISDOMAIN       =>      '',
                PASSWORD        =>      'xyzzy'


        #This 1 is required!

This example is also included in the source distribution. <netgroup> <netgroup> <netgroup> .....

\* may be used as a wildcard, including as the only argument to get all netgroups.

(you can add as many netgroups as you like)

This code uses OSS::LDAPops Please see the OSS::LDAPops manual for more details.

syntax highlighting: