Changes in / [b4abfab:9670dd0]


Ignore:
Location:
npl
Files:
3 added
1 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • npl/internetserver/openvpn/openvpn.build

    rb4abfab r9670dd0  
    1 6527
     16528
  • npl/internetserver/openvpn/openvpn.md5

    rb4abfab r9670dd0  
    1 9fe8ad5ac2f5f5b8feb7828a8edd1aec  ./openvpn-2.3.18.tar.gz
    2 af2b55ef539039c7abc0bb9c6602d565  ./openvpn_dev.pkg
    3 3224fc56ba75c502947bf48e8752982d  ./openvpn.pkg
     1971d57e29b78b4b902eb2f4aae2f05a7  ./openvpn-2.4.6.tar.gz
     2198caf9d8889901c49a3286a6cdb210c  ./openvpn_dev.pkg
     3d420e8e8094a8888afa02202d9dcef80  ./openvpn.pkg
    443a5786293ac155e67653e52e9f428df1  ./openvpn.SlackBuild
    5 563195c2aad60e1f29fce0fed417816c  ./openvpn.SlackBuild.log.gz
     58a16898e10c967017ee728d05d47a382  ./openvpn.SlackBuild.log.gz
  • npl/internetserver/openvpn/openvpn.version

    rb4abfab r9670dd0  
    1 2.3.18
     12.4.6
  • npl/internetserver/openvpn/openvpn_dev.build

    rb4abfab r9670dd0  
    1 6527
     16528
  • npl/internetserver/openvpn/openvpn_dev.version

    rb4abfab r9670dd0  
    1 2.3.18
     12.4.6
  • npl/syn3/webportal/src/index.php

    rb4abfab r9670dd0  
    11<?
    2 /** Syn-3 dynamic web portal 
     2/** Syn-3 dynamic web portal
    33 *
    4  * (C) 2007 DatuX / Syn-3
     4 * (C) 2007-2018 DatuX / Syn-3
    55 */
    66?>
     
    2222</div>
    2323
     24
    2425<div id='content' style='padding-top:25'>
    2526
     
    3940                                                continue;
    4041
    41                                        
     42
    4243                                        echo "<tr >";
    43                                        
     44
    4445                                        //logo met link, iedere webapp heeft een webportal.png.
    45                                         echo "<td style='vertical-align:middle'>";
    46                                         echo "<br>";
     46                                        echo "<td style='vertical-align: middle; text-align: center; background:white'>";
    4747                                        echo "<a href='$webapp'>";
    4848                                        echo "<image src='$img'>";
    49                                        
     49
    5050                                        //omschrijving, staat voor iedere webapp in webportal.desc
    51                                         echo "<td style='font-size: 150%;vertical-align:middle'>";
     51                                        echo "<td style='vertical-align:middle'>";
     52                                        echo "<a href='$webapp' style='font-size: 150%;'>";
    5253                                        $desc=file_get_contents("$webapp/webportal.desc");
    5354                                        if ($desc)
     
    5556                                        else
    5657                                                echo $webapp;
    57                                        
    58                                         //syn3 pijl met link
    59                                         echo "<td style='vertical-align:middle'>";
    60                                         echo "<a href='$webapp'>";
    61                                         echo "<image src='img/stat.png'>";
    62                                         echo "</a>";
    63                                        
    64                                        
     58
     59                                        // //syn3 pijl met link
     60                                        // echo "<td style='vertical-align:middle'>";
     61                                        // echo "<a href='$webapp'>";
     62                                        // echo "<image src='img/stat.png'>";
     63                                        // echo "</a>";
     64
     65
    6566                                        echo "</tr>";
    6667                                }
     
    7475                echo "Klik <a href='https://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_URL]'>hier</a> voor een veilige verbinding.";
    7576        }
    76        
     77
    7778?>
    7879        </TD></TR>
  • npl/syn3/webportal/upload.sh

    rb4abfab r9670dd0  
    11[ ! "$1" ] && exit 1
    22cd src || exit 1
    3 sshkeyfix $1 || exit 1
     3#sshkeyfix $1 || exit 1
    44while true; do
    5     MD5=`ls -lcRi --time-style=+%s | md5sum`
     5    MD5=`ls -lcRi --time-style=+%s ../userportal .| md5sum`
    66    if [ "$MD5" != "$UPLOADEDMD5" ]; then
    77         cd ..
    88#        php updatelang.php
    99         cd src
    10          if rsync --exclude '.*' --delete -e ssh -v -a . $1:/var/www/htdocs/syn3/webportal ;then
     10         if rsync --exclude '.*' --delete -e ssh -v -a . $1:/var/www/htdocs/syn3/webportal &&
     11          rsync --exclude '.*' --delete -e ssh -v -a ../userportal/ $1:/var/www/htdocs/syn3/userportal ;then
    1112         #rsync -e ssh -v -a ../../syn3-scripts/scripts/ $1:/sbin ;
     13                ssh $1 "killall httpd"
    1214                UPLOADEDMD5="$MD5"
    1315         fi
  • npl/syn3/webportal/userportal/index.php

    rb4abfab r9670dd0  
    1 <h1>Nieuw wachtwoord instellen</h1>
    2 
     1<?
     2/** Syn-3 dynamic web portal
     3 *
     4 * (C) 2007-2018 DatuX / Syn-3
     5 */
     6?>
    37<?
    48include "ldap.php";
     
    1014        else
    1115                $error=user_resetpassword($_REQUEST['username'], $_REQUEST['old'], $_REQUEST['new1']);
    12                
     16
    1317        if ($error)
    14                 echo "<div style='color:red'>$error</div>";
     18                $error="<div style='color:red'>$error</div>";
    1519        else
    1620        {
    17                 echo "<div style='color:green'>Ok, uw wachtwoord is gewijzigd</div>";
    18                 echo "Klik <a href='/syn3/zarafa'>hier</a> om in te loggen op uw webmail";
    19                 exit;   
     21                // unset cookies, especially zarafa is acting weird if the password is changed.
     22                if (isset($_SERVER['HTTP_COOKIE'])) {
     23                        $cookies = explode(';', $_SERVER['HTTP_COOKIE']);
     24                        foreach($cookies as $cookie) {
     25                                $parts = explode('=', $cookie);
     26                                $name = trim($parts[0]);
     27                                setcookie($name, '', time()-1000);
     28                                setcookie($name, '', time()-1000, '/');
     29                        }
     30                }
     31                $ok=1;
    2032        }
    2133}
     
    2537
    2638
     39<html>
     40        <head>
     41        <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
     42        <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
     43        <META HTTP-EQUIV="Expires" CONTENT="-1">
     44        <link REL="SHORTCUT ICON" HREF="<? echo "http://$_SERVER[HTTP_HOST]/syn3/webportal/img/favicon.ico"; ?>">
     45        <link href="../webportal/main.css?ver=4.1" type="text/css" rel="stylesheet">
     46        <title><?System("hostname -f");?> - Wachtwoord wijzigen</title>
     47        </head>
     48        <body>
    2749
    28 <form action='index.php' method='post'>
    29     Usernaam: <input type='text' name='username' value='<?=$_REQUEST['username']?>'>
    30    
    31     <p>
    32    
    33     Oud password: <input type='password' name='old'  value='<?=$_REQUEST['old']?>'>
     50                <div id='logo'>
     51                        <a href='http://www.syn-3.eu'>
     52                        <img src='../webportal/img/Banner_SYN3_Portal.png'>
     53                        </a>
     54                </div>
    3455
    35     <p>
     56                <div id='content' style='padding-top:10em; text-align:center' >
    3657
    37     Nieuw password: <input type='password' name='new1'  value=''>
     58                        <h1>Nieuw wachtwoord instellen</h1>
    3859
    39     <p>
     60                        <?=$error ?>
    4061
    41     Nieuw password (nogmaals): <input type='password' name='new2'  value=''>
    42    
    43        
    44     <p>
    45        
    46     <input type='submit' value='Opslaan'>
    47 </form>
     62                        <? if ($ok) { ?>
     63
     64                                <div style='color:green'>Ok, uw wachtwoord is gewijzigd</div>
     65                                <p>Klik <a href='/'>hier</a> om verder te gaan.
     66
     67                        <? } else { ?>
     68               
     69                                <form  action='index.php' method='post' style='display: inline-block'>
     70                                        <table>
     71                                                <tr>
     72                                                        <td>Usernaam:
     73                                                        <td><input autofocus type='text' name='username' value='<?=$_REQUEST['username']?>'>
     74                                                <tr>
     75                                                        <td>Oud password:
     76                                                        <td><input type='password' name='old'  value='<?=$_REQUEST['old']?>'>
     77                                                <tr>
     78                                                        <td>Nieuw password:
     79                                                        <td><input type='password' name='new1'  value=''>
     80                                                <tr>
     81                                                        <td>Nieuw password (nogmaals):
     82                                                        <td><input type='password' name='new2'  value=''>
     83                                        </table>
     84
     85
     86                                    <p>
     87
     88                                    <input type='submit' value='Opslaan'>
     89                                </form>
     90                        <? } ?>
     91
     92                </div>
     93        </body>
     94</html>
  • npl/syn3/webportal/userportal/ldap.php

    rb4abfab r9670dd0  
    11<?
    2 /* 
     2/*
    33(C) 2004-2013 DatuX - info@datux.nl
    44
     
    2323        if (!$ldap_conn)
    2424                return (ldap_error($ldap_conn));
    25                
     25
    2626        if (strlen($new)<5)
    2727                return ("Nieuw wachtwoord mag niet korter zijn dan 5 tekens.");
    28                
     28
    2929        ldap_set_option($ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3);
    3030
     
    3232
    3333        $user_entries=ldap_get_entries($ldap_conn, $result);
    34        
     34
    3535//      echo "<pre>";print_r($user_entries);
    3636
    3737
    38         if ($user_entries['count']!=1)
    39                 return ("U heeft een ongeldige gebruikersnaam ingegeven");
    40        
     38        // if ($user_entries['count']!=1)
     39        //      return ("U heeft een ongeldige gebruikersnaam ingegeven");
     40
    4141        $dn=$user_entries[0]['dn'];
    42    
     42
    4343        if (!ldap_bind($ldap_conn, $dn, $old))
    4444        {
    4545                return ("U heeft uw oude wachtwoord niet goed ingegeven: ".ldap_error($ldap_conn));
    4646        }
    47        
    48        
     47
     48
    4949        if (!ldap_mod_replace($ldap_conn, $dn, array(
    5050                "userPassword" => "{SHA}".base64_encode(pack("H*", sha1( $new )))
     
    5353                return ("Password wijzigen is mislukt: ".ldap_error($ldap_conn));
    5454        }
    55        
    56        
     55
     56
    5757}
    5858
  • npl/syn3/webportal/webportal.SlackBuild

    rb4abfab r9670dd0  
    55##################################### Build dependency info:
    66
    7 #Strict build-dependencies. 
     7#Strict build-dependencies.
    88#Only use when really neccesary, this will rebuild our package if the dependencie has changed:
    99##DEP:linux
     
    2828ARCH=noarch
    2929
    30 #trap files erin
     30#files erin
    3131mkdir -p /tmp/pkg/var/www/htdocs/syn3/webportal || exit 1
    3232cp -a src/* /tmp/pkg/var/www/htdocs/syn3/webportal || exit 1
     33
     34mkdir -p /tmp/pkg/var/www/htdocs/syn3/userportal || exit 1
     35cp -a userportal/* /tmp/pkg/var/www/htdocs/syn3/userportal || exit 1
    3336
    3437mkdir -p /tmp/pkg/etc/postinst.d || exit 1
     
    4245#make main package
    4346syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1
    44 
    45 
  • npl/syn3/webportal/webportal.build

    rb4abfab r9670dd0  
    1 5124
     15126
  • npl/syn3/webportal/webportal.md5

    rb4abfab r9670dd0  
    88c9a88e87ef4b242a41c3909c1599cc5a  ./src/img/tr-bg.gif
    99da822aee1a92e293e231bba79c7fea6e  ./src/img/user_bg.gif
    10 f4a0b3d4d568f9a6e7a2f70511f91c9d  ./src/index.php
     102edf9c890e4d3febe7533399d6084a4d  ./src/index.php
    1111bc451aed5c27aafe8c98d17b56235d58  ./src/main.css
    12 0dab2532142ee8a60fd2b91cd526da09  ./upload.sh
    13 643bdb7030b919c48676045d1b8f0d4b  ./webportal.SlackBuild
    14 cdffc5ce8a276bef238e7831ebf39316  ./webportal.SlackBuild.log.gz
    15 c8639b4c582528a04a2777bbc2ec90aa  ./webportal.pkg
     12bf09fa371345d2aa30d7aa87be834473  ./upload.sh
     137f45f0bb430ee5d7071c5791e6c032a4  ./userportal/index.php
     143377cb00324d0117c6d0ca69717ac2f1  ./userportal/ldap.php
     1592cf074cee59c2a1e41fdf9ebdcd64b0  ./userportal/webportal.desc
     16b89ad74b3201219efbf12a49c9774d7d  ./userportal/webportal.png
     17481f7ea97bba6cf95d18d275b955b1ab  ./webportal.pkg
     18dbc09d3ef3c391c169787fa2b445e470  ./webportal.SlackBuild
     19b08ece7c6ad33d69e99a083a34ee75f9  ./webportal.SlackBuild.log.gz
Note: See TracChangeset for help on using the changeset viewer.