summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1280d38)
raw | patch | inline | side by side (parent: 1280d38)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Feb 2008 12:08:16 +0000 (12:08 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Feb 2008 12:08:16 +0000 (12:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9066 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index c107dfc1e0a8b368c150cf77b94a8fc71f97535e..95f056863805553170924b5fef81eb7219574f78 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
daemon_log("wrote /etc/goto/secret", 5);
}
-
-
# Write shell based config
my $cfg_name= dirname($ldap_config)."/ldap-shell.conf";
+
+ # Get first LDAP server
+ my $ldap_server= $ldap_uris[0];
+ $ldap_server=~ s/^ldap:\/\/([^:]+).*$/\1/;
+
open(file1, "> $cfg_name");
print file1 "LDAP_BASE=\"$ldap_base\"\n";
+ print file1 "LDAP_SERVER=\"$ldap_server\"\n";
print file1 "ADMIN_BASE=\"$admin_base\"\n";
print file1 "DEPARTMENT=\"$department\"\n";
print file1 "RELEASE=\"$release\"\n";