Node Director
|
reads configuration files and tries to expand includes More...
Public Member Functions | |
String[] | enumSchema () |
void | installSchema (String name) throws DirectorException |
void | createDB (DN top, File dbdir, boolean anonymousAccess, String rootpw, String domain) throws DirectorException |
void | setRandomPassword (DN top, String domain) throws DirectorException |
Set random password for ldaproot user. | |
void | delDB (DN top) throws DirectorException |
void | createDomain (DN top, File dbdir, boolean anonymousAccess, String rootpw, String domain, boolean allowIntAuth) throws DirectorException |
void | createConf (String rootdb, String domain, File template) throws DirectorException |
MyProperties | readConf (String domain) throws DirectorException |
void | deleteDomain (String domain) throws DirectorException |
Static Public Member Functions | |
static InstallerOpenLDAP | getInstance () |
Protected Member Functions | |
Vector | _numberedAttribs (Vector attribs) |
File | _frontendCredentials (String domain) |
void | service (String service, String action) |
String | randomPw (int size) |
DBObject | _getDBDef (DN top, File dbdir, boolean anonymousAccess) |
DBObject | _getDBRoot (DN top) throws DirectorException |
DBObject | _getPeopleDir (DN top) throws DirectorException |
DBObject | _getSystemDir (DN top) throws DirectorException |
DBObject | _getRootUser (DN top, String pw) throws DirectorException |
DBObject | _getLdapRootUser (DN top, String pw) throws DirectorException |
void | copyPerms (File origDir, File newDir) throws DirectorException |
Vector< String > | enumDomains () |
int | findAdminPort (String domain) throws DirectorException |
DBConnection | configDB () throws DirectorException |
DBConnection | rootDB () throws DirectorException |
DBConnection | _getDB (String base) throws DirectorException |
reads configuration files and tries to expand includes
|
protected |
|
protected |
|
protected |
References sfi.director.repository.DN.get(), and sfi.director.repository.DBObject.setDN().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB().
|
protected |
References sfi.director.repository.DBObject.setDN().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB().
|
protected |
|
protected |
References sfi.director.repository.DBObject.setDN().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB().
|
protected |
References com.graeff.pwencode.Encoder.encode(), and sfi.director.repository.DBObject.setDN().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB().
|
protected |
References sfi.director.repository.DBObject.setDN().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB().
|
protected |
Referenced by sfi.director.application.InstallerOpenLDAP.installSchema().
|
protected |
|
protected |
void sfi.director.application.InstallerOpenLDAP.createConf | ( | String | rootdb, |
String | domain, | ||
File | template | ||
) | throws DirectorException |
References sfi.director.util.SiteSetup.configfile, sfi.director.util.Tools.debug(), sfi.director.util.Tools.expand(), sfi.director.util.Setup.fileSeparator, sfi.director.util.MyProperties.getProperty(), sfi.director.util.Setup.properties, and sfi.director.repository.DBObject.toLDIF().
Referenced by sfi.director.cli.olinstall.run().
void sfi.director.application.InstallerOpenLDAP.createDB | ( | DN | top, |
File | dbdir, | ||
boolean | anonymousAccess, | ||
String | rootpw, | ||
String | domain | ||
) | throws DirectorException |
References sfi.director.application.InstallerOpenLDAP._getDBDef(), sfi.director.application.InstallerOpenLDAP._getDBRoot(), sfi.director.application.InstallerOpenLDAP._getPeopleDir(), sfi.director.application.InstallerOpenLDAP._getRootUser(), sfi.director.application.InstallerOpenLDAP._getSystemDir(), sfi.director.repository.DBConnection.append(), sfi.director.system.Files.chown(), sfi.director.application.InstallerOpenLDAP.configDB(), sfi.director.system.FileStats.haveOwnerUid(), sfi.director.application.InstallerOpenLDAP.rootDB(), sfi.director.application.InstallerOpenLDAP.setRandomPassword(), sfi.director.system.Files.stat(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.cli.olinstall.run().
void sfi.director.application.InstallerOpenLDAP.createDomain | ( | DN | top, |
File | dbdir, | ||
boolean | anonymousAccess, | ||
String | rootpw, | ||
String | domain, | ||
boolean | allowIntAuth | ||
) | throws DirectorException |
References sfi.director.util.Tools.execWait(), sfi.director.util.MyProperties.getProperty(), and sfi.director.util.Setup.properties.
Referenced by sfi.director.cli.olinstall.run().
void sfi.director.application.InstallerOpenLDAP.delDB | ( | DN | top | ) | throws DirectorException |
void sfi.director.application.InstallerOpenLDAP.deleteDomain | ( | String | domain | ) | throws DirectorException |
|
protected |
References sfi.director.util.Setup.active_properties.
String [] sfi.director.application.InstallerOpenLDAP.enumSchema | ( | ) |
|
protected |
References sfi.director.util.MyProperties.getProperty().
|
static |
Referenced by sfi.director.cli.olinstall.run().
void sfi.director.application.InstallerOpenLDAP.installSchema | ( | String | name | ) | throws DirectorException |
References sfi.director.application.InstallerOpenLDAP._numberedAttribs(), sfi.director.repository.DBConnection.append(), sfi.director.application.InstallerOpenLDAP.configDB(), sfi.director.util.Setup.fileSeparator, sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBManager.getConnection(), sfi.director.util.MyProperties.getProperty(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.util.Logger.NOTICE, sfi.director.util.Setup.properties, sfi.director.repository.DBObject.removeAttribute(), sfi.director.repository.DBConnection.replace(), sfi.director.repository.DBConnection.search(), sfi.director.repository.DBObject.setDN(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.cli.olinstall.run().
|
protected |
MyProperties sfi.director.application.InstallerOpenLDAP.readConf | ( | String | domain | ) | throws DirectorException |
|
protected |
|
protected |
References sfi.director.util.Tools.execWait().
void sfi.director.application.InstallerOpenLDAP.setRandomPassword | ( | DN | top, |
String | domain | ||
) | throws DirectorException |
Set random password for ldaproot user.
References sfi.director.application.InstallerOpenLDAP._getLdapRootUser(), sfi.director.util.Credentials.addFileCredentials(), sfi.director.util.Setup.configDomain, sfi.director.util.Credentials.FILE_CREDENTIALS, sfi.director.application.InstallerOpenLDAP.randomPw(), sfi.director.repository.DBConnection.replace(), and sfi.director.application.InstallerOpenLDAP.rootDB().
Referenced by sfi.director.application.InstallerOpenLDAP.createDB(), and sfi.director.cli.olinstall.run().