File: buildconf.php

package info (click to toggle)
lwat 0.17-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 860 kB
  • ctags: 945
  • sloc: php: 3,151; sh: 212; makefile: 148
file content (64 lines) | stat: -rw-r--r-- 2,279 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*
    LWAT, LDAP Webbased Administration Tool
    Copyright (C) 2007 Finn-Arne Johansen <faj@bzz.no> BzzWare AS, Norway

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

    require_once ('functions.php') ; 

    loadConfig () ; 

printf ("<?php\n\n") ; 

printf ("\$ldaphost = \"%s\" ; \n", $ldaphost) ;
printf ("\$domain = \"%s\" ; \n", $domain) ; 
printf ("\$base = \"%s\" ; \n", $base ) ; 

if (isset ($groupprefix))
    printf ("\$groupprefix = \"%s\" ; \n", $groupprefix)  ;
else
    printf ("\$groupbase = \"%s\" ; \n", $groupbase)  ;

if ($useLisGroup) 
    printf ("\$useLisGroup = %s ; \n", ($useLisGroup ? "true" : "false") ) ; 
elseif (isset ($authprefix))
    printf ("\$authprefix = \"%s\" ; \n", $authprefix) ;
else
    printf ("\$authbase = \"%s\" ; \n", $authbase) ;

if (isset ($hostprefix))
    printf ("\$hostprefix = \"%s\" ; \n", $hostprefix) ; 
else
    printf ("\$hostbase = \"%s\" ; \n", $hostbase) ; 
    
if (isset ($netgroupprefix))
    printf ("\$netgroupprefix = \"%s\" ; \n", $netgroupprefix) ; 
else
    printf ("\$netgroupbase = \"%s\" ; \n", $netgroupbase) ; 

printf ("\$homelocation = \"%s\" ; \n", $homelocation) ; 
printf ("\$minPwLength = \"%s\" ; \n", $minPwLength) ; 
printf ("\$minPwUpper = \"%s\" ; \n", $minPwUpper) ; 
printf ("\$minPwLower = \"%s\" ; \n", $minPwLower) ; 
printf ("\$minPwNumber = \"%s\" ; \n", $minPwNumber) ; 
printf ("\$allowPwSet = %s ; \n\n", ($allowPwSet ? "true" : "false") ) ; 

printf ("\$smarty_templ = \"%s\" ; \n", $smarty_templ) ; 
printf ("\$smarty_compile = \"%s\" ; \n", $smarty_compile) ; 
printf ("\n?>\n") ; 

?>