Posts

Showing posts from June, 2015

Basics of LDAP & OpenLDAP

LDAP - Lightweight Directory Access Protocol. OpenLDAP - Server which operates on LDAP for eg. Microsoft AD Directory Service - 1. Stores & organize information in directory i.e. in hierarchical manner and provides access to it 2. Eg. Domain Name System. DNS is a most successful implementation of Directory service over Internet Directory Structure - 1. Directory service stores information in Directory Structure. The diagram of Directory structure is called Directory Information Tree. 2. A Directory is a tree of Entries 3. An entry is set of attributes 4. An attribute is has a Name and one or more value 5. Attributes are Defined in Schema 6. Each entry has an Unique Identifier i.e. DN Five Major Characteristics of Directory Service - 1. Higly optimized for reads 2. Information can be stored in Distributed model 3. Can extend types of information to be stored 4. Replication 5. Advance search capabilities Difference between Databases and Directory Services S...

Shell (BASH) Scripting QuickStart Guide for Administrators

What is ShellScripting ? Shell scripting is used to automate certain tasks, make processes easy for user such as installation, monitor system resources, etc. Default linux shell is BASH -> Bourne Again Shell replacement for Bourne Shell. Written by Brian Fox. It is basically an interpretter, which interprete our commands and convert it into binary for CPU to understand. Bash also can read commands from file which is also called as Script. Script is nothing but a sequence of commands in a simple ASCII text How to write bash script ? There are various components in shellscript. Major components are as below:        1. Shebang Line      2. Variables       3. Statements      4. Loop      5. Functions      6. Regular Expressions Shebang Line: #!/bin/bash  --> Shebang line  Every shell script starts with this Sh...