summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorTarik Gasmi2006-10-06 21:56:09 +0200
committerTarik Gasmi2006-10-06 21:56:09 +0200
commit394fb8f1f35da5a7d45cd14a7f40844c25b2fc76 (patch)
tree263fd3e7d0e20e9dd4b1b4466fc59a7427f57528 /initramfs/initrd-stuff/etc/functions
parentcompleted ldapconf helper-function matching_timerange (diff)
downloadcore-394fb8f1f35da5a7d45cd14a7f40844c25b2fc76.tar.gz
core-394fb8f1f35da5a7d45cd14a7f40844c25b2fc76.tar.xz
core-394fb8f1f35da5a7d45cd14a7f40844c25b2fc76.zip
corrected linebreak in ldapsearch (ldapconf helper-function)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@447 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions9
1 files changed, 5 insertions, 4 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 8a93b12f..bc9bc9b7 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -588,11 +588,12 @@ done
# get_machineconfig: helper function for ldapconf, writing machine
# config data of one timerange $tr into file "tmp/confvialdap/$tr"
get_machineconfig(){
-ldapsearch -x -H ldap://$ldapserver -b $1 -D $user -w $pwd -LLL "(&(objectclass
- =machineconfig)(timerange=$tr))"|sed '/dn:/d'|sed '/ou=/d'|sed '/dc=/d'|\
- sed '/objectC*/d'|sed '/Tim*/d'|sed '/cn:/d'|sed '/desc*/d'|sed 's/: /=/g' \
- |sed 's/-/_/g'` > tmp/confvialdap/$tr
+ldapsearch -x -H ldap://$ldapserver -b $1 -D $user -w $pwd -LLL \
+"(&(objectclass=machineconfig)(timerange=$tr))"|sed '/dn:/d'|sed '/ou=/d'|\
+sed '/dc=/d'|sed '/objectC*/d'|sed '/Tim*/d'|sed '/cn:/d'|sed '/desc*/d'|sed \
+'s/: /=/g'|sed 's/-/_/g' > tmp/confvialdap/$tr
}
+
ldapconf () {
local ldapserver=$1
error "$error_ldapcfg"