Skip to content
Snippets Groups Projects
Select Git revision
  • 4fbb07bd66a1908d729b3f060ee0a468e399cf0e
  • master default
  • host01
  • ns4
  • kodi
5 results

code.shore.co.il.conf

Blame
  • lam-setpass 395 B
    #!/usr/bin/env php
    <?php
    
    include_once('/usr/share/ldap-account-manager/lib/config.inc');
    
    // For the general settings.
    $cfg = new LAMCfgMain();
    $cfg->setPassword($argv[1]);
    $cfg->save();
    
    // For the server profiles.
    $profile_manager = new ServerProfilePersistenceManager();
    $conf = $profile_manager->loadProfile("lam");
    $conf->set_Passwd($argv[1]);
    $profile_manager->saveProfile($conf, "lam");