index 259e10430917b74aa82d4f6a25d36fddf14938a1..8f3e499a73b0f7d0c1fc6b0aaf3f983a02b972f3 100644 (file)
{
var $governmentmode = FALSE;
var $sambaidmapping = FALSE;
{
var $governmentmode = FALSE;
var $sambaidmapping = FALSE;
- var $strict = TRUE;
- var $account_expiration =FALSE;
var $header_image = "images/ldapserver.png";
var $cyrusunixstyle = FALSE;
var $header_image = "images/ldapserver.png";
var $cyrusunixstyle = FALSE;
var $mail_settings = array("vacationdir" => "/etc/gosa/vacation",
"vacationdir_active" => FALSE);
var $mail_settings = array("vacationdir" => "/etc/gosa/vacation",
"vacationdir_active" => FALSE);
- var $generic_settings = array( "wws_ou" => "ou=winstations",
+ var $generic_settings = array( "enableCopyPaste" => false,
+ "wws_ou" => "ou=winstations",
"wws_ou_active" => FALSE,
"snapshot_active" => FALSE,
"snapshot_base" => "ou=snapshots,%base%",
"wws_ou_active" => FALSE,
"snapshot_active" => FALSE,
"snapshot_base" => "ou=snapshots,%base%",
- "snapshot_ldap_base" => "%base%",
"snapshot_user" => "cn=ldapadmin,%base%",
"snapshot_password" => "",
"snapshot_server" => "%connection%");
"snapshot_user" => "cn=ldapadmin,%base%",
"snapshot_password" => "",
"snapshot_server" => "%connection%");
"samba_rid" => 1000,
"samba_rid_active" => FALSE);
"samba_rid" => 1000,
"samba_rid_active" => FALSE);
- var $attributes = array("strict","governmentmode","sambaidmapping","account_expiration","cyrusunixstyle","mail");
+ var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail");
function Step_Config2()
{
function Step_Config2()
{
{
/* Update snapshot values, with already collected values */
foreach($this->generic_settings as $key => $value){
{
/* Update snapshot values, with already collected values */
foreach($this->generic_settings as $key => $value){
- foreach(array("snapshot_ldap_base","snapshot_base","snapshot_user","snapshot_server") as $attr){
+ foreach(array("snapshot_base","snapshot_user","snapshot_server") as $attr){
foreach($this->parent->captured_values as $replace_name => $replace_value){
if(is_string($replace_value)) {
$this->generic_settings[$attr] = preg_replace("/%".$replace_name."%/",$replace_value,$this->generic_settings[$attr]);
foreach($this->parent->captured_values as $replace_name => $replace_value){
if(is_string($replace_value)) {
$this->generic_settings[$attr] = preg_replace("/%".$replace_name."%/",$replace_value,$this->generic_settings[$attr]);
$this->mail_settings['vacationdir_active'] = FALSE;
}
$this->mail_settings['vacationdir_active'] = FALSE;
}
+ if(isset($_POST['enableCopyPaste'])){
+ $this->generic_settings['enableCopyPaste'] = $_POST['enableCopyPaste'];
+ }
+
if(isset($_POST['wws_ou_active'])){
$this->generic_settings['wws_ou_active'] = TRUE;
if(isset($_POST['wws_ou'])){
if(isset($_POST['wws_ou_active'])){
$this->generic_settings['wws_ou_active'] = TRUE;
if(isset($_POST['wws_ou'])){
if(isset($_POST['snapshot_server'])){
$this->generic_settings['snapshot_server'] = $_POST['snapshot_server'];
}
if(isset($_POST['snapshot_server'])){
$this->generic_settings['snapshot_server'] = $_POST['snapshot_server'];
}
- if(isset($_POST['snapshot_ldap_base'])){
- $this->generic_settings['snapshot_ldap_base'] = $_POST['snapshot_ldap_base'];
- }
}else{
$this->generic_settings['snapshot_active'] = FALSE;
}
}else{
$this->generic_settings['snapshot_active'] = FALSE;
}