Link to home
Start Free TrialLog in
Avatar of Thyagaraj03
Thyagaraj03

asked on

Ubuntu OpenLdap sync home directory from client to server

I have recently setup Ubuntu ldap client authentication on karmic and lucid desktop clients and the ldap server is running on an 10.04 LTS server and this is the links I followed for client setup and probably this also works for 11.04. I could able to login to clients with the ldap user accounts and also, on the clients I used an entry session required pam_mkhomedir.so umask=0022 skel=/etc/skel in pam.d/common-session to automatically create the home directory on client computers when the user logs in for the first time. I know there would be a way to synchronize the home directory from Client to Server so that users have their documents on client and as well as on server.

I have to setup the following:
1. Synchronize the home directory from client to server so that users have their documents on both client and server.
2. Some kind of setup which allow to login and work offline even when the LDAP server is not reachable or down.

Anybody could instruct me please?, Thank you!
Avatar of Christopher Raymond Mendoza
Christopher Raymond Mendoza

Hello, are you planning to mimic the 'Enable offiline files' feature of windows?
Avatar of Thyagaraj03

ASKER

Exactly, I thought so if possible, like we do for shared folders. And also I'm not sure of the 2nd point if it's possible.
like a roaming profile in windows(ofcourse I never go it working perfectly), but especially I want the home directories to be synchronized to or from server and so anybody can login to any machine and have their documents and files.
So far the best we have done is mount a share after login via scripts and features. The share itself is hosted thru samba in one of our servers.

Certain folders, such as Documents and .purple, are then symlinked from the said share into the home folder. We had to do this since some files, such as those in the .config folder are dependent on the hardware (and OS version) being used, which sometimes cause unpredictable results.

We did not proceed to the sync part since our company setup makes it it is less efficient. I think I can try to find the packages needed should you be interested in our setup.
I am interested if the clients doesn't give me trouble every time as you excellently pointed hardware issue. And Samba.... I am not sure of editing ldap server config files again because I am never successful in recovering the corrupted ldap configs and everytime I had to revert the VM and do it again. So if it requires major changes to ldap configs on server, it probably won't interest me unless I get some expert knowledge on ldap. Try your best, I try to imitate you if it's feasible by me.

Thanks you!
Hello Thyagaraj03,

I will send you the details as soon as I reach the office, probably in 12 hours. It is still  night time here.

Have a nice day.
ASKER CERTIFIED SOLUTION
Avatar of Christopher Raymond Mendoza
Christopher Raymond Mendoza

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello crdmendozanet!

Thanks a lot for your interest. I am not sure what all the entries to include in which files. Trying to read and understand from the link provided. And on the other side, how about using the autofs?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you!, I could do some of the things. One thing I'm very much interested are what you said,

- reset gnome panel (a lot of users mess up their panels)
- restore company wallpaper

could you tell me how to do that or instruct me, is that only possible with pam_mount?
Hello Thyagaraj03,

Apologies for not replying earlier, I have rarely been online for the past weeks.

I will send you the scripts for the above functionalities as soon as I return to my desktop, hopefully next week.

No, it does not require pam_mount. We usually place the scripts in /etc/profile.d. In effect, the said scripts are automatically run whenever a user logs in, just like the Startup folder in Windows.

Regards,
Hello,

Happy to hear from you again. I'll wait for your reply, I'll come back here again next week as you said.
Thank you very much!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial