Tag Archives: Andrea Veri

Andrea Veri: Setting up your SSL certificates on OpenLDAP by using a Mozilla NSS database

I’ve recently spent some time setting up TLS/SSL encryption (SSSD won’t send a password in clear text when an user will try to authenticate against your LDAP server) on an OpenLDAP istance and as you may know the only way for doing that on a RHEL / CentOS environment is dealing with a Mozilla NSS database (which is, in fact, a SQLite database). I’ve been reading all the man pages of the relevant tools available to manipulate Mozilla NSS databases and I thought I would have shared the whole procedure and commands I used to achieve my goal. Even if you aren’t running an RPM based system you can opt to use a Mozilla NSS database to store your certificates as your preferred setup.

On the LDAP (SLAPD) server

Re-create *.db files

mkdir /etc/openldap/certs
modutil -create -dbdir /etc/openldap/certs

Setup a CA Certificate

certutil -d /etc/openldap/certs -A -n “My CA Certificate” -t TCu,Cu,Tuw -a -i /etc/openldap/cacerts/ca.pem
where ca.pem should be your CA’s certificate file.

Remove the password from the Database

modutil -dbdir /etc/openldap/certs -changepw ‘NSS Certificate DB’

Creates the .p12 file and imports it on the Database

openssl pkcs12 -inkey domain.org.key -in domain.org.crt -export -out domain.org.p12 -nodes -name ‘LDAP-Certificate’
pk12util -i domain.org.p12 -d /etc/openldap/certs

where domain.org.key and domain.org.crt are the names of the certificates you previously created at your CA’s website.

List all the certificates on the database and make sure all the informations are correct

certutil -d /etc/openldap/certs -L

Configure /etc/openldap/slapd.conf and make sure the TLSCACertificatePath points to your Mozilla NSS database

TLSCACertificateFile /etc/openldap/cacerts/ca.pem
TLSCACertificatePath /etc/openldap/certs/
TLSCertificateFile LDAP-Certificate

Additional commands

Modify the trust flags if necessary

certutil -d /etc/openldap/certs -M -n “My CA Certificate” -t “TCu,Cu,Tuw”

Delete a certificate from the database

certutil -d /etc/openldap/certs -D -n “My LDAP Certificate”

On the clients (nslcd uses ldap.conf while sssd uses /etc/sssd/sssd.conf)

On /etc/openldap/ldap.conf

BASE dc=domain,dc=org
URI ldaps://ldap.domain.org

TLS_CACERTDIR /etc/openldap/certs
TLS_REQCERT allow

On /etc/sssd/sssd.conf

ldap_tls_reqcert = allow
ldap_uri = ldaps://ldap.domain.org

How to test the whole setup

ldapsearch -x -b 'dc=domain,dc=org' -D "cn=Manager,dc=domain,dc=org" '(objectclass=*)' -H ldaps://ldap.domain.org -W -v

Troubleshooting

If anything goes wrong you can run SLAPD with the following args for its debug mode:

/usr/sbin/slapd -d 256 -f /etc/openldap/slapd.conf -h “ldaps:/// ldap:///”

…read more
Source: FULL ARTICLE at Planet Ubuntu

Flavia Weisghizzi: Blogging time! (OPW week #8)

Blogging time here in Rome!
Last two weeks have been very demanding for me… Moreover flu and elections (I have run as officer) stroke me hard.
Nevertheless, I’ve done my job

Ad articles!

During last days I’ve completed the interview to Andrea Veri. I wrote an article and explained the hard work of sysadmin :)
I uploaded to gnome.org, and hope that very soon it will be available to be read!

UPDATE: my article is finally out! Thanks to Fabiana, Andreas and Juanjo!!! You can read it here!

Interviews! Interviews!

Finally I’ve completed the interview to Greg KH, I need to collect a pair of interviews to start publishing them.
But it’s ready… stay tuned :)

Then I’ve prepared and sent questions to interview Brett Legree… I’m waiting for his answers :)

Moreover, I’m looking for some GNOME 3 users to purpose for new interviews… And I have some cats in my bags…

GNOME 3.8 release plan.

In a month GNOME 3.8 will be released, and everyone in marketing team is very excited and deeply involved in release notes and press release writing.

I don’t feel very comfortable with release notes, but I’d like to put my experience as journalist on press release.

In relation of GNOME 3.8 release instead, I’ve planned with Allan to write a couple of interviews, and I’ve set the first one with William Jon McCann for next Friday…

…and last but not least…..

My work on newcomers is still in progress… I’m working on something new that improves the research I’ve just done…

But this will be a surprise…

New interesting issues are coming… Stay connected!

Flavia :)

…read more
Source: FULL ARTICLE at Planet Ubuntu

Flavia Weisghizzi: Blogging time! (OPW)

Blogging time here in Rome!
Last two weeks have been very demanding for me… Moreover flu and elections (I have run as officer) stroke me hard.
Nevertheless, I’ve done my job

Ad articles!

During last days I’ve completed the interview to Andrea Veri. I wrote an article and explained the hard work of sysadmin :)
I uploaded to gnome.org, and hope that very soon it will be available to be read!

Interviews! Interviews!

Finally I’ve completed the interview to Greg KH, I need to collect a pair of interviews to start publishing them.
But it’s ready… stay tuned :)

Then I’ve prepared and sent questions to interview Brett Legree… I’m waiting for his answers :)

Moreover, I’m looking for some GNOME 3 users to purpose for new interviews… And I have some cats in my bags…

GNOME 3.8 release plan.

In a month GNOME 3.8 will be released, and everyone in marketing team is very excited and deeply involved in release notes and press release writing.

I don’t feel very comfortable with release notes, but I’d like to put my experience as journalist on press release.

In relation of GNOME 3.8 release instead, I’ve planned with Allan to write a couple of interviews, and I’ve set the first one with William Jon McCann for next Friday…

…and last but not least…..

My work on newcomers is still in progress… I’m working on something new that improves the research I’ve just done…

But this will be a surprise…

New interesting issues are coming… Stay connected!

Flavia :)

 

Blogging time here in Rome!

Last two weeks have been very demanding for me… Moreover flu and elections (I have run as officer) stroke me hard.

Nevertheless, I’ve done my job :)

Ad articles!

During last days I’ve completed the interview to Andrea Veri. I wrote an article and explained the hard work of sysadmin :)

I uploaded to gnome.org, and hope that very soon it will be available to be read!

Interviews! Interviews!

Finally I’ve completed the interview to Greg KH, I need to collect a pair of interviews to start publishing them.

But it’s ready… stay tuned :)

Then I’ve prepared and sent questions to interview Brett Legree… I’m waiting for his answers :)

Moreover, I’m looking for some GNOME 3 users to purpose for new interviews… And I have some cats in my bags…

GNOME 3.8 release plan.

In a month GNOME 3.8 will be released, and everyone in marketing team is very excited and deeply involved in release notes and press release writing.

<p lang="en-GB" style="margin-bottom: …read more
Source: FULL ARTICLE at Planet Ubuntu