nethserver:directory

NethServer::Directory(User Contributed Perl DocumentatNethServer::Directory(3)

new

Create a NethServer::Directory instance as a subclass of Net::LDAP package. The returned object has already bind()ed to the internal LDAP server.

getUser(UID)

Return a Net::LDAP::Entry object for the given UID, or undef if not found.

configServiceAccount

Append a simpleSecurityObject+device node for simple BINDs from localhost.

Example:

$ldap->configServiceAccount('sogo', PASSWORD_READ | FIELDS_READ);
getFreeId($base)

Search the passwd and group databases for the first free user-id, starting from $base.

The returned id is a free uid, gid couple.

addGroupMembers($groupName, @members..)

Add the given @members to $groupName

delGroupMembers($groupName, @members..)

Remove the given @members from $groupName

setGroupMembers($groupName, @members..)

Set the members of $groupName to the given list

perl v5.10.1 2015-04-23 NethServer::Directory(3)

perldoc NethServer::Directory