LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-07-2003, 07:38 AM   #1
#samba#
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
LDAP Account Manager (LAM) on Redhat 9


Has anyone out there installed LDAP Account Manager (LAM) 0.3 on Redhat 9. I have been trying to do this for a while now and I am running out of anymore ideas.

There seems to be a never ending list of dependencies and the perl modules that I installed caused my web server not to function.

I just want to know if this is possible and if anyone has done it already, I would really really appreciate some help. I am very desperate for a solution now.

Thanks!!!
 
Old 11-19-2003, 07:16 PM   #2
Travis97526
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
RE: LDAP Account Manager (LAM) on Redhat 9

First of all, install the latest Apache2 RPM or better yet, compile and install Apache2 from source code (http://httpd.apache.org/download.cgi). (Here is the configuration that I used):

./configure --prefix=/var/www --enable-so --enable-ssl --enable-cgi --enable-speling --enable-rewrite --enable-usertrack --enable-mime-magic

Then compile and install libmcrypt, mcrypt, and mhash (standard compile - ./configure, make, make install): http://mcrypt.hellug.gr/mcrypt/index.html

Then compile and install PHP (http://www.php.net/downloads.php) (Here is the configuration that I used):

./configure --with-apxs2=/var/www/bin/apxs --with-mysql --with-mcrypt=/usr/local/bin --enable-debug --with-openssl --with-mhash=/usr/local/lib --disable-cgi --with-gettext --with-ldap --with-zlib

Edit your /var/www/conf/httpd.conf file and add the following:

# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php

AddType application/x-httpd-php .php

# PHP Syntax Coloring (recommended):
AddType application/x-httpd-php-source .phps

Here is a helpful page for understanding the PHP/Apache2 install part: http://dan.drydog.com/apache2php.html


Create a base.ldif file to initialize your LDAP server (change the dc=domain,dc=org to match your own domain setup you are using):

dn: dc=domain,dc=org
objectClass: dcObject
objectClass: organization
dc: domain
o: domain
structuralObjectClass: organization

dn: ou=Users,dc=domain,dc=org
objectClass: organizationalUnit
ou: Users
structuralObjectClass: organizationalUnit

dn: ou=Groups,dc=domain,dc=org
objectClass: organizationalUnit
ou: Groups
structuralObjectClass: organizationalUnit

dn: ou=Computers,dc=domain,dc=org
objectClass: organizationalUnit
ou: Computers
structuralObjectClass: organizationalUnit

dn: ou=Domains,dc=domain,dc=org
objectClass: organizationalUnit
ou: Domains
structuralObjectClass: organizationalUnit


Initialize your LDAP server:

/usr/sbin/slapadd -v -l base.ldif

Check /var/lib/ldap and view the permissions on the .dbb database files you created in the previous step. If the permissions are set to root:root, chown them to ldap:ldap.


Extract LAM (http://lam.sourceforge.net) into your /var/www/htdocs directory. Change the /var/www/htdocs/lam/config files (config.cfg_sample and lam.conf_sample) to config.cfg and lam.conf. Edit lam.conf to match the values you have set in your /etc/openldap/slapd.conf file. Chmod 0755 both lam.conf and config.cfg. Then point your browser to http://localhost/lam and you should see the LAM interface. The test scripts in the /var/www/htdocs/lam/tests directory may be helpful. Point your browser to these scripts for testing your LAM setup. For example: http://localhost/lam/tests/conf-main-test.php.


Good Luck!

Last edited by Travis97526; 11-26-2003 at 03:54 AM.
 
Old 11-25-2003, 11:33 PM   #3
Travis97526
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
Working LAM Configuration

Since I finally got LDAP Account Manager fully working with Fedora Linux Core 1, I thought I would edit my previous post, include my working configuration, and resubmit this information to the forum.

Note for RedHat/Fedora users: Seperate up-to-date RPMs for libmcrypt, mcrypt, mhash, and a mcrypt-enabled PHP package are being compiled and submitted to the Fedora Quality Assurance department. When I find the time and when LAM becomes more stable, I will think about compiling and submitting a LAM RedHat/Fedora RPM.

Last edited by Travis97526; 11-26-2003 at 01:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Roaming Profiles via LDAP, Samba, Lam ... Help! Elijah Linux - Networking 16 10-26-2005 12:30 AM
LDAP Configuration on Redhat 9 akumar_net Linux - Software 1 07-05-2004 09:02 AM
LDAP 2.1.23 - Samba 3.0.0 - trust account problems klnasveschuk Linux - Software 1 11-20-2003 10:47 PM
LDAP Account manager, PHP and mcrypt, and so on... HOWTO???? Satriani Linux - Software 2 11-04-2003 07:46 AM
RH 7.3 Linuxconf POP3 account manager replacement? akula Linux - Distributions 1 05-24-2002 05:38 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration