FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-19-2010, 09:12 AM
sync
 
Default Problem with first login

Hi , guys:

*** I have a problem* on the openldap Manager account login :

** The server is running CentOS 5.3 i386* and I have phpldapadmin-1.0.1-1.el5.noarch.rpm*
installed .
* ** It's running apache 2.2.3* with php 5.1.6 and openldap 2.3.34.

*** I
believe I have slapd setup correctly but I'm not completely sure.

*** My
/etc/openldap/slapd.conf file has...

***** access to *
*******
by self write

******* by * read
******* by anonymous auth

**** database*******
bdb
**** suffix********* "dc=my-domain,dc=com"
*** rootdn********
"cn=Manager,dc=my-domain,dc=com"
*** rootpw
* * *** {SSHA}xxxxx

*** My /etc/ldap.conf has the following lines (among
others)...
**** host 127.0.0.1
**** base
dc=my-domain,dc=com

** If I do the following command...

* * ldapsearch
-x -D "cn=Manager,dc=my-domain,dc=com" -W


** from the command line it asks for a password.
*
** If* I type the password I created
with slapppassd and have as rootpw in slapd.conf it carries on and
returns the following (with comments removed)...

** search:
2
** result: 32 No such object

** So it
appears that from the command line authentication with ldap is working.


** In my phpldapadmin
config.php file i've modified the following lines...
* $ldapservers->SetValue($i,'server','host','127.0.0.1');

** $ldapservers->SetValue($i,'server','port','389');

* $ldapservers->SetValue($i,'server','auth_type','session');

** When
I go to phpldapadmin and do "Anonymous Bind"
it connects and allows me to view the ldap tree.

** If I
try and login with user "Manager"
and the password I use on the command line, it doesn't work giving
me... "Bad username or password. Please try again."


* I've also tried putting the following line to my
config.php file but to no avail...
* $ldapservers->SetValue($i,'server','base',array('my-domain',
'com'));

** Am I using the correct username?

* Are there any commands I can do to further check my
ldap server is setup correctly?
* Are there any log files I
can look at?

* Thanks for all your help.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-19-2010, 09:24 AM
"Alexander Dalloz"
 
Default Problem with first login

> Hi , guys:
>
> I have a problem on the openldap Manager account login :

> rootdn "cn=Manager,dc=my-domain,dc=com"

> If I do the following command...
>
> ldapsearch -x -D "cn=Manager,dc=my-domain,dc=com" -W
>
> from the command line it asks for a password.
>
> If I type the password I created with slapppassd and have as rootpw in
> slapd.conf it carries on and returns the following (with comments
> removed)...
>
> search: 2
> result: 32 No such object
>
> So it appears that from the command line authentication with ldap is
> working.
>
> In my phpldapadmin config.php file i've modified the following lines...
> $ldapservers->SetValue($i,'server','host','127.0.0.1');
> $ldapservers->SetValue($i,'server','port','389');
> $ldapservers->SetValue($i,'server','auth_type','session');

> If I try and login with user "Manager" and the password I use on the
> command line, it doesn't work giving me... "Bad username or password.
> Please try again."

Your login user is "cn=Manager,dc=my-domain,dc=com", not just "Manager".

Alexander



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-19-2010, 09:35 AM
sync
 
Default Problem with first login

Thanks for you reply ~

*But* i* typed* that you said , the result was also this : "Bad username or passwd, Please try again"

I
believe I typed the Manager account passwd* correctly .

What is the wrong with that* ?*


On Mon, Apr 19, 2010 at 5:24 PM, Alexander Dalloz <ad+lists@uni-x.org> wrote:

> Hi , guys:

>

> * * I have a problem *on the openldap Manager account login :



> * * rootdn * * * * "cn=Manager,dc=my-domain,dc=com"



> * *If I do the following command...

>

> * * ldapsearch -x -D "cn=Manager,dc=my-domain,dc=com" -W

>

> * *from the command line it asks for a password.

>

> * *If *I type the password I created with slapppassd and have as rootpw in

> slapd.conf it carries on and returns the following (with comments

> removed)...

>

> * *search: 2

> * *result: 32 No such object

>

> * *So it appears that from the command line authentication with ldap is

> working.

>

> * *In my phpldapadmin config.php file i've modified the following lines...

> * $ldapservers->SetValue($i,'server','host','127.0.0.1');

> * *$ldapservers->SetValue($i,'server','port','389');

> * $ldapservers->SetValue($i,'server','auth_type','session');



> * *If I try and login with user "Manager" and the password I use on the

> command line, it doesn't work giving me... "Bad username or password.

> Please try again."



Your login user is "cn=Manager,dc=my-domain,dc=com", not just "Manager".



Alexander







_______________________________________________

CentOS mailing list

CentOS@centos.org

http://lists.centos.org/mailman/listinfo/centos



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 01:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org