Netatalk (Open Source AFP implementation) Centos 7

Install yum -y install netatalk avahi dbus nss-mdns chkconfig netatalk on chkconfig messagebus on chkconfig avahi-daemon on adduser afp passwd afp vi /etc/netatalk/afpd.conf “hostname” -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword vi /etc/netatalk/AppleVolumes.default :DEFAULT: “HTTPD” allowed_hosts:10.0.29.0/24 allow:afp rwlist:afp options:upriv,usedots dperm:0770 fperm:0660 ~ “HOME” /var/www/html/ “HTML” vi /etc/nsswitch.conf hosts:      files mdns4_minimal dns mdns mdns4 vi /etc/avahi/services/afpd.service […]

Read More

steps to visualize HTTP server logging – part I

apache check Apache server version by creating a simple e.g. serverinfo.php file with following statement: <?php phpinfo(); ?> and open in your browser: http://your host/serverinfo.php. Find the version info in the Apache Version section: Apache Version – Apache/2.0.53 (Linux/SUSE) or run from the command line: /usr/sbin # apache2ctl -v Server version: Apache/2.0.53 Server built: Aug […]

Read More

steps to visualize HTTP server logging – part II

gnuplot 2d edit /etc/apache2/mod_log_config.conf and add a new logformat (plots) – (“mod_log_config.conf” is referenced by “httpd.conf”) LogFormat “%h %l %u %t “%r” %>s b  “{Referer}i” “%{User-Agent}i”” combined LogFormat “%h %{%d.%m.%Y:%H:%M:%S}t %D %U” plots The characteristics of the “%” directives are: …h Remote host…{format}t time & date …D time taken to serve the request, in microseconds.…U […]

Read More

ldapsearch

yum whatprovides */ldapsearch sudo yum install openldap-clients ldapsearch -D “cn=admin,DC=timetoact,DC=de” -w Passw0rd  -p 389 -h tta-wp85vm.timetoact.de -b “DC=timetoact,DC=de” -s sub “(objectclass=*)” ldapsearch -D “cn=admin,DC=timetoact,DC=de” -w Passw0rd  -p 389 -h tta-wp85vm.timetoact.de -b “ou=users,dc=timetoact,dc=de” -s sub “(cn=wp85admin)” ldapsearch -D “cn=admin,DC=timetoact,DC=de” -w Passw0rd  -p 389 -h tta-wp85vm.timetoact.de -b “DC=timetoact,DC=de” -s sub “(cn=wp85admins)”

Read More

openldap phpLDAPAdmin

yum -y install php php-mbstring php-pear yum -y install epel-release yum –enablerepo=epel -y install phpldapadmin   vi /etc/phpldapadmin/config.php $servers->setValue(‘login’,’attr’,’dn’); //$servers->setValue(‘login’,’attr’,’uid’); vi /etc/php.ini date.timezone = Europe/Zurich vi /var/www/html/index.php <html> <body> <div style=”width: 100%; font-size: 40px; font-weight: bold; text-align: center;”> <?php print Date(“Y/m/d”); ?> </div> </body> </html>   vi /etc/httpd/conf/httpd.conf Listen 8080 vi /etc/httpd/conf.d/phpldapadmin.conf # #  Web-based […]

Read More