Welcome to TQ CMS knowledge base. Here you will find useful information for all sorts of things.

OpenLDAP

First of all you need to install openldap on the server which is easy, just download the source from www.openldap.org and unpack it. Then do ./configure && make depend && make && make install.

After it's installed you have to edit slapd.conf and change it something like this.

database        bdb
suffix          "dc=johnblaid,dc=se"
rootdn          "cn=admin,dc=johnblaid,dc=se"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory       /var/lib/openldap-data
# Indices to maintain
index cn,sn,uid pres,eq,approx,sub
index objectClass eq

After it's done it's time to build the ldap db and you can use these as example files.


- THIS LINE HAS TO BE BLANK -
dn: dc=johnblaid,dc=se
dc: johnblaid
objectClass: top
objectClass: domain

dn: ou=People,dc=johnblaid,dc=se
ou: People
objectClass: top
objectClass: organizationalUnit

dn: ou=Group,dc=johnblaid,dc=se
ou: Group
objectClass: top
objectClass: organizationalUnit


- THIS LINE HAS TO BE BLANK -
dn: cn=group1,ou=Group,dc=johnblaid,dc=se
objectClass: posixGroup
objectClass: top
cn: group1
userPassword: {crypt}x
gidNumber: 5000

dn: cn=group2,ou=Group,dc=johnblaid,dc=se
objectClass: posixGroup
objectClass: top
cn: group2
userPassword: {crypt}x
gidNumber: 5001


- THIS LINE HAS TO BE BLANK -
dn: uid=testuser,ou=People,dc=johnblaid,dc=se
uid: testuser
cn: testuser
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$5$BdGKbv3c5Q/cWrj3$LDRRYqE45NMDj9zlkYgbcKTRnOaRmOvJtd5rr7outT3
shadowLastChange: 15719
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /testuser
gecos: ,,,



- THIS LINE HAS TO BE BLANK -
dn: cn=users,ou=Group,dc=johnblaid,dc=se
objectClass: posixGroup
objectClass: top
cn: users
userPassword: {crypt}x
gidNumber: 100


You import these files with these commands
ldapadd -x -D "cn=admin,dc=johnblaid,dc=se" -W -f import1.ldif
ldapadd -x -D "cn=admin,dc=johnblaid,dc=se" -W -f import2.ldif
ldapadd -x -D "cn=admin,dc=johnblaid,dc=se" -W -f import3.ldif
ldapadd -x -D "cn=admin,dc=johnblaid,dc=se" -W -f import4.ldif

The password for user "testuser" is "faster8976"

To setup the client side please use this site as reference: https://wiki.archlinux.org/index.php/OpenLDAP_Authentication#Client_Setup

There is 56 guides in the database.

More news

Bootstrap
25 February, 2014

Bootstrap

I have implemented bootstrap into the project and changed all code in the administration to use this new framework and I really love the result that I see after a couple of hours of coding. To make things look so good has never been so easy as with
Guides
20 February, 2014

Guides

I have added some of my guides for different things when it comes to the different areas in the computer, I will continue to add guides and especially when it comes to things that I am using every now and then in my own work.
First phase completed
17 February, 2014

First phase completed

Then I had time to finish the dirty work with the page and now it only remains little touches here and there and I need to upload information about what I'm doing and my progress on the project as well.
Time for a change
16 February, 2014

Time for a change

Today I've decided to update my own personal website with the latest version of my project called TQ CMS and with a completely new design that is responsive. My goal with this project is to make it as easy as possible for the end user while

Spotlight

The next step

The next step

I have now resumed my programming after a couple of months of vacation which was very much needed. I got a call one day from a friend that needed a system which can handle peoples reports on various problems like kitchen problems, water problems etc and I decided to make a system for it. Little did I know that it would totally revolutionise my own project and that it would teach me much needed jquery skills to further enhance the CMS. I also