**want to create a user account from "Crypted Password" to "Open Directory"

I have create a user account with "user password type: Crypted Password"
is there any way I can script it to "user password type: open directory"
I've use perl-ldap to create user account but I don't know how to change user password type to open directory,
because my script will add a new node in the directory, I just need a way to make the "user password type" to "Open Directory" AT CREATION TIME, not modifing it after a have a user account, the script below will generate a node in the directory with "Crypted Password" as User Password Type,
is there any attribute I need to add to make it "Open Directory" or perl command, applescript, bash, objective c(hopefully not)....
thank for reading...
$res = $c->add(dn => 'uid=testing,cn=users,dc=microsoft,dc=info',
attr => [
'cn' => 'testing',
'gidNumber' => '20',
'homeDirectory' => '99',
'objectclass' => 'inetOrgPerson', 'posixAccount', 'shadowAccount', 'apple-user', 'extensibleObject','organizationalPerson','top','person',
'sn' => 'testing',
'uid' => 'testing',
'uidNumber' => '5000',
1. 'apple-generateduid' => '27318931-B341-4364-91B4-84E4AAAD1234', #026F",
'givenName' => 'testing',
1. 'loginShell' => '/bin/bash',
'userPassword' => 'testing' ,
1. 'homePhone' => '555-2020',
2. 'mail' => '[email protected]'
die "unable to add, errorcode #".$res->code().$res->error if $res->code( );
thanks

Since this question isn't Xserve specific a better place to get an answer is probably in the Directory Services forum: http://discussions.apple.com/forum.jspa?forumID=1353
That being said if you are trying to migrate Crypt accounts to OD accounts then the short answer is no. You need an unencrypted password to put the password into OD via a script do short of cracking the encrypted password, inserting it in plain text into the OD user account creation process then I don't think you can.
You should be able to dictate the password (and any other settings you can do from the GUI) but the password is the missing piece. Under really old OS X systems I actually suspect you can get passwords to export (hinted at by an Apple engineer I discussed this with) but there is probably a faster and more straightforward solution.
What I have done is export from NetInfo, clean the accounts via script and then reimport the accounts into the new system. I usually assign a password and dictate "Must change password at next login" and then email people the temporary passwords. It's been a while but I believe you can mass select and then dictate password settings so if that works for you create accounts with all the same password and then you can select by group and make changes - eg Must change password at login.
Good luck,
=Tod

Similar Messages

  • Create Oracle USER Account from Third Party System

    Hi there
    We have requirment to create Oracle USER Account through third party system.
    How can we achive this?
    I know ORacle Provide FND_USER_PKG.CREATEUSER API to create user
    Is there any special thing we have to do to create Oracle USER from another system?
    Thanks
    ASIM

    Hi,
    Is there any special thing we have to do to create Oracle USER from another system?I believe you need to check the third party manual or contact the vendor for other considerations when creating user accounts from this system.
    For FND_USER_PKG, please see the links referenced in this thread.
    change password of EBS user
    Re: change password of EBS user
    Regards,
    Hussein

  • How to create a user account without a password

    how do you make a user account without a password!

    Hi Kappy,
    i checked out your bio and posts. would you be able to give me some guidance with respect to a recent post of mine. I'd appreciate any help you may offer.
    with respect to the password question, an added point may be to suggest a strong and secure password. i'm still baffled by the poor passwords in use by some of the people i know personally - and their smart individuals too.
    thanks in advance.
    blue.falcon

  • Need an script to create some user account with increasing passwords

    hi friends
    i'm not expert in scripting.
    manager gave me a list of about 50 users which i must create in my windows server 2008 R2 local users & groups snap-in (Lusrmgr.msc).
    suppose i have this 5 users :
      1-albert    2-Brian   3-calvin  4-carl   5-john
    i need an script (maybe for /L ),so that it reads this 5 users from a text file or .csv file & create them & their password be so:
    albert's password be abc1
    Brian's password be abc2
    calvin's password be abc3 & so on.
    i mean their password be abc ending with increasing number which increases one unit
    thanks in advanced

    There should be some automatic user account generating scripts in the
    repository.
    You can request a script here:
    http://gallery.technet.microsoft.com/scriptcenter/site/requests
    This forum is for scripting questions, not script requests.
    -- Bill Stewart [Bill_Stewart]
    hi Bill
    i wasn't familiar with scriptcenter
    thanks for advice
    regards

  • I use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    Welcome to Apple Support Communities
    That's the classic behaviour after using Migration Assistant and that's normal.
    To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472

  • Create a User account in active directory from SharePoint online 2013 list data

    Hello,
    I am trying to create a SharePoint list through which i can create a user account into active directory, 
    1 - HR is sending the detail in the email body to a Specific email address  ([email protected]) like below..
    First Name: XYZ
    Last Name: ABC
    Address: ABC 123
    Designation: Analyst
    Employee ID: 10492
    and so on 
    2 - I need to pickup every new email data of the above section into sharepoint list (in Column)
    First Name        Last Name       Address         Designation   Employee ID   
    3 - I want to create a event receiver through which i can go ahead and find the new data in the list and then create a user in the active directory,
    I tried very hard and since i dont have much experience in coding part,  any help will be highly appreciated
    Thank you 
    Aman 

    1- Configure Incoming Email Setting at your SharePoint Farm -
    https://technet.microsoft.com/en-us/library/cc262947.aspx
    http://blogs.technet.com/b/harmeetw/archive/2012/12/29/sharepoint-2013-configure-incoming-emails-with-exchange-server-2013.aspx
    2- Configure your Sharepoint List Incoming e-mail settings for [email protected] - ListSetting-Communications->Incoming e-mail settings. -
    https://support.office.com/en-in/article/Enable-and-configure-e-mail-support-for-a-list-or-library-dcaf44a0-1d9b-451a-84c7-6c52e7db908e
    3- Write an Incoming Email Receiver , and Add you Email Body Parsing Code (retrive value of fields , firstname , lastname etc) in
    EmailReceived() method. also add the code for adding new user in Active Directory
    http://blogs.msdn.com/b/tejasr/archive/2010/03/06/event-handler-code-to-add-incoming-emails-with-subject-discussion-id-as-replies.aspx
    https://pholpar.wordpress.com/2010/01/13/creating-a-simple-email-receiver-for-a-document-library/
    4-  Active Directory Code Help -
    http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C
    http://www.codeproject.com/Tips/534718/Add-User-to-Active-Directory
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • If i have an Apple account with monay in it and i want to creat a new account can i transfer the money from the old account to the new account ?

    if i have an Apple account with monay in it and i want to creat a new account can i transfer the money from the old account to the new account ?

    If the money contains a completely unspent balance from an iTunes gift card, the iTunes Store staff can put that money back onto the card.
    (89393)

  • HT4796 How do I migrate two user accounts from the PC and create the two new user accounts on the mac?

    I am migrating from a PC to a new Mac. The PC has two user accounts. I want to migrate those two accounts from the PC to the Mac, keeping everything separate as it is on the PC. How can I do this?

    When you have set up migration assistant on your pc, it gives you options on what you want to migrate. Chose one account and migrate it, then choose the other account, and do the same. Two accounts will automatically be set up on the Mac.

  • Project Server 2010: We want to create the User Profile Service but it keeps hanging when attempted from Central Administration. Any PowerShell commands to do this instead?

    We want to create the User Profile service in Project Service 2010. Are there any PowerShell commands that can be used to achieve this?
    Thanks in advance.

    Hello,
    See the links below for examples:
    http://www.harbar.net/archive/2010/10/30/avoiding-the-default-schema-issue-when-creating-the-user-profile.aspx
    http://thesharepointfarm.com/2011/03/configuring-user-profile-service-and-user-profile-synchronization-service-via-powershell/
    http://blogs.msdn.com/b/rcormier/archive/2012/05/10/how-to-create-a-sharepoint-user-profile-service-application-with-powershell.aspx
    I'd also review this is if it is stuck starting:
    http://www.harbar.net/articles/sp2010ups2.aspx
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Can I create an icloud account from another user's iphone?

    I lost my iphone and I didn't create an icloud account. Can I create my icloud account from someone else's iphone?

    Too late now, if your intent was to locate your phone. There is no way to locate your phone if you didn't set this stuff up before you lost your phone.

  • Problems creating separate iTunes account from iPhone

    My wife and I have iPhones. I'm a MobileMe account user and my wife's email address is another email address within my MM account (I'm [email protected] and she is [email protected]). If we try to access iTunes with her existing email address it says the ID doesn't exist but when we try to set up a new user account in iTunes through her iPhone we're getting the message that the account is on an existing MobileMe account so won't set up new account.
    How do we set up 2 iPhones to work with these email ID's?

    If your wife's MobileMe address is an alias address under your MobileMe account, this is likely the problem when trying to create a new iTunes account with an alias email address, which is under the primary MobileMe account/address.
    If both iPhones are synced with the same iTunes library at the present time with all 3rd party apps in your iTunes library and on each iPhone purchased/downloaded with your existing iTunes account, why do you want to create another iTunes account? All 3rd party apps and video purchased/downloaded from the iTunes store include DRM protection which is tied to the iTunes account used to purchase/download the content.

  • Creating second user account on TC. No separate folder and security issues

    Hi,
    I've had my TC for some time, and after some start-up triuble all is working very nicely now.
    That is, until I wanted to set up the TC for my girlfriends backups too. On my mac, i created a user account for the TC, and i see two folders when i connect to the TC: "Timecapsule" and "MyAccountName". Now when i did the same on the other Macbook, i get only the "Timecapsule" account, not a folder (or sharepoint) with her account name. Also, I saw that as the sparsebundle files are on the 'main' sharepoint, it is possible to access both from both computers, wierd.
    Any thoughts on how I can use 1 TC for 2 computers with 2 sharepoints for both?
    So, on my own computer i would have a general folder and a personal folder, on the other the same...
    Help much appreciated!

    To clarify: When i connect to the TC, i mount two volumes, but on the other Macbook, I only get the main volume, not the specific user volume.

  • How to use migration assistant without creating dual user accounts

    I want to use migration assistant to transfer apps, software & files on my macbook pro to my new macbook air. How can I do this without creating two user accounts for myself on the m-book air -- my account from the m-book pro & the one that the air makes me create as soon as I do start-up? Can I just use the same name & password for both? or will that make things go badly awry?
    Thanks!

    If you have not booted the MBA for the first time and gone through the Setup Assistant, then I would use the Setup Assistant to make the transfer before you even create another user account. However, if you've already created the new user account on the MBA, then create a new admine one with a different username than the account you will migrate. Log into this new account, delete the first account you made, then use Migration Assistant to transfer your account from the MBP.

  • How to create a user account by mirroring another account in PowerShell (Trying to learn to use Powshell for some daily AD tasks intead of the GUI)

    Hi,
    I am trying to create user accounts via PowerShell instead of the Gui in server 2008 R2 (PowerShell 2.0).
    I know how to create a user account with the following Power Shell command below is one from a dummy domain I created to practice.
    PS C:\Users\Administrator> New-ADUser -SamAccountName "TestOut" -UserPrincipalNa
    me "[email protected]" -GivenName "Test" -Surname "out" -DisplayName "Testou
    t" -Name "Testout" -Enabled $true -Path "CN=users,DC=bwcat,DC=net,DC=int" -Accou
    ntPassword (Read-Host -AsSecureString "Enter Account Password") 
    However when doing day to day tasks where I work normally we have a new hire, they contact IT and ask that a user account is created.   I will ask who they would like to mirror.
    I then would go into the gui pull up the user that they want to mirror right click him and choose copy.  This would create a new user account that I would then fill out.
    I am wondering if its possible to do this same thing via PowerShell, or  if its not an option because it takes more work type up everything than it does to go into the gui and do it.
    Anyway thanks for the help.

    Hi Wilder, hi Mark,
    first of all: The tutorial sources Mark posted - especially the book "Powershell 3 in A month of lunches" - are good to get a baseline start. A really great reference, especially when you try to learn it while still dealing with your daily business.
    On another note, Wilder: While I fully agree that learning things sequentially is usually the best, I too jumped right in instead of learning how to walk first (though it's been some time now. Fewer years than you'd think, but still ...). So I thought I'd
    give you a little aid with that function husk, so you could just stuff interesting bits into an available structure, making use of the fun tools in a useful context (It's fun fiddling around with the commands, but if you have to type in all of them manually
    each time, using the GUI is often just faster. Doing fun things and being efficient with it feels even better though ...). So ... while I
    do agree with yourself, learn it the Correct & Proper Way, I also do
    intend to finish this little explanation about the husk, all the way to the end.
    Everything below this paragraph is part of this.
    function Copy-ADUser
    <#
    .SYNOPSIS
    A brief description of the Copy-ADUser function.
    .DESCRIPTION
    A detailed description of the Copy-ADUser function.
    .PARAMETER GivenName
    A description of the GivenName parameter.
    .PARAMETER Surname
    A description of the Surname parameter.
    .PARAMETER Template
    A description of the Template parameter.
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    .NOTES
    Additional information about the function.
    #>
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    ) # Create finished Strings
    $JoinedName = $GivenName + "." + $Surname
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName $JoinedName -Name "$Surename, $GivenName" -PassThru
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    This is again the same function husk I posted earlier. Only this time, I filled a little logic (the pieces that were already posted in this thread). This time, I'll not only go over each part again ... I'll do it by reposting the segments and trying to show
    some examples on how to modify the parts. Thus some of it will be repetitive, but this way all the info is in one spot.
    Segment: Comment Based Help
    <#
    .SYNOPSIS
    A brief description of the Copy-ADUser function.
    .DESCRIPTION
    A detailed description of the Copy-ADUser function.
    .PARAMETER GivenName
    A description of the GivenName parameter.
    .PARAMETER Surname
    A description of the Surname parameter.
    .PARAMETER Template
    A description of the Template parameter.
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    .NOTES
    Additional information about the function.
    #>
    That's the premier documentation part of a function, that teaches a user what the function does and how to use it. It's what's shown when using the Get-Help cmdlet.
    Comment texts are not restricted to single lines however. For example you could replace ...
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    ... with ...
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    Creates a new user named Max Mustermann and copies the group memberships of the already existing user Jonny Normal to this new User
    ... and get an explanation on what the example does when using Get-Help with the
    -Detailed parameter (Explaining examples is always a good idea).
    Segment: Parameter
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    This is the segment that tells Powershell what input your function accepts. Each parameter of Copy-ADUser you set will be available in the next segment as a variable of the same name. You can add additional parameters if you need more information for your
    logic. For example, let's add a parameter that allows you to specify what Organization the new user should belong to:
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [string]
    $Organization,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    That's how that would look like. You may notice that I didn't add the line with
    "[Parameter(Mandatory = $true)] this time. This means you
    may add the Organization parameter when calling Copy-ADUser, but you need not.
    Segment: Logic
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    This is the part of the function that does the actual work. Compared to the first husk I posted, this time there are two commands in it (and some comments). First, I create a new user, using the information passed into
    the parameters -Surname and -GivenName. Then I Copy the group memberships of the user identified by the information given by the
    -Template parameter.
    So, let's modify it!
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Tell the user you are copying Group Memberships
    Write-Host "Copying the group-memberhips of $Template to $GivenName $Surname"
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    Now after adding a few lines, the logic will tell us what it's doing (and do so before it
    is taking action)!
    Hm ... didn't we create a change in the Parameter Segment to add an -Organization parameter? Let's use it!
    # If the -Organization parameter was set, the $Organization variable will be longer than 0. Thus do ...
    if ($Organization.Length -gt 0)
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname in the Organization $Organization"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -Organization $Organization -PassThru
    # If the -Organization parameter was NOT set, the $Organization variable will have a length of 0. Thus the if-condition does not apply, thus we do the else block
    else
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Tell the user you are copying Group Memberships
    Write-Host "Copying the group-memberhips of $Template to $GivenName $Surname"
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    There! Now we first check whether the -Organization parameter was set (it's not mandatory after all, so you can skip it). If it
    was set, do whatever is in the curly braces after if (...). However, if it wasn't set, do whatever is in the curly braces after
    else.
    And that concludes my "minor" (and hopefully helpful) tutorial on how to use the function husk I posted :)
    With this, whenever you find another cool command that helps you in the user creation process, you can simply add it, similar to what I did in these examples.
    And if it all didn't make much sense, go through the tutorials in proper order and come back - it'll make much more sense then.
    Cheers and good luck with PowerShell,
    Fred
    There's no place like 127.0.0.1

  • Old user account not accessible - Had to create new user account

    Why was I forced to create a new user account in order to access Apple discussions? The last time I had posted to Apple discussions was 11/06. From the emails notifying me of replies to my post, I can still go to the link where my question and the replies are. Last week I wanted to post another question. Instead I encountered a circular problem. Every time I tried to log in to discussions with my Apple ID and password (the same as my .Mac name and password, which were working fine for accessing .Mac), I was told that there was an error in my password. When I tried again, I was repeatedly re-directed to a "create new user account" web page that listed my .Mac email address as my Apple ID, as it should have. I tried to re-create my old user account with my own [real] name (as before) and was told that name was in use! Of course, it was me! (I had always used by real first name and surname as my name on Apple discussions.) So finally, very frustrated, I created a new name, a nickname, for discussions, and it worked. Now, all my previous posts are gone. It's as if I didn't exist in the Apple world until today, 9/16/07, but I originally had established my user account in 2004. I tried asking about this in a phone call to Apple support, but I was re-directed to the .Mac web site. Then I posted a question at .Mac feedback to no avail. I had a feeling that as soon as I "obeyed" and created a new user account that wouldn't be recognized as myself, my past posts would be sent into oblivion. I don't like losing all my previous posts that were attached to my user account. I have found this problem very frustrating and would really like an explanation.

    Hi decemberbaby,
    Try this procedure.
    Delete all the Apple Cookies in your browser, and empty the Cache.
    Go here Discussions Sign In, and try logging in with your original Apple ID again.
    If that still doesn't work, delete the Cookies again, and go to My Info, and log in with the original Apple ID.
    If you get the error message "Your Apple ID or password was entered incorrectly.", click on "Did you forget your password? Click here for assistance".
    On the page that opens, you can also click on "Forget your Apple ID
    ali b

Maybe you are looking for

  • Faster split than String.split() and StringTokenizer?

    First I imrpoved performance of split by replacing the String.split() call with a custom method using StringTokenizer:                 final StringTokenizer st = new StringTokenizer(string, separator, true);                 String token = null;      

  • How to open an pdf report On click of some command button in adf

    Hi, I have to generate some pdf report or some pdf document on click of some command button .Could any one please tell me how to achieve this. suggestion would be appreciated, Regards Vinay kumar

  • Cannot get recordset navigation to work

    I've created a search results page with a recordset titled rsPhoneList. Here is the code for it that DW created: SELECT * FROM DistrictPhoneList WHERE EmpName LIKE %colname% When I run a test on it, it displays 17 of my records when I put in a few le

  • Condition type FRA1, condition category B and returns item

    When a delivery is not accepted and returned, a new purchase order is created where the field returns item flagged. Conditions like ZPB0 becomes a negative value, but the FRA1 not. In our business it is common not to pay the transport costs if the de

  • Certifications in ABAP

    Are there any certifications in ABAP? What is the procedure, syllabi , fees? Any site where I can get details?