Engineering and technology notes

Ubuntu 18.04 LTS : OpenLDAP : LDAP over SSL/TLS

root@dlp:~#

cp /etc/ssl/private/server.key \
/etc/ssl/private/server.crt \
/etc/ssl/certs/ca-certificates.crt \
/etc/ldap/sasl2/

root@dlp:~#

chown openldap. /etc/ldap/sasl2/server.key \
/etc/ldap/sasl2/server.crt \
/etc/ldap/sasl2/ca-certificates.crt
root@dlp:~#

vi mod_ssl.ldif
# create new
dn: cn=config
changetype: modify
add: olcTLSCACertificateFile
olcTLSCACertificateFile: /etc/ldap/sasl2/ca-certificates.crt
-
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/ldap/sasl2/server.crt
-
replace: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/ldap/sasl2/server.key

root@dlp:~#

ldapmodify -Y EXTERNAL -H ldapi:/// -f mod_ssl.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn=config"
[3] Configure LDAP Client
If you’d like to make sure the connection between LDAP server and client is encrypted, use tcpdump and other network capture software on LDAP server.
root@www:~#

echo “TLS_REQCERT allow” >> /etc/ldap/ldap.conf
root@www:~#

vi /etc/ldap.conf
# line 261: uncomment

ssl start_tls

root@www:~#

logout

www login: ubuntu     # LDAP user
Password:
Last login: Tue Jun  5 11:22:06 JST 2018 on ttyS0
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Jun  5 15:05:32 JST 2018

  System load:  0.0               Processes:           93
  Usage of /:   6.4% of 28.45GB   Users logged in:     0
  Memory usage: 3%                IP address for ens3: 10.0.0.31
  Swap usage:   0%

 * Meltdown, Spectre and Ubuntu: What are the attack vectors,
   how the fixes work, and everything else you need to know
   - https://ubu.one/u2Know

16 packages can be updated.
8 updates are security updates.

ubuntu@www:~$      # logined

Source: Ubuntu 18.04 LTS : OpenLDAP : LDAP over SSL/TLS : Server World

Ubuntu 18.04 LTS : OpenLDAP : LDAP over SSL/TLS was last modified: March 27th, 2024 by Jovan Stosic

How much entities do you have in Homeassistant? 

Just go to to the developer tools -> Template and put the below code in there. Sum the total and use that in the poll (feel free to copy paste the result in the comments :-))

Sensors: {{ states.sensor | count }}
Lights: {{ states.light | count }}
Switches: {{ states.switch | count }}
Binary sensors: {{ states.binary_sensor | count }}
Automations: {{ states.automation | count }}

 

Source: How much entities do you have in Homeassistant? – Home Assistant Community

How much entities do you have in Homeassistant?  was last modified: December 20th, 2023 by Jovan Stosic

How to get more dynamic range in your images – Color luminance

dynamic range colour luminance

Find the Colour Luminance setting in Lightroom or Camera RAW under the HSL/Grayscale dropdown panel.

6. Colour luminance

Colour luminance settings can give you control over dynamic range. In Lightroom and Camera Raw this can be done with the HSL/Color Panel’s Luminance tab. We can either use the sliders or drag over the image with the target tool. Darkening the blues here dramatically improves the sky

https://amateurphotographer.com/technique/how-to-get-more-dynamic-range-in-your-images/

How to get more dynamic range in your images – Color luminance was last modified: November 11th, 2023 by Jovan Stosic

virtualbox – Why is my virtual machine inaccessible?

Go to the location where you store your VM /home/ron/VirtualBox VMs/Semios Win7 /.Open .vbox in your favorite text editor to check if it is empty. Probably it is 🙂 In the same folder you should have file Semios Win7 .vbox-prev. Copy the contents of this file to Semios Win7.vbox, save, and try again.

Source: virtualbox – Why is my virtual machine inaccessible? – Ask Ubuntu

virtualbox – Why is my virtual machine inaccessible? was last modified: October 25th, 2023 by Jovan Stosic

How to Move (mv) Multiple Directories or Files to a Folder at a Time – Linux – DevOpsCube

For example, if you want to move folder1, folder2, folder3 to folder4, you can use the following comand.

mv -t folder4 folder3 folder2 folder1

Source: How to Move (mv) Multiple Directories or Files to a Folder at a Time – Linux – DevOpsCube – DevOps Discussion Forum

How to Move (mv) Multiple Directories or Files to a Folder at a Time – Linux – DevOpsCube was last modified: October 16th, 2023 by Jovan Stosic