Pure-ftpd and ldap. (solved)
Hi,
I'm trying to use pure-ftpd with virtual users on ldap but it don't work.
Configuration is easy... similar to dovecot, postfix or apache. The question is that I don't know if is bad my confuguration or if the package isn't compiled with ldap support.
How do I know if it is compiled with ldap support?
Thanks and sorry for my english.
Last edited by opotonil (2009-10-20 09:01:19)
If you look at the SVN entries for pure-ftpd, the PKGBUILD you will see:
./configure --prefix=/usr --with-puredb --with-ftpwho --with-altlog --with-tls
in the build() function. So no, LDAP is not compiled in. You can edit the PKGBUILD and recompile it.
Similar Messages
-
Hi, is pure-ftpd built with mysql support? Because if I try to run it, i get "421 Unknown authentication method: mysql:/etc/pureftpd-mysql.conf" error. When I try to recompile it using ABS (with --with-mysql switch to configure), it fails.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -DCONFDIR=\"/etc\" -march=i686 -O2 -pipe -MT pure-statsdecode.o -MD -MP -MF ".deps/pure-statsdecode.Tpo" -c -o pure-statsdecode.o pure-statsdecode.c; \
then mv -f ".deps/pure-statsdecode.Tpo" ".deps/pure-statsdecode.Po"; else rm -f ".deps/pure-statsdecode.Tpo"; exit 1; fi
In file included from ftpd.h:88,
from pure-statsdecode.c:3:
/usr/include/arpa/inet.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_addr'
/usr/include/arpa/inet.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_lnaof'
/usr/include/arpa/inet.h:42: error: expected ')' before '__net'
/usr/include/arpa/inet.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_netof'
/usr/include/arpa/inet.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_network'
/usr/include/arpa/inet.h:78: error: expected ')' before '__net'
make[2]: *** [pure-statsdecode.o] Error 1
make[2]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21'
make: *** [all] Error 2Sorry jardasmid,
I didn't read all the post
Try to specify
./configure --with-mysql=/usr/include/mysql
when compile pure-ftpd
Stupid question:
do you have libmysql package? -
Pure-ftpd-mysql socket error after latest mysql update [SOLVED]
As we know the socket path in mysql have been moved from /tmp/mysqld.sock to /var/run/mysqld/mysqld.sock.
The problem now with pure-ftpd-mysql is that it tries to use /tmp/mysqld.sock even though I have:
MYSQLSocket /var/run/mysqld/mysqld.sock
Inside of my /etc/pure-ftpd/pure-ftpd-mysql.conf
I guess that either MYSQLSocket is the wrong keyword or that the path is hard coded into pure-ftpd-mysql.
Any ideas how to solve this?
EDIT:
The path for the mysql conf was changed during last update
from
MySQLConfigFile /etc/pure-ftpd/pure-ftpd-mysql.conf
to
MySQLConfigFile /etc/pure-ftpd/auth/mysql.conf
Last edited by ancide (2009-11-25 10:23:24)maksvlad wrote:
I've edited /etc/rc.d/mysqld file and added "ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock" like this
echo $(getPID) >/var/run/mysqld/mysqld.pid
add_daemon mysqld
ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock
stat_done
It isn't correct solution but it works...
On other hand you would try something like this http://bbs.archlinux.org/viewtopic.php?id=85441
Thanks for the reply. The problem is that all my other applications are using the new correct path. But I guess I can just make a symlink like you said for now until pure-ftpd-mysql is fixed. -
[SOLVED] pure-ftpd no longer works after system update
Hi,
I made a system update today and since pure-ftpd doesn't want to start it just display "[FAIL]" but I don't have any error message.
Is it possible to see the the error log of pure-ftpd ?
Do you have any idea of how getting it working again?
Thanks
Last edited by clems45 (2011-04-02 21:41:23)I tried to check the version of pure-ftpd: pure-ftpd -V and it replies:
pure-ftpd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
but mysql client is installed properly! I tried to reinstall it but it changed nothing -
Hello,
I am running a oes2 server with pure-ftp. Everything is running fine with pure-ftp when login in with FileZilla or ftp command line, but I als have a ncp volume mapped to the ftp location on the server. When people in my organization put files in the ftp directories via the ncp connections ownership of the files will be of those who put them there and not the ownership of the ftp user which owns the ftp directory on the server.
Is it possible to configure the server/pure-ftp or ncp to change the ownership of the file from edit user to ftp user.
RegardsI will answer from the pure-ftpd perspective: There is not anything pure-ftpd can do to solve this issue.
You could develop a cron script that would frequently traverse these directories and chown the file according to your desires.
I don't have much experience on the NCP side, but if your real concern about ownership is that someone else needs permissions, then maybe setting a different umask in the NCP volume settings would grant more permissions to more people, and solve your issue that way. -
Pure-ftpd - different permissions for virtual users?
I seem not to be able to find out how I could declare different permissions for different virtual users. In /etc/pure-ftpd.conf exists one line to declare permissions using
#umask file:folder
umask 133:133
umask matches the numbers to 'UserGroupOthers'.
Now that virtual ftp users belong to a real existing unix user / group, I wonder who is Users, Group and Others?
Users = virtual ftp user ?
Group = virtual ftp group ?
Others = anonymous visitors?
How can I tune it, so one virtual user can add files - f.e. to be used by a scan station - while others shall only read, having anonymous disabled?
This gives me a headache.Ok, let me think. What did I do?
I had different users. User X, Y and Z.
Then, I had a shared directory above their home directories.
While in the system, (not in pure-ftpd) I symlinked.
(Note that doing something in user X's directory, like ln -s ../shared didn't work---I had to do ln -s /usr/home/ftpuser/shared).
Then, I ~think I played with the permissions on shared and got what I wanted.
Then, after a few hours on this, they changed their minds about what they wanted, everyone was allowed to use shared, but different companies had to have their own directories, so I no longer have that config.
For what it's worth, you can take a quick look at my page
http://www.scottro.net/qnd/qnd-pureftpd.html
but I don't think it covers that situation.
HTH, though I doubt that it did. -
Pure-ftpd setup (hosts.allow & hosts.deny)
hello,
i have installed pure-ftpd. i have it in daemon section in rc.conf and it's working (wisible from outside) althought my /etc/hosts.deny is
ALL: ALL: DENY
and in /etc/hosts.allow isn't any notice about pure-ftpd (just sshd).
isn't that weird?
thanx for answers.If your version of pure-ftpd was build without tcpwrappers, but might explain it.
-
Hi to all,
i want to use local-eap+LDAP (microsoft AD) and i'm experiencing some issue.
First of all i'm not able to bind WLC and LDAP...if a perform a debug aaa ldap enable i get this output:
Any idea about how to solve this issue?
Regards
AleIt sounds like .... invalid credentials ? :-)
Please post your LDAP config on WLC.
Is your admin username with which you're binding within the search context that you defined ? this is very important -
hi,
i configured a local anonymous ftp server with pure-ftpd but every time i try to access the server i get this error:
"421 Unable to set up secure anonymous FTP"
thanks.
(sorry for my poor english )
Last edited by Narmil (2008-07-18 02:37:15)in /etc/pure-ftpd/pure-ftpd.conf (or where ever your conf file is stored) set TLS to 0 to turn off Auth over TLS/SSL or set to 1 to allow both plain and TLS/SSL authentication.
-
Ftp - ftpd and firewall configuration for passive connections
I set up ftpd on my imac. Connecting and logging on work ok, but when I try to get a directory listing or xfer or send multiple commands it always locks up, i get a message "421 Service not available, remote server timed out. Connection closed" and I see that the ftpd process for that connection has terminated.
Turning the firewall completely off allows ftpd to work correctly, but I was under the impression that if I check the "FTP Access" box under services, the firewall should CORRECTLY self-configure to allow connections to ftpd. Opening ports 1024-65535 guarantees that ftpd will work with a client's passive connection, but is there a better way?
I tried opening 20 for the data connection and 21 for control, but unless I tell everyone to use an active connection, there is still a long wait before most ftp clients notice that passive isn't working and switch to an active connection, so I would like to avoid that also.Hi, we use FTPd (with Pure FTPd Manager) on our internal server here. While I'm not a complete expert, I do know that we were able to get passive FTP working only after we got this setup properly.
The main reason we got this was for it's ability to set a default port range for passive FTP to work on. In Pure FTPd Manager, you go to Preferences/Settings and you will see the area to input your passive port range (we use 51000-51100).
Then you just need to forward those ports (on a router) to your FTP server, and/or open those ports on your server firewall.
It sounds like you already have ports 20-21 setup.
Hope this helps!
G5 Dual 2Ghz Mac OS X (10.4) 1.5GB RAM -
How do I enable multiple trusted IP address within Pure-FTP?
The pure-ftpd.conf states:
# Only connections to this specific IP address are allowed to be
# non-anonymous. You can use this directive to open several public IPs for
# anonymous FTP, and keep a private firewalled IP for remote administration.
# You can also only allow a non-routable local IP (like 10.x.x.x) to
# authenticate, and keep a public anon-only FTP server on another IP.
#TrustedIP 10.1.1.1
The example shows one IP address. I've tried:
TrustedIP 192.168.10.* for the whole subnet, but a restart of pure-ftp give an error stating it doesn't like the line.
I've tried 192.168.10.x as the explanation displays, no good, same error.
After this is working, then, the next question will be to trust multiple IP addresses, actually, a subnet and several single IP addresses.
Any suggestions? Examples?
Thank you.Originally Posted by brunold
One configs seems to override the other one.
Just as a test, can you place the NoAnonymous behind the trustedip option in the config file and try again ?
Rainer
Thank You for the Info.
I put 'NoAnonymous yes' and 'AnonymousOnly no' below the 'TrustedIP 192.168.10.240 192.168.10.241' line. It did not help.
This is the welcome from the ftp server
220-You are user number 1 of 10 allowed.
220-Only anonymous FTP is allowed here
220 You will be disconnected after 15 minutes of inactivity.
So I commented the 'TrusedIP' to keep anonymous out.
Any more suggestions.
Is this designed, a BUG, or what.
Is there a way to have trusted IP addresses and keep anonymous out? -
Manually add/modify users for pure-ftpd ftp server?
Ave,
Alright I downloaded, compiled & installed the latest pure-ftpd ftp server from pureftpd.org .. and it seems to have started off ok.
Since there is no Leopard Compatible PureFTPD Manager out yet, I need to create/modify users manually. Does anyone know how to do that for Pure-FTPD FTP Server? I can't seem to find or see any .conf files or anything at all. How do you manage users for pure-ftpd through command line or configuration?
Thanks!This seems like a good one:
extra/bftpd 3.8-2
Small, easy-to-configure FTP server
From what i have read you can set individual configuration for each user or group:
http://bftpd.sourceforge.net/doc/en/bft … html#ss3.1 -
I am running 6 Suse oes2 servers and one windows 2008r2
for zcm server that I just setup a couple of weeks ago.
These servers are up and in operation now.
Everything seems to be working great except for ftp. I have not
done any configurations on pure ftpd until today.
I am having problems getting pure ftpd to work.
1. I can login to my account but students cant.
When I login I simply use my user name. i.e. jdoe and it works.
when I do the same for students I get
"503 Login Authentication failed"
I have tried "jsmith" and "jsmith.students" same results.
My account is in a admin context and the student in the "students" context.
Faculty are in the "faculty" context.
2 Even When I can login I cant get my user home dir in EDIR.
3. Every time I login successfully or Un-successfully I have to restart
pure ftpd. If I just simply press enter at the login name same thing
happens. I have to restart ftp.
Thanks
Dave.dmiller wrote:
> This may sound stupid buy my work with oes2 is limited.
No, not stupid at all. Everyone goes through a learning curve on a new
system. Until you have been working with OES for a while, things can
sometimes be a bit overwhelming.
There are some good resources listed in the sticky post. Have a look:
http://forums.novell.com/showthread.php?t=465099
> I've been with NetWare for the last 17 years.
That's good! You should already be familiar with many of the OES
services.
> Is "Pure Ftpd" the same as "Novell Pure Ftpd"?
Sort of...
Pure Ftpd will run on SLES. Novell Pure Ftpd may be tweaked a bit to
work better with OES. Generally speaking, when you see two similar
components and one has the Novell prefix, you want to install the
Novell version on an OES system.
> I looked in System
> Services and see that Pure-ftpd in not enable.
> It doesn't seem to make any differences though. The results are still
> the same.
Take a look at the TID to which I referred you in my previous post:
https://www.novell.com/support/kb/doc.php?id=3503915
> For OES 2 and 11, regardless of support pack:
>
> The first step that is needed (aside from the prerequisites mentions
> above) is to tell Yast's OES configuration to install "Novell FTP".
> Where are the ftp error logs located?
The main log file on a OES/SLES system is /var/log/messages. There lots
of other log files in /var/log and sub-directories. This is always a
good place to begin troubleshooting.
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below... -
I used pure-ftpd before, but this time it makes me crazy.
I have set up Pure-ftpd, when I start it WITHOUT the line:
MySQLConfigFile /etc/pureftpd-mysql.conf
It works, it starts up and runs.
But when I comment out the line above, it fails to start.. I cant really seem to figure what it could be...
The contents of the pureftp-mysql.conf is this:
#MYSQLServer localhost
#MYSQLPort 3306
MYSQLSocket /tmp/mysql.sock
MYSQLUser user
MYSQLPassword pass
MYSQLDatabase pureftpd
MYSQLCrypt cleartext
MYSQLGetPW SELECT Password FROM users WHERE User="L"
MYSQLGetDir SELECT Dir FROM users WHERE User="L"
MYSQLDefaultUID 1000
MYSQLDefaultGID 1000
(obviously I filled in the user+pass)
My database looks like this:
CREATE TABLE `users` (
`User` varchar(16) collate latin1_general_ci NOT NULL default '',
`Password` varchar(64) collate latin1_general_ci NOT NULL default '',
`Uid` int(11) NOT NULL default '-1',
`Gid` int(11) NOT NULL default '-1',
`Dir` varchar(128) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`User`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
Anyone that has some ideas, could it be a firewall issue (wich is NOT on my linux box) or is this really something going wrong in a config file?Ok, I managed to get the error message:
421 Unknown authentication method: mysql:/etc/pmysql.conf
[1] 4158
[1] Exit 252 /usr/sbin/pure-ftpd -l mysql:/etc/pmysql.conf
Is the package capable of using mysql for authentication or is there a package made by someone that is capable of using mysql? -
When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please can someone help. I have tried lots of things now and cannot solve it.
"Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done.
Maybe you are looking for
-
Functionaliity to remeber the login page when user signs in the next time
Hi ! In my application i need to include the functionality to make the application remmeber the user name the second time the user logs into the application, very similar to when you sign in to Hotmail.com, your email address is stored when u login f
-
Re: EAN number should be substituted by material number
Hi all, I am having a r/3 ecommerce scenario. I have a requirement that when a customer enters EAN number for a material in frontend , the material should be determined automatically. I have mantained the material determination record accordingly in
-
1) Is there North Bound Interface / API from SAP Solution Manager available for 3rd party integration? i. The list of the modules that are being managed by SAP Solution Manager(s) ii. The performance metrics of those modules/components at the high le
-
Japanese fonts in an English premiere.
Hello, My computer crashed about a week ago and I had to re-install adobe premiere pro cc again. When I was on the phone with apple support so he could run me through the data save process and the reformatting of my Harddisk, we set the computer to
-
Hi All, How can I update the column of a table? More precisely, I am having a table with five rows and five columns and I already put values in all by using the program.When user clicks a button, I have to show different values in each cells of