LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2007, 09:55 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
LDAP Account Manager


I am having trouble simply getting into LAM. I am not running any authentication. I just want to simply login and then add security later. I have configured lam.conf with another password and even have tried the default "lam" but to no success. Here is the error in my /var/log/httpd/error_log

PHP Code:
[Thu Mar 08 10:53:56 2007] [error] [client 192.168.3.2PHP Notice:  Undefined index:  editmodules in /var/www/html/ldap-account-manager-1.2.0/templates/config/confmain.php on line 83refererhttp://192.168.3.5/ldap-account-manager-1.2.0/templates/config/confmain.php?modulesback=true
[Thu Mar 08 10:53:57 2007] [error] [client 192.168.3.2PHP Notice:  Undefined index:  submit in /var/www/html/ldap-account-manager-1.2.0/templates/config/conftypes.php on line 70
[Thu Mar 08 10:53:57 2007] [error] [client 192.168.3.2PHP Notice:  Undefined index:  abort in /var/www/html/ldap-account-manager-1.2.0/templates/config/conftypes.php on line 114 
slapd.conf

PHP Code:
database bdb
suffix 
"dc=fedora,dc=directory,dc=server"
rootdn "uid=root,dc=fedora,dc=directory,dc=server"
rootpw {SSHA}HLuLNn9wv8r9Qkgvh9qNWWZUupfro0+
and in smb.conf

PHP Code:
[global]
ldap user suffix ou=people,dc=fedora,dc=directory,dc=server
ldap machine suffix 
ou=machines,dc=fedora,dc=directory,dc=server
ldap group suffix 
ou=group,dc=fedora,dc=directory,dc=server
ldap suffix 
dc=fedora,dc=directory,dc=server
ldap admin dn 
="uid=root,dc=fedora,dc=directory,dc=server"
encrypt passwords yes
passdb backend 
ldapsam:ldap://127.0.0.1
wins support true
ldap delete dn 
no
ldap passwd sync 
yes
os level 
50
security 
user
ldap replication sleep 
1000 

under lam.conf

PHP Code:
Adminscn=Manager,dc=Calexica,dc=com 
I think the problem is that I do not have an the account cn=Manager in LDAP and that is the reason that I cannot login as Manager in LAM. Any suggestions?

Last edited by metallica1973; 03-08-2007 at 10:35 AM.
 
Old 03-10-2007, 01:04 AM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I have finally figured out what had happened! I had a corrupt file under /var/lib/ldap/ so I deleted everything inside of that folder and i recreate my LDAP database.I will walk through the steps that I did to get LDAP, Samba, and LAM to work!

1 - Install LDAP,APACHE,and LAM and all of the module that are needed to work with LDAP Account Manager 1.2.0

http://lam.sourceforge.net/documentation/install.htm

* note I had spent months trying to figure out why I could not login into LAM and it ultimately turned out be bad files that was under /var/lib/ldap/


2 - Start with LDAP and be very careful of any typos in your configurations. I spents hours of not understanding why stuff did not work correctly. I recommend purging the /var/lib/ldap/ directory after the installation of Openldap to start off with a clean slate. I also recommend starting off without security to make it easier to get LDAP,Samba, and LAM going. *note - after creating your
PHP Code:
rootdn "uid=root,dc=fedora,dc=directory,dc=server" 
from slapd.conf and
PHP Code:
ldap admin dn "uid=root,dc=fedora,dc=directory,dc=server" 
in /etc/samba.smb.conf, you will need to redo your samba password, smbpasswd -w Password. If you already made it then when redo it using the same password.(All of this is in reference to the part about finding out what your domain name and SID number is)
,
http://www.opensourcehowto.org/how-t...ba-as-pdc.html

3 - Ultimately log into LAM to test!

Last edited by metallica1973; 03-10-2007 at 09:29 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
PASSDB: LDAP and domain account PhillipHuang Linux - Software 0 11-24-2006 02:18 AM
Open-Xchange LDAP + IMAP account names mapping fouldsy Linux - Networking 1 02-16-2006 03:06 PM
LDAP Account Manager (LAM) on Redhat 9 #samba# Linux - Software 2 11-25-2003 10:33 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:55 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