LAM does not create home directory on remote server

View: New views
2 Messages — Rating Filter:   Alert me  

LAM does not create home directory on remote server

by Ian Hellyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,


I have installed LAM 2.3.0 rpm on a centos 5 server with php 5.1.6
libssh2-0.12, pecl-ssh2-0.10 and all dependencies, openssh-4.3p2-24,  
perl-5.8.8-10.
I don't use quotas or samba, so they were removed from "Selected Modules"


I added a user through LAM on the server where LAM is installed (local).
The user's home directory was created, then I logged in as that user,  
with password authentication through ldap.
Everything is good so far.


I copied the "lamdaemon.pl" ( lamdaemon.pl is owned by root with 755  
permissions) file to the right directory on a centos 4 server (remote  
server) openssh-3.9p1-8, perl-5.8.8-5, added LAM's admin user and  
password to the it and the correct entry into "sudoers".
When I do the lamdaemon test and select the remote server, all tests  
are okay (green ticks). Quotas not selected.
Note: libssh2 and pecl-ssh2 are not installed.


Here is /var/log/messages for the test. I've changed the server and  
admin names.


Jul  8 12:05:16 remote sshd(pam_unix)[23035]: session opened for user  
admin by (uid=0)
Jul  8 12:05:16 remote sshd(pam_unix)[23035]: session closed for user admin


When a user is added and the remote server is selected in LAM, an  
entry is added to ldap, but the user is not created on the remote  
server.
Home directory created (). is displayed in LAM.


Here is /var/log/messages


Jul  8 12:45:38 remote sshd(pam_unix)[23092]: session opened for user  
admin by (uid=0)
Jul  8 12:45:38 remote sshd(pam_unix)[23092]: session closed for user admin


Have I left something out?


Regards,
Ian


PS I get a lot of "Undefined index" errors, whether or not it works. I  
ignore them.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Lam-public mailing list
Lam-public@...
https://lists.sourceforge.net/lists/listinfo/lam-public

Re: LAM does not create home directory on remote server

by Roland Gruber (LAM) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ian,

Ian Hellyer schrieb:
> When a user is added and the remote server is selected in LAM, an  
> entry is added to ldap, but the user is not created on the remote  
> server.
> Home directory created (). is displayed in LAM.

Please try this command on the homdir server after creating your user
(replace "<NEW USER NAME>"):

getent passwd | grep <NEW USER NAME>

Does it show the correct home directory? If not then your nsswitch
settings for LDAP have a problem. Maybe not all required LDAP attibutes
are readable with the current configuration.


If the correct directory is shown then it is a Perl problem. Please try
upgrading your Perl version.


- --

Best regards

Roland Gruber


LDAP Account Manager
http://lam.sourceforge.net

Want more? Get LDAP Account Manager Pro!
http://lam.sourceforge.net/lamPro/index.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIc7XCq/ywNCsrGZ4RAoL3AJ9tiQwln4OX/HA27O/g+4iPJhampQCfe1i9
QxQ1VURbJkuIvC4MBf9WxUQ=
=slev
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Lam-public mailing list
Lam-public@...
https://lists.sourceforge.net/lists/listinfo/lam-public
LightInTheBox - Buy quality products at wholesale price