LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 06: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 02:54 AM.
 
Old 11-25-2003, 10: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 12:01 AM.
 
  


Reply



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-25-2005 11:30 PM
LDAP Configuration on Redhat 9 akumar_net Linux - Software 1 07-05-2004 08:02 AM
LDAP 2.1.23 - Samba 3.0.0 - trust account problems klnasveschuk Linux - Software 1 11-20-2003 09:47 PM
LDAP Account manager, PHP and mcrypt, and so on... HOWTO???? Satriani Linux - Software 2 11-04-2003 06:46 AM
RH 7.3 Linuxconf POP3 account manager replacement? akula Linux - Distributions 1 05-24-2002 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 AM.

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
Open Source Consulting | Domain Registration