LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-17-2017, 04:52 AM   #1
Ankushkalra
Member
 
Registered: Jan 2017
Posts: 48

Rep: Reputation: Disabled
Changing Home Directory of existing LDAP user.


Hi,

I have all rhel7.1 servers in my envirement.

I have configured LDAP Server successfully in my envirement using below link.

http://www.learnitguide.com/2016/01/...-on-rhel7.html

I want to change home directory of existing ldap user.

For example previously home directory of "ldapuser1" was "/home/ldapuser1".I want to change it to "/home/shared/ldapuser1"

For the same i have crated a "ldif " file as below.

#cat ldapuser1.ldif
dn: cn=ldapuser1,ou=Group,dc=unixmen,dc=local
changetype: modify
replace: homeDirectory
homeDirectory: /home/shared/ldapuser1

and then executing below command

# ldapmodify -vx -D cn=Manager,dc=my-domain,dc=com -W -f ldapuser1.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
replace homeDirectory:
/home/shared/ldapuser1
modifying entry "cn=ldapuser1,ou=Group,dc=my-domain,dc=com"
ldap_modify: Object class violation (65)
additional info: attribute 'homeDirectory' not allowed

I did some googling but doesnt find anything

Please suggest.
 
Old 05-17-2017, 08:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Ankushkalra View Post
Hi,
I have all rhel7.1 servers in my envirement.
And as you've been told in other threads, you need to contact Red Hat support, and look in their knowledegbase. You've said you either have 20+ (or 100+) RHEL servers in a corporate environment....why aren't you paying for RHEL? They can assist with OpenLDAP, and they have extensive guides in the knowledgebase, which (as a paying customer), you have access to.

http://www.linuxquestions.org/questi...it-4175604732/
http://www.linuxquestions.org/questi...l7-4175603767/

Quote:
I have configured LDAP Server successfully in my envirement using below link.

http://www.learnitguide.com/2016/01/...-on-rhel7.html

I want to change home directory of existing ldap user. For example previously home directory of "ldapuser1" was "/home/ldapuser1".I want to change it to "/home/shared/ldapuser1" For the same i have crated a "ldif " file as below.

#cat ldapuser1.ldif
dn: cn=ldapuser1,ou=Group,dc=unixmen,dc=local
changetype: modify
replace: homeDirectory
homeDirectory: /home/shared/ldapuser1

and then executing below command

# ldapmodify -vx -D cn=Manager,dc=my-domain,dc=com -W -f ldapuser1.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
replace homeDirectory:
/home/shared/ldapuser1
modifying entry "cn=ldapuser1,ou=Group,dc=my-domain,dc=com"
ldap_modify: Object class violation (65)
additional info: attribute 'homeDirectory' not allowed

I did some googling but doesnt find anything
Really? Because I find more than 1.1 MILLION hits for your error. The first link has your solution on it:
https://docs.oracle.com/cd/E19424-01...acx/index.html

I leave it to you to find it on that page.

Last edited by TB0ne; 05-17-2017 at 08:08 AM.
 
1 members found this post helpful.
  


Reply



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
Creating a new user with other existing home directory is it possible? kchaitan2 Linux - Newbie 3 05-08-2017 02:51 AM
LDAP - not creating user home directory robertkwild CentOS 8 02-17-2015 05:26 AM
changing home directory permission in user management after user created in suse(KDE) hamedhsn Linux - Security 4 04-06-2011 09:18 PM
[SOLVED] rename an existing user and his home directory cccc Debian 5 10-29-2009 11:05 AM
Limiting ldap user on its own home directory sarajevo Linux - Server 1 08-11-2008 11:36 AM

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

All times are GMT -5. The time now is 02:23 PM.

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
Open Source Consulting | Domain Registration