There is 3 types of SQL configuration backends for LemonLDAP::NG :
To use a SQL backend, configure your lemonldap-ng.ini
file (section configuration) :
dbiTable
parameter.Example for MySQL :
[configuration] type = RDBI dbiChain = DBI:mysql:database=lemonldap-ng;host=1.2.3.4 dbiUser = lemonldap dbiPassword = password ; optional dbiTable = mytablename
CREATE TABLE lmConfig ( cfgNum int(11) NOT NULL, field varchar(255) NOT NULL DEFAULT '', value longblob, PRIMARY KEY (cfgNum,field) );
CREATE TABLE lmConfig ( cfgNum int not null primary key, data longblob );
You have to grant read/write access for the manager component. Other components needs just a read access. You can also use the same user for all.
MySQL example (suppose that our servers are in 10.0.0.0/24 network):
GRANT SELECT,INSERT,UPDATE,LOCK TABLES ON lmConfig.* TO lemonldap-ng@manager.host IDENTIFIED BY 'mypassword'; GRANT SELECT ON lmConfig.* TO lemonldap-ng-user@'10.0.0.%' IDENTIFIED BY 'myotherpassword';