LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-29-2008, 04:13 PM   #1
dany4j
LQ Newbie
 
Registered: Mar 2008
Location: Romania
Distribution: CentOS
Posts: 13

Rep: Reputation: 0
Unhappy Pure-ftpd + ldap


Hello,

I'm trying to configure pure-ftpd on one server with ldap back ended. The server is running but when I try to ftp in from a windows machine (using CuteFTP) it fails

This is the error in /var/log/messages:
Code:
Aug 29 23:41:52 document pure-ftpd: (?@myIP) [INFO] New connection from 79-113-210-139.rdsnet.ro
Aug 29 23:41:52 document pure-ftpd: (?@myIP) [WARNING] Authentication failed for user [danim]
And this is from client:
Code:
Connected to document.speranta.eu.
220-Welcome to Pure-FTPd.
220-You are user number 1 of 50 allowed.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type
Name: danim
331 User danim OK. Password required
Password:
530 Login authentication failed
Login failed.
my /etc/pureftpd-ldap.conf contains:
Code:
LDAPServer localhost
LDAPPort   389
LDAPBaseDN cn=Users,dc=speranta,dc=eu                                                                                                                        LDAPBindDN cn=Manager,dc=speranta,dc=eu
LDAPBindPW <my-pass>
LDAPDefaultUID 500
LDAPDefaultGID 100
What's wrong?

Thank You.
 
Old 08-29-2008, 06:18 PM   #2
alpha01
Member
 
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75

Rep: Reputation: 19
Did you changed the user's default shell to /bin/false?

I've had a similar issue before of having an ftp user failed login even though it was the right passwd! In my case, the default log in shell had to be changed to /bin/false/ (with a forward slash at the end).
 
Old 08-30-2008, 12:14 AM   #3
dany4j
LQ Newbie
 
Registered: Mar 2008
Location: Romania
Distribution: CentOS
Posts: 13

Original Poster
Rep: Reputation: 0
Hi alpha01,

I didn't change.

A few more details the server is PDC with samba. And I can connect to the server with that user.

Now, if I change user's default shell to /bin/false can I log again on server and on domain ? As I know from my experience (not very big) I can't.


Thank you.
 
Old 09-02-2008, 11:08 AM   #4
alpha01
Member
 
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75

Rep: Reputation: 19
Quote:
Originally Posted by dany4j View Post
Hi alpha01,

I didn't change.

A few more details the server is PDC with samba. And I can connect to the server with that user.

Now, if I change user's default shell to /bin/false can I log again on server and on domain ? As I know from my experience (not very big) I can't.


Thank you.
I believe the user should be able to log into the domain. I don't think changing the default shell will interfere. Try it and see if it works.
 
Old 09-02-2008, 11:17 PM   #5
dany4j
LQ Newbie
 
Registered: Mar 2008
Location: Romania
Distribution: CentOS
Posts: 13

Original Poster
Rep: Reputation: 0
Hi alpha01,

I changed shell in ldap to /bin/false (to the user) and still no ftp

Code:
Sep  3 07:12:46 document pure-ftpd: (?@myIP) [INFO] New connection from myIP
Sep  3 07:12:46 document pure-ftpd: (?@myIP) [WARNING] Authentication failed for user [myUSER]
Sep  3 07:12:50 document pure-ftpd: (?@myIP) [INFO] Logout.
I don't know how to test if pureftp logins to ldap.

Thank you.
 
Old 09-02-2008, 11:56 PM   #6
dany4j
LQ Newbie
 
Registered: Mar 2008
Location: Romania
Distribution: CentOS
Posts: 13

Original Poster
Rep: Reputation: 0
Hi alpha01,

I fixed )

I changed
Code:
LDAPBaseDN cn=Users,dc=speranta,dc=eu
to
Code:
LDAPBaseDN dc=speranta,dc=eu
Thank you for your time
 
  


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
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
Pure-FTPd jmw080 Linux - Newbie 6 05-03-2007 02:27 PM
pure-ftpd kristof_v Linux - Software 0 10-08-2006 06:41 AM
Pure-Ftpd olva Red Hat 0 05-12-2006 07:01 AM
Pure-ftpd zaicheke Linux - Software 2 08-19-2004 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration