Hi Björn, 

thank you very much for your patch. I will add an option to the next release. 

Best regards 
Roland 

Am 3. August 2016 09:28:44 MESZ, schrieb "Björn Müller" 
<[email protected]>:
>Hi Roland,
>
>in our Setup the LDAP server and the Samba server are running on 
>different machines.
>
>Now the access to the samba server via ssh is only with a certificate 
>possible.
>
>Could you implement in one of the next versions the possibility to
>
>specify a username and a certificate in  the Lamdaemon settings in the 
>Server profile?
>
>For now I made the changes in the code manually. Here is what I changed
>
>so that the lam daemon
>
>is using a certain username and certificate to connect to the samba
>server:
>
>/usr/share/ldap-account-manager/lib/lamdaemon.inc
>
>line 50 -55
>
>  include('Crypt/RSA.php');
>  $rsa = new Crypt_RSA();
>  if(!$rsa->loadKey(file_get_contents('/etc/ssh/ldap-fs-private'))){
>                $return = array("ERROR," . _("Failed to load RSA Key") 
>. ",");
>                  return $return;
>         }
>
>
>line 82-84
>
>  $userName = admin;
>                 //if ($handle->login($userName, $credentials[1])) {
>                 if ($handle->login($userName, $rsa)) {
>                         $output = $handle->exec("sudo " . 
>$_SESSION['config']->get_scriptPath() . ' ' .
>escapeshellarg($command));
>                         $return = array($output);
>                         return $return;
>                 }
>
>Thanks in advance.
>
>Best Regards
>Björn
>
>-- 
>Björn Müller
>
>Cognitive Neurology
>Section Computational Sensomotorics,
>IT/EDV Systemadminstrator
>Hertie Institute for Clinical Brain Research and
>Centre for Integrative Neuroscience
>
>Otfried-Müller-Strasse 25
>D-72076 Tuebingen
>GERMANY
>
>Tel.: +49 7071 29-89131
>Tel.: +49 7071 29-81999
>
>
>------------------------------------------------------------------------------
>_______________________________________________
>Lam-public mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/lam-public

-- 
Sent from my mobile device. 
------------------------------------------------------------------------------
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to