This post will give all the steps for creating LDAP from Apache Directory Studio. Here post will be using Apache Directory Studio 1.5.3 version.

1. Create LDAP Server

image

2. Start server

3. Create the Connection

(for the default instance of the Apache directory server, user name is ‘uid=admin,ou=system’ and the Bind password is ‘secret’)

image

4. Then browser LDPA by click on the connection.(If the connection is successfully established, you should see an outline of the Directory Information Tree (DIT) in the LDAP Browser view)

image

5. Right-click on the  node ou or dc and select New|New Entry. The New Entry wizard appears.

image

6. In the Entry Creation Method pane, select the Create entry from scratch radiobutton. Click Next.

image

7. Find the organizationalUnit object. Select it then click Add.

image

8.  Click Next. On the RDN field enter ou. On the value field enter ‘Groups. The DN Preview should like below

(Distinguished Name (dn), The Parent field should same like below)

image

9. Click Next. The Attributes window will appear. Examine the values.

image

10 . Do the same for Users as below

image

 

Now some users (Staff)

We'll place their personal information under the ou=users; whereas we'll place their authorization levels under the ou=groups.
Let's start with the ou=users. We'll be adding new user called ‘madhuka’. Person using theinetOrgPerson object.

The inetOrgPerson[1] object class is a general purpose object class that holds attributes about people.

11. Right-click the ou=Users entry. Select New. Select New Entry

image

12. Select Create entry from scratch. Click Next.

13. Find inetOrgPerson object. Select it then click Add.

image

14. On the RDN field enter cn. On the value field enter madhuka.

(If ‘dn’ not added defaults, you need to enter a Distinguished Name (dn).)

image

15. Under the sn attribute, enter ‘udantha’(sn stands for Surname)

16. You need to add a username for this user. Right-click on the same window. Select New Attribute. TheAttribute Type window will appear.

image
17. On the Attribute type field, enter uid. click for finsh

image

18. We need to add a password for this user. Right-click on the same window. Select New Attribute. The Attribute Type window will appear.

19. On the Attribute type field, enter userPassword.

20 . You will be asked to enter a password. Enter pass as the new password. Make sure that the Select Hash Method is set to SHA

image

Add the Groups (Authorization Levels)

21. Same like above steps we select ‘New Entry’ and ‘Create entry from scratch

22. In ‘Object Classes’ window we will pick ‘groupOfNames’, Select it then click Add.

image

23. RDN field enter cn. On the value field enter ‘admin’

24. As we pcik ‘groupOfNames’ we will have member field and for that value we make double click

24. Then DN edit will come and then browser for the user that we need.

image

25. Field will be picked as ‘cn=madhuka,ou=users,dc=example,dc=com’ (If you have few member you can add you can add some groups as well).

26. Here is LDAP Browser panel. Expand the Root DSE folder.

image

 

(If you pick ‘uniqueMember by slectinggroupOfUniqueNames’ object. A uniqueMember attribute. We'll be placing the Distinguished Name (dn) of our users in this entry. One uniqueMember attribute will represents one user.)

 

[1] http://www.faqs.org/rfcs/rfc2798.html

0

Add a comment

We used have  Singleton Design Pattern in our applications whenever it is needed. As we know that in singleton design pattern we can create only one instance and can access in the whole application. But in some cases, it will break the singleton behavior.
Microservices can have a positive impact on your enterprise. Therefore it is worth to know that, how to handle Microservice Architecture (MSA) and some Design Patterns for Microservices. General goals or principles for a microservice architecture.
Last few years has been a great year for API Gateways and API companies. APIs (Application Programming Interfaces) are allowing businesses to expand beyond their enterprise boundaries to drive revenue through new business models.
When two or many applications want to exchange data, they do so by sending the data through a channel that connects the each others.
Estimation for Software project development is the process of predicting the most realistic amount of effort (expressed in terms of person-hours or money) required to develop or maintain software based on incomplete, uncertain and noisy input.
Enterprise Data Integration is a broad term used in the integration landscape to connect multiple Enterprise  applications and hardware systems within an organization. All these enterprise data integration lead to achieve to remove the complexity by simplifying data management as a whole.
If you’re familiar with SEIM tools or OSSEC, then you know syscheck. Syscheck is the integrity checking daemon within OSSEC. It’s purpose is simple, identify and report on changes within the system files.
The Linux kernel in Ubuntu provides a packet filtering system called netfilter, and the traditional interface for manipulating netfilter are the iptables suite of commands. The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls.
Count line when words has been matched

$ grep -c 'word' /path/to/file

Pass the -n option to precede each line of output with the number of the line in the text file

$ grep -n 'root' /etc/passwd

Ignore word case

$ grep -i 'word' /path/to/file

Use grep recursively under each directory

$ grep -r
Finding the logs in my server. I generally use lsof to list what is my server.

lsof | grep log

I check which log are reading by OSSEC

Check cat /var/ossec/etc/ossec.conf  |grep "<location>/"

Add new access log to OSSCE.
I am
I am
Archives
Total Pageviews
Total Pageviews
2 0 5 8 0 4 9
Categories
Categories
Loading