Changing Directory Install Name

Hi,
If I have built my Sun One directory server under a given name, for example, "myserver", can I rename it without re-installing the directory.
Eg the above example creates a physical directory called "slapd-myserver" and creates config and entries in the registry referring to a service of the same name.
Can I change this somehow if I want to rename my service to Eg "mynewserver", so I get a physical directory called "slapd-mynewserver" and the appropriate config and registry entries.
TIA for any help,
DB

I've done it several times by using approriate shell scripts and standard *nix and LDAP utilities.
If I remember well, I do as follows:
- take a complete LDIF dump of the Netscaperoot
database ;
- stop the administration server and all the instances of
the DS administered by it
- change the OLDNAME of the instance using 'sed' in the
following instance files:
- dse.ldif
- 99user.ldif
- all the shell and Perl scripts in the
slapd-OLDNAME directory
- change OLDNAME to NEWNAME in the
admin-serv/config/adm.conf file, if the DS instance to
change is the configuration instance
- rename the slapd-OLDNAME directory to
slapd-NEWNAME
- change OLDNAME to NEWNAME in the LDIF dump file
of the Netscapereoot database
- do a full import of the Netscaperoot database from the
changed LDIF dump file
- restart everything
It usually works ;-))) and is very quickj.
Best wishes,
Michele Montagni

Similar Messages

  • Changing Directory/Folder Names to Lowercase in RH 8?

    Using RH 8 on Windows XP Professional
    I need to publish my RoboHelp project to an Apache server.  Some of my directory/folder names have capital letters in them, which wasn't a problem with RH 5.  My project always worked on the server despite that.  However, when I publish with RH 8, pages and images inside directories with any capital letters in their names won't show up. However, if on the server I manually change the directory names to all lowercase, these pages and images show up. Now, I just need to be able to publish this way from RoboHelp, which is my problem.
    Here is everything I've tried.  If you have suggestions on what else I could try, please help.
    Every time I published the project, I checked the "Use Lowercase File Names (Recommended for UNIX)" option, but this only changes the html file names not the directory names.
    In RoboHelp's Project Manager area, when I renamed the directories to lowercase letters, they immediately went back to the capitalization that had previously.
    Then I tried closing RH and renaming the directories to lowercase in a Windows Explorer window.  However, when I open the project back up in RoboHelp, these directories show up with capitalization again...even though the source directories have been renamed with lowercase letters.
    After that, I tried deleting the .cpd file (with RoboHelp closed of course) because I had seen from other forum posts that this fixes a variety of problems. When I re-launched RH, I still have the same problem with the directories showing up with caps.
    If I try to republish with all of the directories on the server in lowercase, RoboHelp either creates a new directory for the capitalized folders (can reside side by side with the lowercase folder of same name on an Apache server) and puts the contents inside it or it dumps it's contents at the top-level directory of the project.  For example, if my folder says "Papers" in RoboHelp and I already have a folder named "papers" on the server, I'd have two folders, "Papers" and "papers", on the server when RoboHelp finished publishing.
    I tried deleting all the files on my server and re-publishling in the off chance RoboHelp would magically publish the directories in lowercase.  Of course, this didn't work, but I was getting to the point that I'd try anything.
    Again, any suggestions you have on what would work would be hugely appreciated.

    Hi again
    I can't help but to notice you said you deleted the files from the server. You didn't say folders too.
    About the only other thing I can think of is to try renaming yet again to something like folder1 so the names are actually different. Then push that to the server and see if it mysteriously shifts to mixed case.
    Frankly, I'm surprised it failed to work straight off. But you never know sometimes when dealing with servers.
    CPD is a Cache Project Database. Most of your project files are now in an XML format. Those files used to only reside in the CPD and instead of CPD the extension was MPJ. This is a Microsoft Access Database file using a custom file extension. Just making an educated guess here, but I suspect it's primary purpose these days is to provide an easy means of reporting on the project.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Changing original install name of computer

    I have recently migrated from an old PPC G5 iMac to a new Intel iMac using FireWire. Everything transferred over including the name of the old name of 'Makam's G5', which I would have liked to change. Would appreciate any help to solve this naming issue.

    makam wrote:
    Everything transferred over including the name of the old name of 'Makam's G5', which I would have liked to change.
    Open the Sharing panel of System Preferences. You'll see a "Computer Name" field there. If that doesn't change enough, click the nearby "Edit" button and change what you see there.

  • Impact on roaming profile accounts if we Change User logon Name to Employee Number format in Active Directory for all User accounts

    I want to understand if we change User logon Name to Employee Number format in Active Directory for all User accounts, then what would be the impact on existing profile. Whether we need to change it manualy or it will connect to same profiles in terminal
    session.
    As i observed it create new profile after logon name changed to employee number where existing users profile settings get fails to load and prompt for new settings (such as outlook reconfiguration, share drive mapping etc.).
    Kindly let me know the proper process to overcome with this, how to connect same existing roaming profile with employee number format change.

    Hi,
    What if we change the user name of user account, will it have impact on roaming profiles.
    Yes, it will affect roaming profiles. Please rename the roaming profile folder as the new user account name, in addition, change the profile path in ADUC.
    Here is an related article below for you:
    How to Rename a Windows 7 User Account and Related Profile Folder
    http://social.technet.microsoft.com/wiki/contents/articles/19834.how-to-rename-a-windows-7-user-account-and-related-profile-folder.aspx
    Best Regards,
    Amy

  • How to change the "short name (account name?)" and home directory name?

    Hi,
    I recently purchased a new iMac and migrated account info from my MacBook Pro.  I happened to use random account name during migration without knowing it will not be easy to change the short name (account name?) and home directory name.  As a result, I am now having extremely confusing short name and home directory name on my new iMac.
    I did online search to find out how to change the two names, but I could only found somethig like "enabiling root user and....."  I have no idea what it was talking about and I don't want to take risk altering such advance set up manually.
    Please advice how I can change the short name and home directory name safely without much PC knowledge.
    Thank you very much in advance.

    There are a few ways of doing this. The easiest method is logging into the first account and copying everything to an external drive (or flash drive or whatever), which changes the permissions so that others can see the files.
    Then, login with the new account and copy the files over. Once they are copied, the correct permissions will be applied again (so other people on your computer can't access them).
    If you can't do this method for one reason or other, you can do some terminal commands to change the ownership of the files. Login to the new account. If it is an admin account, open terminal and type the following command:
    sudo chown -R -v yourusername:admin /Users/originalaccountnamehere
    That should change the ownership of the files from your old account to the new one. At that point, you can simply drag the files into place.

  • Can not login after changing account short name and home directory

    Hi,
    I did sth rather stupid while trying a get timemachine working on my iMac 10.5.5.
    I changed the short name, login shell and home directory of my account. (didn't listen to the waning that I may not be able to login if I change those information Now I can not log into my account anymore. I tried to use fileVault master password to change the password of my account, but it didn't help. Can anyone tell me how do I fix this problem?
    Thanks a lot!

    xyz2008 wrote:
    No, I still can not log in as that user.
    I did as you advised, but it gave the following message:
    "attache failed, no such file or directory"
    then I suspect you may be entering the command incorrectly. another possibility is this. I noticed you said in one of the previous posts that if you cd into the main user home directory you only see user.sparseimage. It actually should be user.sparsebundle. Or have you upgraded to leopard from tiger with filevault turned on? then it could have remained sparseimage rather than sparsebundle.
    run the following in terminal
    sudo ls -la /users/username
    and post the results.
    does it list sparsebundle or sparseimage?
    Another thing, when I typed in the command, it didn't take the admin (root) password, but the password of the account I was logged in got me through.
    that's what it has to be. it takes the password of the user (it jhas to be an admin user) which is currently logged in.
    I am wondering if I can recover the problem user's files from the sparseimage file, then copied all the files to a new user.
    Message was edited by: V.K.

  • How to change computer user name after installing a new hard drive on my computer. HELP

    TO WHOMEVER CAN HELP ME: 
    How do I change my computer user name after HP installed a new hard drive on my computer.  Now it is called TEST??  So on my C drive instead of saying my name it says TEST.  Please help???
    Thanks in advance for any help I can get.
    Christina   

    Hi, Christina:
    Go to the control panel and then to user accounts. Select the Change Your Account Name option. Change the account name from Test to Christina.
    That should do it for you.
    Paul

  • Changing the system Name after Installing EP

    Hi All,
    I need to change the system name of the server and the IP address of the server after EP is installed. Is it possible to do this? Will the EP work properly?
    Regards
    Arun

    Hi Arun,
    There is many reference in the config of the portal to the server name.
    I doubt you will be able to do it without difficulties.
    If you use KM, you will have trouble with internal links in documents. We had to install an apache server for redirection when we migrated/upgraded from EP6 SP2 to 2004s, because the server's name changed.
    Also, you will need to reinstall the local edit activeX to your users.
    I hope someone can answer you better than me.
    There always the system copy option.
    Brad

  • How to change (NT)Domain Name after installed ERP?

    Hello,
    We are planning to change (NT) Domain Name on environment of already installed ERP/BW(WAS 6.40)/SRM/SolMan(NW 7.0).
    We know SAP recommend that customer should be Re-install or System-copy SAP-System if the Domain name is changed after installed systems.
    However, we do not have enough time and budget for doing that.
    Questions:
    1). If the (NT) Domain name will be changed, we only need to change the
    OS users of service for SAP-System?
    (I think that it is needed to change only OS-users of SAP-service. Is there other setting for that?)
    2). The method of only changing users of SAP-service is not supported in this case?
    (The customer will be not taken the SAP-Official support after doing that?)

    Dear
    Changing domain name is not supported by SAP if done in a productive environment (after systems have gone live).
    You will probably not get support by SAP after you change the domain name once system is live.
    There are a bunch of changes you will need to perform as well.
    The domain name is probably existing in the RFC's and you cannot change all of those through SM59.
    You will need to update those entries at Oracle level.
    SAP parameters containing domain name
    Java environment where domain name is contained
    Reset hostname buffer
    Service marketplace
    SAP Logon
    STMS
    Monitoring perhaps, non SAP job scheduling
    Please reward points accordingly
    Kind regards
    Tom

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • I want to change my home directory/computer name

    i want to change my home directory/computer name

    How to change user account name or home directory name:
    http://support.apple.com/kb/HT1428
    https://discussions.apple.com/docs/DOC-3872

  • Change of Domain name and IP address - Urgent requirement

    Hi,
    The Oracle internet directory is installed as a separate component and we have a requirement for changing the ipaddress and domain name . Could any one please tell me what steps need to be done or any related documents for changing the domain name of OID.
    thanks in advance.
    regds,
    hussain

    Refer following for 10.1.2:
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/host.htm#BABJGDBH
    Hope this will help.
    Thanks
    Shail

  • Changing the short name at migration?

    Rather than upgrading from Tiger to Leopard, I backed everything up on an external drive in order to do a clean install. When I to migrate I want to change the short name, or somehow bring what was under a previous account into a new one with a different name. Is this possible? Is it a matter of dragging and dropping folder rather than migration? (or would that mean not migrating applications?)
    I can provide more details if needed.

    No, you cannot change an account name via Migration Assistant. If you want to change the short name do so after migrating. Instructions are here:
    How to change user short name or home directory name
    Or, download the freeware utility ChangeShortName - VersionTracker or MacUpdate - and use it to change the shortname.
    I suggest the latter.
    If you create a new user account with the name you prefer and want to get your old account information into the new account then see this article:
    How to recover a home folder (directory) .

  • Changing the screen name or computer name.

    when i installed leopard and it asked for information on the computer name i put the wrong information. how do i change the computer name. i looked in accounts under system prefences and i changed the name there but in finder under places where there is the home button it is the old one. how do i completely change all of it to the new one.
    thanks

    Open the Accounts pane of System Preferences, unlock the padlock, control-click your account, choose Advanced Options, and change it. If you change the home directory's path, you also need to move its contents in the Finder.
    (40769)

  • Changing a folder name

    I need to change my folder name with the home icon.. this can be changed by the user icon..... but when i change it it says i might lose information.... could someone please help

    Here it is again but I didn't do anything different, and it works for Rudegar. http://support.apple.com/kb/HT1428
    Here's a copy and paste in case you still can get to it:
    OS X: How to change user account name or home directory name
    Summary Learn how to change your user account name and home directory name (which should match) by using the advanced procedure described below.  
    Products Affected
    Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, OS X Lion, Mac OS X 10.0, Mac OS X 10.1, Mac OS X 10.2, Mac OS X 10.3, Mac OS X 10.4
    About the account name
    Each user in Mac OS X has a "Full Name" (referred to as "Name" in Mac OS X v10.5.8 or earlier) and an "Account name" (referred to as "Short Name" in Mac OS X v10.5.8 or earlier) as defined in the Users & Groups pane of System Preferences (referred to as Accounts pane or Users pane in Mac OS X v10.6.8 or earlier). The account name can contain up to 255 lowercase characters with no spaces. This is the name used to create a user's home directory (also known as the user's Home or Home folder) in the Users folder. Once the user has been created, the account name (or short name) cannot be changed in the Users & Groups pane of System Preferences.
    Changing the account name
    Though there are other methods by which an advanced user may change the short name and related information, the easier and safer workaround is described below.
    Before following these steps, you may wish to back up your important data.
    For Mac OS X v10.5 or later
    Enable the root user.
    Log in as root.
    Navigate to the /Users folder.
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be  all lowercase, with no spaces, and only contain letters.
    Use the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier) in System Preferences to create a new user with the Account name or Short Name that you used in the previous step.
    Click OK when "A folder in the Users folder already has the name 'account name'. Would you like to use that folder as the Home folder for this user account?" appears. Note: This will correct the ownership of all files in the Home folder, and avoid  permissions issues with the contents.
    Choose Log Out from the Apple menu.
    Log in as the newly created user. You should be able to access all of your original files (on the desktop, in Documents, and in the other folders of this Home).
    After verifying that your data is as expected, you can delete the original user account via the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier).
    Disable the root user.
    For Mac OS X v10.4.11 and earlier
    Optional step: As a precaution, you may disable automatic login prior to performing this procedure.  You might want to back up important data, too. In the event that you restart the computer for any reason before completing the procedure, this would prevent complications from having displaced the user selected for automatic login. (For Mac OS X v10.1.5 or earlier, automatic login is found in the Login preference pane. For Mac OS X v10.2 and v10.3, it is found in the Accounts preference pane.)
    Mac OS X v10.3 or later: If FileVault is enabled, temporarily turn it off, which will log you out.
    Enable the root user and log in as root.
    For Mac OS X v10.2 or later: Open the Accounts pane of  System Preferences.
    For Mac OS X v10.1.5 or earlier: Open the Users pane of System Preferences.
    In the Name list, locate the user account with the short name that you want to replace. This will be referred to as the "original user".
    Note whether or not the original user is identified as an administrator, which appears in the Kind column to the right.
    Click New User. For Mac OS X v10.3 or later, this is the plus button.
    Complete the Name and Short Name fields as desired. Be sure that the Short Name is exactly as you want it to appear.
    For Mac OS X v10.2: Fill in the New Password and Verify fields.
    For Mac OS X v10.1.5. or earlier: Click the password tab, then fill in the Password and Verify fields.
    If the user you are replacing is an Admin user, then select the checkbox for "Allow user to administer this computer". For Mac OS X 10.3, click the Security tab to locate this setting.
    Note: This checkbox is dimmed and already selected if there is not another Admin user. Mac OS X requires at least one Admin user.
    Click Save. (Skip this step for Mac OS X v10.3.)
    Quit System Preferences.
    Click the Finder icon in the Dock.
    Choose Computer from the Go menu.
    Open the Users folder in the Mac OS X disk.
    Open the folder with the short name of the new user that you just created.
    Drag the contents of this folder to the Trash.
    Important: Do not empty the Trash yet. In the event that you accidentally move contents of the wrong folder, you may recover them from the Trash after discovering your mistake.
    Choose New Finder Window from the File menu. Be sure to position the new window so that you can see both Finder windows.
    In the new window, open the folder of the original user.
    Press the Option key as you drag the contents of the original user's folder into the new user's folder (that you emptied in Step 16). This makes a copy of the contents.
    Close one of the Finder windows.
    Open the Terminal application (located at /Applications/Utilities/).
    Type: chown -R <new_name> /Users/<new_name>
    Important: Replace "<new_name>" with the actual short name of the new user you just created. For example, if the new user had the short name "jacques", you would type:
    chown -R jacques /Users/jacques
    Press Return
    Quit Terminal.
    Choose Log Out from the Apple menu.
    Log in as the new user. You should be able to access all of your original files on the desktop and in the folders of the Home directory.
    Important: If you do not have access to your original items, log out and log back in as root, then repeat Step 22. Also, be sure that you did not place the wrong files in the Trash in Step 16.
    Choose Home from the Go menu.
    Open the Library folder, then the Keychains folder inside it.
    Select the keychain, which should still have the short name of the original user.
    Choose Show Info from the File menu.
    In the Info window that appears, choose Name & Extension from the pop-up menu.
    Change the name to match the new user's short name.
    Close the Info window.
    Open the Keychain Access application, located in the Utilities folder.
    From the Edit menu, choose "<new_name> Settings". For the user Jacques, this would appear as: "jacques Settings".
    Click Change Passphrase.
    Enter the desired password, then click OK. You may use the same password again or set it to match the login password of the new user.
    Note: This step prevents you from discovering later that the keychain had retained an older password.
    Quit Keychain Access.
    Disable the root user.
    If everything is working correctly, you do not need to log back in as root to empty the Trash. The folders you put there occupy a negligible amount of disk space.
    Depending on what software you have installed, you may wish to rename other files and folders that may have been created under the original user short name to match the new user short name.
    Once you are certain that everything is working properly, you may want to delete the Home directory (folder) of the original user, which should be empty. For instructions on how to do this, see this article.
    Additional Information Note: Although you can change your Home name in Mac OS X v10.3 or later, you  usually shouldn't.  
    Rate this article:
    Not helpful
    Somewhat helpful
    Helpful
    Very helpful
    Solved my problem
    Last Modified: January 24, 2012
    Article: HT1428
    Views: 2475086
    Rating:  3.0/5 Stars
    (1039 Responses)
    Languages
    Still need help?
    Need more help? Express Lane is the fastest way to contact Apple.   Use Express Lane to connect with an expert in Apple Support. 
    Get started
    Home >          Support Shop the Apple Online Store (1-800-MY-APPLE), visit an Apple Retail Store, or find a reseller.                         
    Apple Info
    Site Map
    Hot News
    RSS Feeds
    Contact Us
    Copyright ©  2012 Apple Inc. All rights reserved.          
    Terms of Use
    Privacy Policy

Maybe you are looking for

  • Applet hangs web server when upgrading from 1.6 to 1.7

    I've got a client-side printing application which works fine on 1.6 and fails on 1.7 where it essentially hang the server on the connect option to the server and loading the jar file. Specifics: PC Client running windows 7 x64 Browser versions IE9, I

  • Got mixed up with someone else's account, please help!

    Alright guys, I'm sorry for the long post, but this is quite a complicated situation now and I haven't been able to get help anywhere else.  I talked to a Reddit user who happens to work for Best Buy Corporate, and he recommended asking one of the Co

  • Cannot import/open ppt files

    I can't seem to open any powerpoint files. Just bought the license for keynote yesterday and want to bring in a ppt presentation. Tried both methods in the pdf instructions as well as other methods. No luck what so ever. Must be something real simple

  • ClassNotFoundException in running jdbc servlet

    hi i've wrote a servlet to connect to my Teradata db but when i run it on tomcat i get this java lang exeption: ClassNotFoundException: com.ncr.teradata.TeraDriver the thing is that the connection and sql code work on an application withoput any prob

  • Sample & bit rate

    I have a two part question: 1) I have a Presonus Firebox that allows me to record up to 24 bit/96k. I am wonder if I should take advantage of this and use those settings in audio midi setup for when I record into GrarageBand? Is it worth the extra fi