Index


NAME

Top

LATMOS::Ad - Perl extension for blah blah blah

SYNOPSIS

Top

  use LATMOS::Accounts::Bases;
  my $base = LATMOS::Accounts::Bases->new('unix');
  ...

DESCRIPTION

Top

Account base access over standard unix file format.

FUNCTIONS

Top

SCHEMA_VERSION

Return the SQL schema version to use for this software version.

new(%config)

Create a new LATMOS::Ad object for windows AD $domain.

domain / server: either the Ad domain or directly the server

ldap_args is an optionnal list of arguments to pass to Net::LDAP.

db

Return a DBI handle over database, load it if need.

load

Read file and load data into memory

ListInternalObjects($otype)

List objects flags as internal for type $otype

GetRawObject($otype, $id)

Return an object even it is internal, alias are not follow and even unexported object are returned

This function must be used only for maintenance operation.

getObjectFromOKey ($okey)

Return the object from the db internal key

PopulateDynData

Recomputate dynamics attributes (autoMembersFilters) if need

SPECIFICS FUNCTIONS

Top

GetAlias($base, $id)

Return object having id $id only if it is an object alias

CreateAlias($otype, $name, $for)

Create an object alias named $name for ovbject $for

RenameAlias($otype, $name, $to)

Rename an object alias

RemoveAlias($otype, $name, $for)

Create an object alias named $name for ovbject $for

get_global_value ($varname)

Return global value set into base

set_global_value ($varname, $value)

Set global value.

del_global_value ($varname)

Delete global value from base

generate_rsa_key ($password)

Return public and private peer rsa keys

private_key ($password)

Load and return private rsa key

get_rsa_password

Return hash with peer username => encryptedPassword

store_rsa_key ($public, $private)

Store public and private RSA key info data base

find_next_expire_users ($expire)

Search user expiring in $expire delay

sambaSID($id)

Return the base samba SID set in the config or a default one if none is set.

If $id is given return the full SID suitable for an object.

find_expired_users ($expire)

Return list of user going to expires in $expire delay

rename_nethost ($nethostname, $to, %config)

Facility function to rename computer to new name

nethost_exchange_ip ($ip1, $ip2)

Exchange ip1 with ip2 in base

ATTRIBUTES FUNCTIONS

Top

ListAttrValue($otype, $attribute)

List values allow for an attribute set into SQL database

AddAttrValue($otype, $attr, @values)

Add given values to allowed attribute list

DelAttrValue

Delete a

getEmploymentRange

Return date range within employment can be found in database

getobjectlogs($otype, @names)

Return logs for object type $otype having $name.

getlogs

Return logs for last year

SEE ALSO

Top

AUTHOR

Top

Olivier Thauvin, <olivier.thauvin@latmos.ipsl.fr>

COPYRIGHT AND LICENSE

Top