Posts

Showing posts from 2010

LDAP-SAMBA-PDC on Redhat Enterprise Linux 5

Image
1. Introducing about LDAP LDAP protocol (Lightweight Directory Access Protocol) LDAP is a standard directory access protocol, or as a client and severs language to use to communicate with each other. LDAP is a protocol "lightweight" means there is a protocol that is effective, simple and easy to install. while we use high level functions. This contrasts with the protocol "heavyweight" as the directory access protocol X.500 (DAP) using the encryption method is too complicated. LDAP uses a simple set of methods and a protocol attached to the application layer. The mode of operation of the LDAPModel of LDAP client / server: We'll start looking at LDAP as the communication protocol client / server. Protocol client / server: Model is a protocol between a client program running on one computer sends a request over the network to another computer running a server program (to serve), this program receive the following requirements and implementation then it r

Commenting multiple lines in a file with vi editor

From command mode, type : n1,n2s/^/#/ n1, n2 are the first and last line that need to comment example: comment from line 10-20 use : 10,20s/^/#/ And to uncomment, we use : n1,n2s/#/

Fix error “cannot open Packages database in /var/lib/rpm”

Fix error  “cannot open Packages database in /var/lib/rpm” when try to update (upgrade) some packages How to fix: Step1: Remove old lock files running #rpm  -rf /var/lib/rpm/__db* Step2: Rebuild rpm database #rpm  -vv –rebuilddb

How email works

Image
Using email is very easy, but setting up your own email server is not. This article describes how email works to give you an introduction on the various components needed to implement your own mail server. The sender uses a  Mail User Agent (MUA)  to compose an email. An MUA, often referred to as a mail client, is a program that allows a user to compose, send and receive email. The mail is sent to a  Mail Transfer Agent (MTA)  which is responsible for sending the email to the receipient’s MTA. An MTA transfers mail messages between computers via the SMTP protocol. Postfix, Sendmail, Exim and Qmail are examples of an MTA. The recipient’s MTA receives the email and passes it on to a  Mail Delivery Agent (MDA) . An MDA manages the user’s mailbox and handles mails for delivery to the MUA using either the POP or IMAP protocol. POP (Post Office Protocol) Although most mail clients have an option to  Leave a copy on the server , POP is generally used to download all message