summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e73841)
raw | patch | inline | side by side (parent: 1e73841)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 09:48:48 +0000 (09:48 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 09:48:48 +0000 (09:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8210 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history | |
gosa-si/modules/ServerPackages.pm | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 4e1369e5008ff14e231ed315b9d2f07d2fe390d6..29119d833d42d06a74234a80b0573d15ebd0af39 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
$ldap_base= $element;
next;
}
- if ($key =~ /^ldap_/) {
- my $post =~ s/^ldap_//;
- push (@ldap_options, "$post $element");
+ if ($key =~ /^ldap_cfg$/) {
+ push (@ldap_options, "$element");
next;
}
- if ($key =~ /^pam_/) {
- my $post =~ s/^pam_//;
- push (@pam_options, "$post $element");
+ if ($key =~ /^pam_cfg$/) {
+ push (@pam_options, "$element");
next;
}
- if ($key =~ /^nss_/) {
- my $post =~ s/^nss_//;
- push (@nss_options, "$post $element");
+ if ($key =~ /^nss_cfg$/) {
+ push (@nss_options, "$element");
next;
}
}
}
print file "\nBASE $ldap_base\n";
foreach $element (@ldap_options) {
- print file "$element";
+ print file "$element\n";
}
close (file);
daemon_log("wrote $ldap_config", 5);
print file "\nbase $ldap_base\n";
print file2 "\nbase $ldap_base\n";
foreach $element (@pam_options) {
- print file "$element";
+ print file "$element\n";
}
foreach $element (@nss_options) {
- print file2 "$element";
+ print file2 "$element\n";
}
close (file2);
daemon_log("wrote $nss_config", 5);
index dc33583adc698b91c51dcbda99ab3227f069c711..b5fa53c44ab9e1f0bc31c2020e06e7ff4813db30 100644 (file)
my ($bus_activ, $bus_passwd, $bus_ip, $bus_port);
my $server;
my $no_bus;
+my (@ldap_cfg, @pam_cfg, @nss_cfg);
my %cfg_defaults =
("server" =>
${@$pinfo[0]} = $cfg->val( $section, $param, @$pinfo[1] );
}
}
+
+ # Read non predefined sections
+ my $param;
+ if ($cfg->SectionExists('ldap')){
+ foreach $param ($cfg->Parameters('ldap')){
+ push (@ldap_cfg, "$param ".$cfg->val('ldap', $param));
+ }
+ }
+ if ($cfg->SectionExists('pam_ldap')){
+ foreach $param ($cfg->Parameters('pam_ldap')){
+ push (@pam_cfg, "$param ".$cfg->val('pam_ldap', $param));
+ }
+ }
+ if ($cfg->SectionExists('nss_ldap')){
+ foreach $param ($cfg->Parameters('nss_ldap')){
+ push (@nss_cfg, "$param ".$cfg->val('nss_ldap', $param));
+ }
+ }
+
}
$mesg = $ldap->unbind;
# Send information
- my %data = ( 'ldap_uri' => \@ldap_uris, 'ldap_base' => $base );
+ my %data = ( 'ldap_uri' => \@ldap_uris, 'ldap_base' => $base,
+ 'ldap_cfg' => \@ldap_cfg, 'pam_cfg' => \@pam_cfg,'nss_cfg' => \@nss_cfg );
send_msg("new_ldap_config", $server_address, $address, \%data);
return;