Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2007, 14:05
Jyotishmaan Jyotishmaan is offline
Junior Member
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Migration of users from linux-fedora to ldap server!

Dear All Openldap USERS,

This is Jyotishmaan Ray, from Silchar, India.

I have been working on migration of users from fedora-linux server to LDAP server. Of late after i have migrated all users, as per the administration guide of openldap sofware, i realised that i have done something wrong, because of which the authentication is not successfully happening.

Attention please, all openldap experts who are on linux-fedora platform please give you kind attention to my questions:-


1) Is it necessary to execute the following steps :-

Now you are ready to migrate the data (actually it works even without the export command):

export ETC_SHADOW=/etc/shadow
./migrate_base.pl > /tmp/base.ldif
./migrate_group.pl /etc/group /tmp/group.ldif
./migrate_hosts.pl /etc/hosts /tmp/hosts.ldif
./migrate_passwd.pl /etc/passwd /tmp/passwd.ldif

Now we have the data in the format understood by LDAP server. Please open one the files with text editor to get used to the syntax. After that we can add the data from ldifs.

ldapadd -D "cn=Manager,dc=domain,dc=com" -W -f /tmp/base.ldif

ldapadd -D "cn=Manager,dc=domain,dc=com" -W -f /tmp/group.ldif

ldapadd -D "cn=Manager,dc=domain,dc=com" -W -f /tmp/passwd.ldif

ldapadd -D "cn=Manager,dc=domain,dc=com" -W -f /tmp/hosts.ldif


However, i have not performed all the above steps except for the addition of users(ldif files after converting by using perl script)!!


As of now, when i finger the users, it shows fine. But when i try to log ion to the server machine using

ssh localhost.localdomain. -l xyx,

or

ssh "hostname" -l xyz


it prompted me the password twice one trial after another and subsequently throwing the message as shown below:-


[root@authdns bin]# ssh authdns.nits.ac.in -l jmaan
jmaan@authdns.nits.ac.in's password:
Permission denied, please try again.
jmaan@authdns.nits.ac.in's password:
Permission denied, please try again.
jmaan@authdns.nits.ac.in's password:
Permission denied (publickey,gssapi-with-mic,password).
[root@authdns bin]#




After seaching on the google.co.in, i have changed the default permission of the file /dev/tty (666) to 777.


Still it is not successfully working with ssh. I just wanted to make it sure that i could log in with user locally, to my server. However, the /etc/passwd file does not show the passwd field of the users as 'x' but rather as '*'.


To check this i have tried using the command,


getent passwd|grep user


it worked fine.


Please tell me is it because i have not performed the first few steps of ldapadd of (locals machine's) base.ldif, hosts.ldif, group.ldif to the ldap server that, its not working.


I have also worked with the command:-


pwconv



to generate the new shadow file from the /etc/passwd file.


Please help!!


Also, i have one more question, how much time does the linux-fedora takes to show up all the migrated users in the GUI of LINUX-FEDORA, once all the users have been migrated in LDAP DATA EXCHANGE FORMAT.

Regards,

Jyotishmaan
jyotishmaan@yahoo.com

Edit/Delete Message
Reply With Quote
Sponsored Links
  #2  
Old 18th November 2007, 12:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Please don't double-post.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th September 2008, 23:31
jelutz jelutz is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Original post

http://www.howtoforge.com/forums/showthread.php?t=17409
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
Fedora 7 Server dazblade Suggest HOWTO 0 14th July 2007 16:46
how to authenticate linux desktops on a linux server koi Server Operation 2 18th May 2007 16:58
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44
Postfix Problems Rocky Installation/Configuration 22 14th September 2006 09:03


All times are GMT +2. The time now is 00:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.