Leave a reply

Synology LDAP + DokuWiki

This is a short tutorial to use the integrated Synology LDAP with the DokuWiki Plugin. This will give you the opportunity to have a central user management in your network.

Synology Auth. Settings
Base DN:dc=fileserver,dc=customer,dc=intern
Bind DN:uid=root,cn=users,dc=fileserver,dc= customer,dc=intern

Install the „LDAP Auth Plugin“ in your DokuWiki and change following settings:

LDAP Plugin by Andreas Gohr
Settings of your LDAP Plugin
$conf['title'] = 'Customer Wiki';
$conf['license'] = 'cc-by-sa';
$conf['useacl'] = 1;
$conf['authtype'] = 'authchained';
$conf['superuser'] = '@admin';
$conf['disableactions'] = 'register';
$conf['plugin']['authldap']['server'] = '127.0.0.1';
$conf['plugin']['authldap']['usertree'] = 'dc=fileserver,dc= customer,dc=intern';
$conf['plugin']['authldap']['grouptree'] = 'cn=groups,dc=fileserver,dc= customer,dc=intern';
$conf['plugin']['authldap']['userfilter'] = '(&(uid=%{user})(objectClass=posixAccount))';
$conf['plugin']['authldap']['groupfilter'] = '(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['bindpw'] = ;
$conf['plugin']['authldap']['debug'] = 1;
$conf['plugin']['authldap']['modPass'] = 0;
$conf['plugin']['authchained']['authtypes'] = 'authplain:authldap';

Install the „chained auth plugin“ that you can login with the local authentication service and you LDAP Server. This can rescue if you have issues with your network. Then change following settings in the Admin/Configuration Settings:

Settings for „Chained authentication plugin“
Chained authentication plugin

plugin»authchained»authtypes
Seperated list of authentication plugins in chaine, seperator is ":", e.g.: "authpam:authplain"

plugin»authchained»usermanager_authtype
Authentication plugin from which the capabilities are retrieved, when no user is logged in, e.g.: "authplain"
Change the Authentication Setting to „authchained“


Leave a reply

Zyxel – NXC 2500 Wireless Network Roaming

A few settings to get a better roaming between Zyxel Access Points

  1. Activate DCS (dynamic channel selection) more Info
    and set it to a specific time. For example 3 am. Take care that you do not choose the same time on all „Radio Profile’s“
  2. Disable A-MPDU Aggregation and also A-MSDU Aggregation
  3. Set the „Disassociate Station Threshold“ between -70 and -80
  4. Enable „Allow Station Connection after Multiple Retries“ between 3 and 6
  5. In the 2,4 GHz Radio Profile set the Multicast Rate fix and on 11 Mbps
  6. In the 5 GHz Radio Profile set the Multicast Rate fix and on 36 Mbps
  7. If you want to set the 5 GHz Channel Selection Method to „manual“ you should choose following Channel IDs: 100, 108 and 132
NXC Radio Profil 2,4 GHz
NXC Radio Profil 2,4 GHz
NXC Radio Profil 5 GHz
NXC Radio Profil 5 GHz


Leave a reply

Filemaker Install on MacOS Server

If you try to install Filemaker on a MacOS System with the installed server app you will get following error.

This update cannot be installed while Apache is still running. Please stop Apache and try again.

If you have a newer System than 10.12 (High Sierra) you can not use the „serveradmin stop“ command to stop the web services.

If you check the services you can modify (in 10.14 for example), you will get following:

sudo serveradmin list
status
bonjour
firewall
san
signaler
sharing
accounts
dirserv
config
devicemgr
alerts
history
info
nfs
certs
filebrowser

So we have to change the webserver settings in the apache config file. Edit it with following command:

sudo nano /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf

Search for the line with „Listen 80 & Listen 443“ and set a „#“ in front of it. Save the file and reboot your Mac. (or type „sudo killall httpd“)

mymacpro:~ sadmin$ cat /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf
DocumentRoot /Library/Server/Web/Data/Sites/Default
ServerRoot /usr
DirectoryIndex index.html index.php default.html
ErrorLog "/private/var/log/apache2/service_proxy_error.log"
CustomLog "/private/var/log/apache2/service_proxy_access.log" combinedvhost
LogLevel info ssl:info
PidFile /var/run/service_proxy.pid
User _www
Group _www

#Listen 80
#Listen 443

.
.
.
.


Leave a reply

Apple Mail HTML Signature

With this little hack you can add a linked image to you Apple Mail signature and from this moment you can change the image on your Web-Server and all your signatures will use the new image.

First you have to upload the picture to a webserver. Make sure that you have the right image size, in my example it is „295 × 120 pixels“. After the upload you have to get the data-url it should look like:

https://www.schaupper.at/wp-content/uploads/2020/05/TAW_LOGO_Mail_Signatur.png

Open your Mail Application and create a new signature with the text you want to have and on the end of it add following characters: XXXXXX
Then close the Mail Application.

Now navigate to your User-Library folder on your Mac. This can be done with holding the Option-Key while pressing on „GO“ in the Finders Menu Bar. Then you can click on „Library“
(If you have problems with this you can visit HELP)


Now navigate to MAIL -> V7 -> MailData -> Signatures and open the AllSignatures.plist file with TextEdit (use right click „Open With“ -> „Other“ and then choose TextEdit)

Search in the document for the name you gave the signature before and you will get something like this.

<dict>
    <key>SignatureIsRich</key>
    <false/>
    <key>SignatureName</key>
    <string>Bildtest</string>
    <key>SignatureUniqueId</key>
    <string>D5DC8855-707B-4637-8614-E46B1A933E4D</string>
</dict>

With the ID (D5DC8855-707B-4637-8614-E46B1A933E4D) we can now search in the folder for the right signature file. In our example:

D5DC8855-707B-4637-8614-E46B1A933E4D.mailsignature

open it in the same way like the other file. (with TextEdit)

Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii
Message-Id: <468B855C-3BEF-4C0A-A997-59605984D508@2100.intern>
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))

<body dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; widows: =
auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;"><div dir=3D"auto" style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;"><div dir=3D"auto" style=3D"text-align: start; =
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div dir=3D"auto" style=3D"text-align: =
start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;"><div dir=3D"auto" =
style=3D"text-align: start; text-indent: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div =
class=3D"ApplePlainTextBody">XXXXXX</div></div></div></div></div></body>=

Now search for the XXXXXX and replace it with following:

<img src="PUT-YOUR-HTML-STRING-HERE"> 

in our example:

<img src="https://www.schaupper.at/wp-content/uploads/2020/05/TAW_LOGO_Mail_Signatur.png"> 

Press save and then open the Sub-Menu with a right click and open the Information by clicking on „Get Info“.

And lock it by clicking on „Locked“ if you forget this, Apple Mail will replace your changes with the original content of the signature.

After this you can use your Signature like you did before, with a benefit that you can replace the picture by just changing the file on your webserver.

Operation System.: Catalina 10.15.4
Apple Mail: Version 13.4 (3608.80.23.2.2)


Leave a reply

Mac ISO to USB-Device (Terminal)

  1. Connect your USB Device to your machine
  2. Type following in your Terminal Application
diskutil list
  1. Finde the device you want to be wiped an replaced with the contend of your ISO (in our case /dev/disk2)
  1. Unmount the USB Device by following command:
diskutil unmountDisk YOUR-USB-DEVICE

in our example:

diskutil unmountDisk /dev/disk2
  1. Use the dd command
sudo dd if=YOUR.iso of=YOUR-USB-DEVICE bs=1m

in our example:

sudo dd if=/Users/vschaupper/Downloads/2020-02-13-raspbian-buster.img of=/dev/disk2 bs=1m

Short Info:

diskutil list
diskutil unmountDisk YOUR-USB-DEVICE
sudo dd if=YOUR.iso of=YOUR-USB-DEVICE bs=1m

Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen