Need Help creating new user in Active Directory

I am trying to create a new user in active directory via a java application. I have included the code that I am using. I am able to successfully bind to Active Directory. I have been able to change passwords, and delete users, but I have not been able to create a user.
ldapHost : "mta101.DOM101.CEL.ACC.AF.MIL"
domainName: "dc=dom101,dc=cel,dc=acc,dc=af,dc=mil"
existing account: CN=Brett K. Humpherys,OU=Users,OU=CEL
I get the following error on the createSubcontext statement:
javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - 00000057: LdapErr: DSID-0C09098B, comment: Error in attribute conversion operation, data 0, v893 ; remaining name 'CN=test1,OU=Users,OU=CEL'
I have commented out the password portion and change the ObjectCategory to a 32 and get the same error.
    public GblStatus createAccount7(DbaDb dbConn,
                                    String jsrcName,
                                    String personName,
                                    String username,
                                    String password)
      Hashtable ldapEnv = new Hashtable(11);
      ldapEnv.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
      ldapEnv.put(Context.PROVIDER_URL, "ldap://" + this.ldapHost + ":636");
      ldapEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
      ldapEnv.put(Context.SECURITY_PROTOCOL, "ssl");
      ldapEnv.put(Context.REFERRAL, "ignore");
      ldapEnv.put(Context.SECURITY_PRINCIPAL,"cn=" + this.adminAcct + ",cn=users," + this.domainName);
      ldapEnv.put(Context.SECURITY_CREDENTIALS, this.adminPwd);
       try
        // Create the initial context
        DirContext ctx = new InitialDirContext(ldapEnv);
        BasicAttributes attrs = new BasicAttributes();
        BasicAttribute ocs = new BasicAttribute("objectclass");
        ocs.add("top");
        ocs.add("person");
        ocs.add("organizationalPerson");
        ocs.add("user");
        attrs.put(ocs);
        BasicAttribute gn = new BasicAttribute("givenName", "test1");
        attrs.put(gn);
        BasicAttribute sn = new BasicAttribute("sn", "");
        attrs.put(sn);
        BasicAttribute cn = new BasicAttribute("cn", "test1");
        attrs.put(cn);
        BasicAttribute uac = new BasicAttribute("userAccountControl", "66048");
        attrs.put(uac);
        BasicAttribute sam = new BasicAttribute("sAMAccountName", "test1");
        attrs.put(sam);
        BasicAttribute disName = new BasicAttribute("displayName", "test1");
        attrs.put(disName);
        BasicAttribute userPrincipalName = new BasicAttribute
                                      ("userPrincipalName", "[email protected]");
        attrs.put(userPrincipalName);
        BasicAttribute instanceType = new BasicAttribute("instanceType", "4");
        attrs.put(instanceType);
        BasicAttribute objectCategory = new BasicAttribute
                  ("objectCategory","CN=User,CN=Schema,CN=Configuration," + domainName);
        attrs.put(objectCategory);
        String newVal = new String("\"password\"");
        byte _bytes[] = newVal.getBytes("Unicode");
byte bytes[] = new byte[_bytes.length - 2];
System.arraycopy(_bytes, 2, bytes, 0, _bytes.length - 2);
BasicAttribute attribute = new BasicAttribute("unicodePwd");
attribute.add((byte[]) bytes);
attrs.put(attribute);
ctx.createSubcontext("CN=test1,OU=Users,OU=CEL", attrs);
ctx.close();
catch (NameAlreadyBoundException nex)
System.out.println("User ID is already in use, please select a different user ID ...");
catch (Exception ex)
System.out.println("Failed to create user account... Please verify the user information...");
ex.printStackTrace();
return new GblStatus();
Any help would be much appreciated.

Hi .,
me too got up with same problem., can anyone help me.??
Someone help me to create attributes in AD using LDAP
package LDAPpack;
import javax.naming.*;
import javax.naming.directory.*;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapContext;
import java.util.Hashtable;
class CreateAttrs {
public static void main(String[] args) {
     Hashtable env = new Hashtable();
          env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
          env.put(Context.PROVIDER_URL, "ldap://10.242.6.166:389/");
          env.put(Context.SECURITY_AUTHENTICATION,"simple");
          env.put(Context.SECURITY_PRINCIPAL, "CN=cname,OU=Users,OU=Dealer,OU=Community,DC=test2,DC=org");
                    env.put(Context.SECURITY_CREDENTIALS, "password-1");
          LdapContext ctx =null;
          try {
               //ctx = new InitialLdapContext(env,null);
               try {
ctx = new InitialLdapContext(env,null);
               catch(NamingException e) {
System.out.println("Login failed");
System.exit(0);
if(ctx!=null){              
System.out.println("Login Successful");
byte[] buf = new byte[] {0, 1, 2, 3, 4, 5, 6, 7}; // same data
     // Create a multivalued attribute with 4 String values
     BasicAttribute oc = new BasicAttribute("objectClassNew", "topNew");
     oc.add("personNew");
     oc.add("organizationalPersonNew");
     // Create an attribute with a byte array
     BasicAttribute photo = new BasicAttribute("jpegPhotoNew", buf);
     // Create attribute set
     BasicAttributes attrs = new BasicAttributes(true);
     attrs.put(oc);
     attrs.put(photo);
     Attributes attrs1 = ctx.getAttributes("CN=cname,OU=Users,OU=Dealer,OU=Community,DC=test2,DC=org");
System.out.println(attrs1);
Context result = ctx.createSubcontext("CN=cname,OU=Users,OU=Dealer,OU=Community,DC=test2,DC=org", attrs);
//i got error here; i attach the error below.
     ctx.close();
System.out.println("close");
     catch(NamingException e){
          e.printStackTrace();
ERROR:
Login Successful
javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C090B38, comment: Error in attribute conversion operation, data 0, vece
ANYONE HELP ME PLS.
Edited by: vencer on Jun 19, 2008 12:38 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Error while creating a user in Active Directory.

    Hi Guys,
    I am creating a custom connector for AD and Exchnage , I am able to create user in AD using my Java Code... but i am also getting below error, I want to finish the operation smoothly.... Please find below error logs.
    13:51:15,635 ERROR [STDERR] Data AccessException:
    13:51:15,636 ERROR [STDERR] com.thortech.xl.orb.dataaccess.tcDataAccessException: DB_READ_FAILEDDetail: SQL: select UD_AD_CHILD_GRP_NAME from UD_AD_CHILD where UD_AD_CHILD_KEY = Description: ORA-00936: missing expression
    SQL State: 42000Vendor Code: 936Additional Debug Info:com.thortech.xl.orb.dataaccess.tcDataAccessException
    at com.thortech.xl.dataaccess.tcDataAccessExceptionUtil.createException(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.createException(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.readPartialStatement(Unknown Source)
    at com.thortech.xl.dataobj.tcDataBase.readPartialStatement(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataobj.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.dataobj.tcDataSet.executeQuery(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getChildTableFieldValue(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getRunTimeValue(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.getRunTimeValue(Unknown Source)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTOADGROUP.implementation(adpADDUSERTOADGROUP.java:49)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.insertResponseMilestones(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.updateSchItem(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeProcessAdapter(Unknown Source)
    at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeAdapter(Unknown Source)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCREATEADUSER.implementation(adpCREATEADUSER.java:85)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(Unknown Source)
    at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(Unknown Source)
    at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(Unknown Source)
    at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(Unknown Source)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperationsSession.setProcessFormData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    at $Proxy758.setProcessFormData(Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsClient.setProcessFormData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy803.setProcessFormData(Unknown Source)
    at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyProcessData(Unknown Source)
    at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    Thanks,
    Hemant

    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTOADGROUP.implementation(adpADDUSERTOADGROUP.java:49)
    This is definitely a Custom Adapter because OOTB Adapter name is adpADCSADDUSERTOGROUP and NOT adpADDUSERTOADGROUP
    So, it is your custom code and in the code you are passing incorrect value of the Active Directory Child process form...
    The correct name is UD_ADUSRC and the Group Name column name is UD_ADUSRC_GROUPNAME.
    While you are passing UD_AD_CHILD as the child process form and UD_AD_CHILD_GRP_NAME as Group Name column name..
    Use OOTB Adapter... Correct these discrepancies... Your addition of group will work
    And since you are creating custom adapter, you need to be more careful and remain consistent throughout..
    Then if you want to use UD_AD_CHILD_GRP_NAME, use it everywhere consistently... Pass only this value in the adapter...
    And even in lookups, if any... Search everywhere... Keep things consistent... They will work... Because good news is that you are able to create user in AD via Java Code...
    And if any post is even slightly helpful, it is a good habit to mark it with helpful or correct ... And also mark the entire question as answered so that other people also are benefited.

  • Need to create new users in Office 365 with custom attributes from a csv file

    I am exporting users from an active directory environment and then deleting them from AD. They are Alumni and will no longer be in AD.
    I have a csv file with the following fields that I need to use to create new Alumni email boxes in Office 365 for. I need the CustomAttributes because my Dynamic Distribution Groups use them. I am fairly new to PowerShell and have been unable to get this
    to work. I suspect I may have to split it into two parts, but am not sure how to proceed. Any assistance would be appreciated. I was directed here from the Office 365 community.
    Import-Csv -Path c:\CSVfiles\CreateAlumni.csv | ForEach-Object {
       New-MsolUser -FirstName $_.FirstName -LastName $_.LastName
       -UserPrincipalName $_.UserPrincipalName
       -DisplayName "$($_.FirstName) $($_.LastName)"
       -Password $_.Password
       -CustomAttribute1 $_.CustomAttribute1
       -CustomAttribute3 $_.CustomAttribute3
       -CustomAttribute10 $_.CustomAttribute10
       -CustomAttribute11 $_.CustomAttribute11
       -CustomAttribute12 $_.CustomAttribute12
       -LicenseAssignment 'domaincom:EXCHANGESTANDARD_ALUMNI'
       -UsageLocation US

    Ok, it wasn't stopping after 2 iterations. What I was seeing was 2 failures. The first was the Get-Mailbox command and the second was when it tried to assign attributes. For some reason it is not looping when it fails. It just goes on and tries to assign
    the Custom Attributes. I added writes in to tell me what was happening.
    ### Check if mailbox is provisioned yet
    Write-Host "Checking if mailbox is provisioned yet..." -foregroundcolor yellow
    $found = $false
    $count = 0
    Do {
    try {
    Get-Mailbox -Identity $_.UserName -ErrorAction Stop
    $found = $true
    Write-Output 'Mailbox found. Details:'
    Get-Mailbox -Identity $_.UserName
    } catch {
    Write-Output 'Sleeping'
    $count++
    Start-Sleep -Seconds 5
    If ($count -ge 12) {
    Write-Output 'Mailbox not found. Quitting.'
    $found = $true
    } Until ($found)
    Write-Host "Adding Custom Attributes to User" -foregroundcolor yellow
    Set-Mailbox -Identity $_.UserName -CustomAttribute1 $_.CustomAttribute1 -CustomAttribute3 $_.CustomAttribute3 -CustomAttribute10 $_.CustomAttribute10 -CustomAttribute11 $_.CustomAttribute11 -CustomAttribute12 $_.CustomAttribute12
    Write-Output "User has been Provisioned in Office 365!" -foregroundcolor yellow
    Checking if mailbox is provisioned yet...
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=e1aabda1-01e4-4f68-984e-e20be0975242,TimeStamp=5/22/2014 4:23:59 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
        + PSComputerName        : pod51038psh.outlook.com
    Mailbox found. Details:
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=16a8a2bc-333a-455c-8504-e0b99c44c334,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
        + PSComputerName       
    : pod51038psh.outlook.com
    Adding Custom Attributes to User
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Set-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=8319d220-b9dd-492f-8182-5083cf56e58b,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] C7844A24,Microsoft.Exchange.Management.RecipientTasks.SetMailbox
        + PSComputerName       
    : pod51038psh.outlook.com
    User has been Provisioned in Office 365!
    Of course the user has been provisioned, but the CustomAttributes have not been assigned. :(

  • Bulk Uploading of New Users without Active Directory Sync. Possible?

    Hello,
    WithOUT Active Directory synchronization, is it possible to do a bulk upload of 100+ users onto Project Server 2013 (Online)?  If so, how?
    In addition, can these new users be setup to default with “User can be assigned as a resource"? 
    Thanks in advance,
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi,
    it is possible, but not completely.
    If you select at least one resource in Resource Center and click "Open", this resource is opened for editing in client. At this place, you can add your new resources with all fields (and Default Booking Type), e.g. with copy/paste from some other
    source. They are added as resources. However, editing column "User Logon Account" is disabled, so you can't add this information in client. You need to do this afterwards from Resource Center for each single resource.
    And yes - I agree: This is very inconvinient!
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • How do I create a user in active directory?

    I've been trying to figure this out and found some tutorials online. I am getting this error:
    javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C090C26, comment: Error in attribute conversion operation, data 0, v1771
    From this code:
    try
                   String userType = user.getUserType() + "s (dural)";
                   LOG.debug("user type is " + userType);
                   String groupName = "Thin Client Users";
                   Attributes attrs = new BasicAttributes(true);
                   attrs.put("objectClass", userType);
                   attrs.put("samAccountName", user.getWindowsId());
                   attrs.put("cn", user.getCommentString());
                   attrs.put("givenName", user.getFirstName());
                   attrs.put("sn", user.getLastName());
                   attrs.put("displayName", user.getCommentString());
                   String userName = String.format(
                             "CN=%s,OU=Staff,OU=%s,DC=elandata,DC=com",
                             user.getCommentString(), user.getUserType());
                   int UF_ACCOUNTDISABLE = 0x0002;
                   int UF_PASSWD_NOTREQD = 0x0020;
                   int UF_PASSWD_CANT_CHANGE = 0x0040;
                   int UF_NORMAL_ACCOUNT = 0x0200;
                   int UF_DONT_EXPIRE_PASSWD = 0x10000;
                   int UF_PASSWORD_EXPIRED = 0x800000;
                   attrs.put(
                             "userAccountControl",
                             Integer.toString(UF_NORMAL_ACCOUNT + UF_PASSWD_NOTREQD
                                       + UF_PASSWORD_EXPIRED + UF_ACCOUNTDISABLE));
                   Context result = ctxGC.createSubcontext(userName, attrs);
                   LOG.info("Creating windows account for: " + userName);
                   StartTlsResponse tls = (StartTlsResponse) ctxGC
                             .extendedOperation(new StartTlsRequest());
                   tls.negotiate();
                   ModificationItem[] mods = new ModificationItem[2];
                   String newQuotedPassword = "\"password\"";
                   byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
                   mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
                             new BasicAttribute("unicodePwd", newUnicodePassword));
                   mods[1] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
                             new BasicAttribute("userAccountControl",
                                       Integer.toString(UF_NORMAL_ACCOUNT
                                                 + UF_PASSWORD_EXPIRED)));
                   ctxGC.modifyAttributes(userName, mods);
                   LOG.info("Set password & updated userccountControl");
                   try
                        ModificationItem member[] = new ModificationItem[1];
                        member[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
                                  new BasicAttribute("member", userName));
                        ctxGC.modifyAttributes(groupName, member);
                        System.out.println("Added user to group: " + groupName);
                   } catch (NamingException e)
                        System.err.println("Problem adding user to group: " + e);
                   // Could have put tls.close() prior to the group modification
                   // but it seems to screw up the connection or context ?
                   tls.close();
                   ctxGC.close();
    I've tried commenting out the "unicodePwd" attribute since I can't find it on microsoft's website, but still same error.

    Are you getting it when creating the subcontext or when modifying the attributes?
    And why are you doing that in two steps? Why not just set all the attributes you need before creating the subcontext?
    And is there any clue in the exception as to which attribute is wrong?
    And have you tried commenting out the attributes one by one to see which it is?

  • How do you find who created a user in Active Directory?

    I think it would be almost impossible to tell who created an individual AD record, as in my experience there is generally only 1 Domain Admin account for which to create users. 

    So I've done some research and have found LDAP queries that will tell me when a user is created, but not necessarily who created the user. The reason I am asking is because I ran an audit of active and inactive users and between my boss and I (we are a small company so we know all the users) we could not figure out who some of the users were. Thanks for your help!
    This topic first appeared in the Spiceworks Community

  • Need Help with New User

    I have recently had the problem where my I am unable to play any quicktime video off the internet. This includes movie trailers and itunes music video previews. Quicktime works fine with all other videos off my mac. The only solution that I found was that it works if I login as a different user.
    So my question is how can I create a new user that will EXACTLY mirror my current user settings and folders?
    Please help.
    Lawrence

    Well I only get the error message when I try to run video off the itunes music store or off safari. itunes videos i purchase i am then able to view and can view all other videos already saved locally. When trying to play online videos the program (safari and itunes) simply closes and i get the message the the program unexpectetly quit. this is the report that shows when i ask for more details:
    Date/Time: 2006-08-19 21:30:03.125 -0700
    OS Version: 10.4.7 (Build 8J135)
    Report Version: 4
    Command: iTunes
    Path: /Applications/iTunes.app/Contents/MacOS/iTunes
    Parent: WindowServer [865]
    Version: 6.0.5 (6.0.5)
    Build Version: 7
    Project Name: iTunes
    Source Version: 6052001
    PID: 909
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x08fd4232
    Thread 0 Crashed:
    0 com.apple.HIServices 0x9184db18 ICMapping::CompareExtensions(unsigned char const*, ICMapEntry const*) + 28
    1 ...ple.CoreServices.CarbonCore 0x90b921fc GetHandleSize + 36
    2 com.apple.HIServices 0x9184da9c ICMapping::MapFilename(unsigned char const*, ICMapEntry*) + 112
    3 com.apple.HIServices 0x9184d150 ICMapFilename + 136
    4 ...uickTimeStreaming.component 0x99a17bf4 HTTPDataHandler_GetMacOSFileType + 140
    5 ...ple.CoreServices.CarbonCore 0x90bda19c CallComponentFunctionCommon + 1044
    6 ...ple.CoreServices.CarbonCore 0x90bd9d24 CallComponent + 260
    7 com.apple.QuickTime 0x94786390 DataHGetMacOSFileType + 40
    8 com.apple.QuickTime 0x947857d4 GetMovieImporterForDataRef_priv + 452
    9 com.apple.QuickTime 0x947125d8 NewMovieFromDataRefPriv_priv + 1412
    10 com.apple.QuickTime 0x9478a324 NewMovieFromDataRef_priv + 20
    11 com.apple.QuickTime 0x9478a2fc NewMovieFromDataRef + 64
    12 com.apple.iTunes 0x00302d50 0x1000 + 3153232
    13 com.apple.iTunes 0x002ff1cc 0x1000 + 3137996
    14 com.apple.iTunes 0x002fe4a8 0x1000 + 3134632
    15 com.apple.iTunes 0x002fd3a8 0x1000 + 3130280
    16 com.apple.iTunes 0x002a4254 0x1000 + 2765396
    17 com.apple.iTunes 0x0039e398 0x1000 + 3789720
    18 com.apple.iTunes 0x002b23f8 0x1000 + 2823160
    19 com.apple.iTunes 0x002b18f4 0x1000 + 2820340
    20 com.apple.iTunes 0x0041498c 0x1000 + 4274572
    21 com.apple.iTunes 0x00487154 0x1000 + 4743508
    22 com.apple.iTunes 0x0040a0f0 0x1000 + 4231408
    23 com.apple.iTunes 0x0040a110 0x1000 + 4231440
    24 com.apple.iTunes 0x0040a110 0x1000 + 4231440
    25 com.apple.iTunes 0x0040a110 0x1000 + 4231440
    26 com.apple.iTunes 0x0040a110 0x1000 + 4231440
    27 com.apple.iTunes 0x00424bb4 0x1000 + 4340660
    28 com.apple.iTunes 0x00336060 0x1000 + 3362912
    29 com.apple.iTunes 0x004d3e04 0x1000 + 5058052
    30 com.apple.iTunes 0x004a209c 0x1000 + 4853916
    31 com.apple.iTunes 0x004a1a88 0x1000 + 4852360
    32 com.apple.iTunes 0x0036f71c 0x1000 + 3598108
    33 com.apple.iTunes 0x004a1380 0x1000 + 4850560
    34 com.apple.iTunes 0x00002ad8 0x1000 + 6872
    35 com.apple.iTunes 0x0000297c 0x1000 + 6524
    Thread 1:
    0 libSystem.B.dylib 0x9000b268 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dbb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907db47c CFRunLoopRunSpecific + 268
    4 com.apple.CoreFoundation 0x907ea8dc CFRunLoopRun + 52
    5 com.apple.DVCPROHDMuxer 0x00ede1ac AVS::DestroyAVCDeviceController(AVS::AVCDeviceController*) + 404
    6 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x900551a8 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90071828 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90bf43a4 AsyncFileThread(void*) + 56
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x9005bd20 accept + 12
    1 com.apple.iTunes 0x004d878c 0x1000 + 5076876
    2 com.apple.iTunes 0x00543404 0x1000 + 5514244
    3 com.apple.iTunes 0x00543780 0x1000 + 5515136
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x9000b268 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dbb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907db47c CFRunLoopRunSpecific + 268
    4 com.apple.CoreFoundation 0x907ea8dc CFRunLoopRun + 52
    5 com.apple.iTunes 0x003e3bf4 0x1000 + 4074484
    6 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 5:
    0 libSystem.B.dylib 0x9001f7ac select + 12
    1 com.apple.CoreFoundation 0x907ee40c __CFSocketManager + 472
    2 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 6:
    0 libSystem.B.dylib 0x900551a8 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90071828 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
    3 ...ickTimeComponents.component 0x98b1ab34 ReadSchedulerThreadEntryPoint + 5208
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 7:
    0 libSystem.B.dylib 0x900551a8 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90071828 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90bfeff8 AIOFileThread(void*) + 520
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 8:
    0 libSystem.B.dylib 0x900551a8 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90071828 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90bfc4ec TimerThread + 60
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 9:
    0 libSystem.B.dylib 0x900551a8 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90071828 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90c00020 DeferredTaskThread + 56
    4 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 10:
    0 libSystem.B.dylib 0x9000b268 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 ...ple.CoreServices.CarbonCore 0x90bedf08 SwitchContexts + 96
    3 ...ple.CoreServices.CarbonCore 0x90be3b80 YieldToThread + 372
    4 com.apple.iTunes 0x004d7fc0 0x1000 + 5074880
    5 com.apple.iTunes 0x0040e1dc 0x1000 + 4248028
    6 com.apple.iTunes 0x0040dd24 0x1000 + 4246820
    7 com.apple.iTunes 0x0041ee1c 0x1000 + 4316700
    8 com.apple.iTunes 0x0041e6f4 0x1000 + 4314868
    9 com.apple.iTunes 0x004170e4 0x1000 + 4284644
    10 com.apple.iTunes 0x0040ec54 0x1000 + 4250708
    11 com.apple.iTunes 0x0040e7fc 0x1000 + 4249596
    12 com.apple.iTunes 0x004d8048 0x1000 + 5075016
    13 ...ple.CoreServices.CarbonCore 0x90bedfac InvokeThreadEntryUPP + 24
    14 ...ple.CoreServices.CarbonCore 0x90bedbcc CooperativeThread + 220
    15 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 11:
    0 libSystem.B.dylib 0x9000b268 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 ...ple.CoreServices.CarbonCore 0x90bedf08 SwitchContexts + 96
    3 ...ple.CoreServices.CarbonCore 0x90be3b80 YieldToThread + 372
    4 ...ple.CoreServices.CarbonCore 0x90bede50 SetThreadState + 192
    5 com.apple.iTunes 0x003f8348 0x1000 + 4158280
    6 com.apple.iTunes 0x00415c54 0x1000 + 4279380
    7 com.apple.iTunes 0x0041dfbc 0x1000 + 4313020
    8 com.apple.iTunes 0x0040edb8 0x1000 + 4251064
    9 com.apple.iTunes 0x0040e7fc 0x1000 + 4249596
    10 com.apple.iTunes 0x004d8048 0x1000 + 5075016
    11 ...ple.CoreServices.CarbonCore 0x90bedfac InvokeThreadEntryUPP + 24
    12 ...ple.CoreServices.CarbonCore 0x90bedbcc CooperativeThread + 220
    13 libSystem.B.dylib 0x9002bc28 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x000000009184db18 srr1: 0x100000000200f030 vrsave: 0x0000000000000000
    cr: 0x24228434 xer: 0x0000000000000000 lr: 0x000000009184da9c ctr: 0x0000000090b92564
    r0: 0x00000000000013ab r1: 0x00000000bfffa8b0 r2: 0x0000000000000000 r3: 0x00000000bfffa9c0
    r4: 0x00000000bfffab3c r5: 0x0000000008fd2e87 r6: 0xffffffffffffffff r7: 0x0000000000000000
    r8: 0x00000000024eee00 r9: 0x00000000000007d9 r10: 0x00000000000007d9 r11: 0x00000000a1838c40
    r12: 0x0000000090b92564 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x00000000bfffb56c
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000020000000
    r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000001 r23: 0x00000000bfffac3c
    r24: 0x00000000bfffab3c r25: 0x00000000bfffa9c0 r26: 0x00000000bfffab3c r27: 0x0000000000007901
    r28: 0x00000000bfffa9c0 r29: 0x000000000000ae87 r30: 0x0000000008fd2e87 r31: 0x000000009184d0d0
    Binary Images Description:
    0x1000 - 0x71ffff com.apple.iTunes 6.0.5 /Applications/iTunes.app/Contents/MacOS/iTunes
    0xd45000 - 0xdc4fff com.apple.DVCPROHDAudio 1.2 /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio
    0xdf3000 - 0xe1cfff com.apple.iSightAudio 7.1.2 /Library/Audio/Plug-Ins/HAL/iSightAudio.plugin/Contents/MacOS/iSightAudio
    0xea8000 - 0xeb3fff com.apple.LiveType.component 2.0.2 /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
    0xec1000 - 0xf67fff com.apple.DVCPROHDMuxer 1.2 /Library/QuickTime/DVCPROHDMuxer.component/Contents/MacOS/DVCPROHDMuxer
    0x18eb000 - 0x1901fff com.apple.IMXCodec 1.0 (114) /Library/QuickTime/IMXCodec.component/Contents/MacOS/IMXCodec
    0x190f000 - 0x1aeafff net.telestream.wmv.import 2.0.2.10 /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import
    0x1b16000 - 0x1b8ffff com.apple.DVCPROHDCodec 1.1.1 (209) /Library/QuickTime/DVCPROHDCodec.component/Contents/MacOS/DVCPROHDCodec
    0x1ba5000 - 0x1c55fff com.apple.AppleHDVCodec 1.0 (129) /Library/QuickTime/AppleHDVCodec.component/Contents/MacOS/AppleHDVCodec
    0x1c73000 - 0x1cdcfff com.apple.AppleIntermediateCodec 1.0.1 (124) /Library/QuickTime/AppleIntermediateCodec.component/Contents/MacOS/AppleInterme diateCodec
    0x1cf1000 - 0x1d6afff com.apple.applepixletvideo 1.2.5 (1.2d5) /System/Library/QuickTime/ApplePixletVideo.component/Contents/MacOS/ApplePixlet Video
    0x1ffa000 - 0x1ffbfff com.apple.aoa.halplugin 2.5.6 (2.5.6b5) /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bun dle/Contents/MacOS/AOAHALPlugin
    0x68a1000 - 0x6980fff com.apple.audio.codecs.Components 1.4.3 /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
    0x732b000 - 0x732dfff com.apple.textencoding.unicode 2.0 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
    0x7476000 - 0x747dfff com.apple.DesktopVideoOut 1.2.3 /Library/QuickTime/DesktopVideoOut.component/Contents/MacOS/DesktopVideoOut
    0x74ca000 - 0x74e1fff com.apple.FCP Uncompressed 422.component 1.2 /Library/QuickTime/FCP Uncompressed 422.component/Contents/MacOS/FCP Uncompressed 422
    0x87f4000 - 0x87f8fff com.apple.iokit.IOQTComponents 1.4 /System/Library/Components/IOQTComponents.component/Contents/MacOS/IOQTComponen ts
    0x8a29000 - 0x8a2ffff com.apple.ATIRadeon9700GA 1.4.18 (4.1.8) /System/Library/Extensions/ATIRadeon9700GA.plugin/Contents/MacOS/ATIRadeon9700G A
    0x70000000 - 0x700fcfff com.apple.audio.units.Components 1.4.3 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x7dbb0000 - 0x7dbb9fff Motion /Library/Frameworks/Motion.framework/Versions/A/Motion
    0x7f950000 - 0x7f9b8fff com.apple.LiveType.framework 2.0.2 /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
    0x8f070000 - 0x8f36afff decoder.altivec /System/Library/QuickTime/QuickTimeComponents.component/Contents/Resources/deco der.altivec
    0x8fd50000 - 0x8fd8dfff com.apple.QuickTimeFireWireDV.component 7.1.2 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0x8fe00000 - 0x8fe52fff dyld 45.1 /usr/lib/dyld
    0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90213000 - 0x90218fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x9021a000 - 0x90267fff com.apple.CoreText 1.0.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90292000 - 0x90343fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90372000 - 0x9072cfff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907b9000 - 0x90892fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908db000 - 0x908dbfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908dd000 - 0x909dffff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a39000 - 0x90abdfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90ae7000 - 0x90b57fff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b6d000 - 0x90b7ffff libauto.dylib /usr/lib/libauto.dylib
    0x90b86000 - 0x90e5dfff com.apple.CoreServices.CarbonCore 681.4 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec3000 - 0x90f43fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f8d000 - 0x90fcefff com.apple.CFNetwork 129.16 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe3000 - 0x90ffbfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100b000 - 0x9108cfff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d2000 - 0x910fcfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9110d000 - 0x9111bfff libz.1.dylib /usr/lib/libz.1.dylib
    0x9111e000 - 0x912d8fff com.apple.security 4.4 (27566) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913d6000 - 0x913dffff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913e6000 - 0x9140efff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91421000 - 0x9142cfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91431000 - 0x91439fff libbsm.dylib /usr/lib/libbsm.dylib
    0x9143d000 - 0x914b8fff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914f5000 - 0x914f5fff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914f7000 - 0x9152ffff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9154a000 - 0x91617fff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9166c000 - 0x916fdfff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91744000 - 0x917fbfff com.apple.QD 3.10.20 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x91838000 - 0x91896fff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918c5000 - 0x918e9fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x918fd000 - 0x91922fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91935000 - 0x91977fff com.apple.LaunchServices 180 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x91993000 - 0x919a7fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919b5000 - 0x919f5fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a0b000 - 0x91ad3fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b21000 - 0x91b36fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b3b000 - 0x91b58fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b5d000 - 0x91bccfff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91be3000 - 0x91be7fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91be9000 - 0x91c31fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91c36000 - 0x91c73fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91c7a000 - 0x91c93fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91c98000 - 0x91c9bfff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91c9d000 - 0x91c9dfff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91c9f000 - 0x91d84fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d8c000 - 0x91dabfff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91e17000 - 0x91e85fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91e90000 - 0x91f25fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91f3f000 - 0x924c7fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x924fa000 - 0x92825fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92855000 - 0x928ddfff com.apple.DesktopServices 1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x9291e000 - 0x92b49fff com.apple.Foundation 6.4.6 (567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92c67000 - 0x92d45fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92d65000 - 0x92e53fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92e65000 - 0x92e83fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92e8e000 - 0x92ee8fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92f06000 - 0x92f06fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92f08000 - 0x92f1cfff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92f34000 - 0x92f44fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92f50000 - 0x92f65fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92f77000 - 0x92ffefff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x93012000 - 0x9301dfff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x93027000 - 0x93054fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9306e000 - 0x9307efff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9308a000 - 0x930f0fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x93121000 - 0x93170fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x9319e000 - 0x931bbfff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x931cd000 - 0x931dafff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x931e3000 - 0x934f0fff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x9363f000 - 0x9364bfff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x93650000 - 0x93670fff com.apple.DirectoryService.Framework 3.1 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x936c3000 - 0x936c3fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x936c5000 - 0x93cf8fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x94085000 - 0x940f5fff com.apple.CoreData 80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x9412e000 - 0x941f1fff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x94243000 - 0x94243fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94245000 - 0x943f8fff com.apple.QuartzCore 1.4.8 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9444b000 - 0x94488fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94490000 - 0x944e0fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x94683000 - 0x94692fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x9469a000 - 0x946a6fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x946ec000 - 0x94704fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x9470b000 - 0x949bffff com.apple.QuickTime 7.1.2 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x94a83000 - 0x94af4fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x94b67000 - 0x94b87fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x94c8f000 - 0x94dbffff com.apple.AddressBook.framework 4.0.4 (485.1) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x94e51000 - 0x94e60fff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x94e68000 - 0x94e95fff com.apple.LDAPFramework 1.4.1 (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94e9c000 - 0x94eacfff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x94eb0000 - 0x94edffff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x94eef000 - 0x94f0cfff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x96a54000 - 0x96a59fff com.apple.iPod 1.3 (13) /System/Library/PrivateFrameworks/iPod.framework/iPod
    0x96ec4000 - 0x96ee3fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x976e9000 - 0x976f6fff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x977f7000 - 0x97812fff com.apple.AppleVAFramework 2.4.25 /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
    0x98b05000 - 0x994dbfff com.apple.QuickTimeComponents.component 7.1.2 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x996f1000 - 0x996f4fff com.apple.QuickTimeH264.component 7.1.2 /System/Library/QuickTime/QuickTimeH264.component/Contents/MacOS/QuickTimeH264
    0x996f6000 - 0x997c9fff QuickTimeH264.altivec /System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/QuickTimeH 264.altivec
    0x999da000 - 0x99b29fff com.apple.QuickTimeStreaming.component 7.1.2 /System/Library/QuickTime/QuickTimeStreaming.component/Contents/MacOS/QuickTime Streaming
    Model: PowerMac8,2, BootROM 5.2.5f1, 1 processors, PowerPC G5 (3.0), 2 GHz, 2 GB
    Graphics: ATI Radeon 9600, ATY,RV351, AGP, 128 MB
    Memory Module: DIMM0/J4000, 1 GB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM1/J4001, 1 GB, DDR SDRAM, PC3200U-30330
    AirPort: AirPort Extreme, 404.2 (3.90.34.0.p16)
    Modem: Jump, , V.92, Version 1.0,
    Bluetooth: Version 1.7.5f10, 2 service, 1 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HDS724040KLSA80, 372.61 GB
    Parallel ATA Device: MATSHITADVD-R UJ-845, 2.83 GB
    USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
    USB Device: harman/kardon USB iSub, harman kardon, Up to 12 Mb/sec, 500 mA
    FireWire Device: iSight, Apple Computer, Inc., Up to 400 Mb/sec

  • Need help creating new film roll

    I followed all the instruction in the Help section and still can not create a new film roll--it's grayed out and I am unable to click on it. What is it that I am doing wrong? Please help!

    Are all the Year-based Smart Albums checked?
    Beside the word Library in the Source (or left-hand) is a wee disclosure triangle. Click on it and you’ll see the Year-based Albums. Are they all checked?
    Regards
    TD

  • I need help removing hosts from all Active Directory Groups! - PowerShell

    In our environment, we use AD Groups to create collections in Configuration Manager. I have a few PC's that need to be removed from all AD Groups in our Forest. I do not know how many groups these computers are in and to script it in PowerShell. Could
    someone please guide me in the right direction?

    Hi,
    Here's how you can check group membership:
    Get-ADComputer COMPUTERNAME -Properties MemberOf |
    Select -ExpandProperty MemberOf
    http://ss64.com/ps/ad.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Need help! New user

    I've recently purchased a flash site template. Everything is
    working, except I do not know how to point a SEND button for a form
    to my e-mail box. Help please!

    Natane wrote:
    > I've recently purchased a flash site template.
    Everything is working, except I do not know how to point a SEND
    button for a form to my e-mail box. Help please!
    go to kirupa.com and search for FORM , you will find detail
    tutorial on how to set it
    up in flash.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Creating new user in AD

    Hi all,
    I am trying to write a script to create new user in Active Directory using power-shell
    $sam = "13653123"
    try{
    get-aduser -Identity $sam -ErrorAction Stop
    catch [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]
    $error1= [System.Windows.Forms.MessageBox]::Show("ERROR : Account Not found")
    $SamAccountName = $sam
    $gn = "Jack Sparrow"
    $Initials = "ZX"
    $dn = "$gn "+" $Initials"
    $Department = "1260"
    $title = "AM"
    $pwd1 = read-host "Please enter the password"
    $pwd2 = read-host "Please enter the password"
    if($pwd1 -eq $pwd2)
    $pwd = $pwd1 = $pwd2
    try
    $userprinicpalname = $SamAccountName + "@XXX.com"
    New-ADUser -SamAccountName $SamAccountName -UserPrincipalName $userprinicpalname -GivenName $gn -Initials $Initials -Name $dn -DisplayName $dn -Title $title -Department $Department -Office $Department -Path "OU=XXXX,DC=XXX,DC=com" -AccountPassword (ConvertTo-SecureString $pwd -AsPlainText -force) -Enabled $True -PasswordNeverExpires $False -ErrorAction Stop
    catch [Microsoft.ActiveDirectory.Management.ADPasswordComplexityException]
    $error7= [System.Windows.Forms.MessageBox]::Show("ERROR : The password you entered doesnot meet the complexity set in the Password Policy" )
    break
    else
    $error2= [System.Windows.Forms.MessageBox]::Show("ERROR : passwords donot match")
    I am getting issue when The password complexity error is coming. It is showing up the error in the catch, but it is creating the account in AD and disabling it. 
    What I want is if any error is found and caught in the catch, then the user should not be created. How to do that?
    Please provide your valuable suggestions and help me out
    Naveen Basati

    This is a good way to get teh paassword to abort when it fails the test.
    function Test-Password{
    Param($Password)
    Try{
    $pwd=ConvertTo-SecureString $Password -AsPlainText -force
    Set-ADAccountPassword testuser11 -NewPassword $pwd –Reset
    # it worked so return the encrypted password
    $pwd
    Catch{
    Throw $_
    $sam = "13653123"
    if(get-aduser -Filter "SamAccountName -eq $sam"){
    Write-Host 'User already exists' -ForegroundColor green
    }else{
    Try{
    $pwdText='x123!heLno34' # 3 levels of compexity plus length > 9
    $pwd=Test-Password $pwdText
    $given='Jack'
    $surname='Sparrow'
    $Initials='Z'
    $Department='1260'
    $title='AM'
    $props=@{
    SamAccountName=$sam
    UserPrincipalName="$[email protected]"
    GivenName=$given
    Initials=$Initials
    Name="$given $initials $surname"
    DisplayName="$given $initials $surname"
    Title=$title
    Department=$Department
    Office=$Department
    Path='OU=TestOU,DC=testnet,DC=local'
    AccountPassword=$pwd
    Enabled=$True
    PasswordNeverExpires=$False
    New-ADUser @props -ErrorAction Stop
    Catch{
    throw $_
    We just re-throw the error and it propagates to the outer try/catch block.
    ¯\_(ツ)_/¯

  • Creating a windows user in Active Directory

    I am trying to create a user in Active Directory that can log on as any other Windows user, but when I try to log into Windows, I get the following error message:
    "The local policy of this system does not allow you to logon interactively".
    Are there any attributes or objectclass settings that must be set for the user to allow interactive logons?
    Thanks in advance!

    This has nothing to do with JNDI, the object class or attributes.
    I assume that you are trying to logon locally to the domain controller with the new user that you have just created.
    By default, the domain controller's policy only allows specific users or members of a group to logon locally at the domain domain controller's console.
    Either edit the domain controller'sgroup policy and add your newly created user to the list of users permitted to logon locally, or add the user to a group which has already been granted permission to logon locally.

  • How to create user in Active directory

    Hello,
    I'm trying to create a user in active directory via the following example:
    String userName = "cn=Jef Klak,ou=Ps Users,ou=Users,ou=Managed,dc=xxx,dc=local";
         Attributes attrs = new BasicAttributes(false);
         Attribute oc = new BasicAttribute("objectClass");
         oc.add("top");
         oc.add("person");
         oc.add("organizationalPerson");
         oc.add("user");
         attrs.put(oc);
              attrs.put("cn","Jef Klak");
              attrs.put("giveName","Jef");
              attrs.put("sn","Klak");
              attrs.put("displayName","Klak, Jef");
              attrs.put("description","IR");
              attrs.put("userPrincipalName","[email protected]");
              attrs.put("mail","[email protected]");
              attrs.put("company", "XXX");
              attrs.put("sAMAccountName","jk666");
    attrs.put("userAccountControl",Integer.toString(UF_NORMAL_ACCOUNT + UF_DONT_EXPIRE_PASSWD+ UF_ACCOUNTDISABLE));
              Context result = fctx.createSubcontext(userName, attrs);
    As a result I'm getting the following error:
    javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C090B38, comment: Error in attribute conversion operation, data 0, vece
    remaining name 'cn=Jef Klak,ou=Ps Users,ou=Users,ou=Managed,dc=xxx,dc=local'
    Anybody any tips or advice on this one? Or maybe a working examples how to add users in AD?
    Listing entries in the AD is no problem, so it's only adding them.
    Many thanks,
    Filip                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

              attrs.put("giveName","Jef");
    javax.naming.directory.NoSuchAttributeExceptionSpelling error.

  • Saving the password of a user in active directory using java

    Hello, i am trying to use java to build a class that creates a user in Active directory 2012.But the problem is that when the user is created the password is not being saved.
    Can anybody help on this knowing that i tried to save in the fields userPassword and unicodePwd.
    Thanks.

    DirContext ctx = new InitialDirContext(pr);
              BasicAttributes entry = new BasicAttributes(true);
              String entryDN = "cn=CharbelHad,ou=test users,dc=test,dc=dev";
              Attribute cn = new BasicAttribute("cn", "ChHad");
              Attribute street = (new BasicAttribute("streetAddress", "Ach"));
              Attribute loginPreW2k = (new BasicAttribute("sAMAccountName", "[email protected]"));
              Attribute login = (new BasicAttribute("userPrincipalName", "[email protected]"));
              Attribute sn = (new BasicAttribute("sn", "Chl"));
              Attribute pwd = new BasicAttribute("unicodePwd", "\"Ch@341\"".getBytes("UTF-8"));
    Attribute userAccountControl = new BasicAttribute("userAccountControl", "512");
              Attribute oc = new BasicAttribute("objectClass");
              oc.add("top");
              oc.add("person");
              oc.add("organizationalPerson");
              oc.add("user");
              // build the entry
              entry.put(cn);
              entry.put(street);
              entry.put(sn);
              entry.put(userAccountControl);
              entry.put(pwd);
              entry.put(login);
              entry.put(loginPreW2k);
              entry.put(oc);
              ctx.createSubcontext(entryDN, entry);

  • Adding a user in Active Directory

    Hi fellows,
    I am having a serious problem in creating a new user in active directory. i am using LDAP JNDI code. I can delete and update users attributes, but fail to create users.
    ctx.createSubcontext("newuser,full domain", attributes);
    when i specify a new user in "newuser" it gives exception invalidnameexception. I don't understand how to create a new entry within the directory structure of predefined tree. by the way, i can create users by active directory explorer but java application is giving exceptions.
    Any help will be highly appreciated.

    A DistinguishedName is of the form e.g. "cn=username, ou=Users,dc=hostname,dc=com". In other words it contains attribute names and values for each name component. Evidently your DN doesn't do that.

Maybe you are looking for

  • [CDATA] not the same way read in DOM and SAX (DOM: O.K., SAX: not O.K.)

    I wrote a test application that reads a XML file. First method reads it via DOM in a Document object, second that reads it via SAX in a string. The output is almost the same but the character data is different: while the dom outout is as expected: <h

  • Unable to connect to the remote ftp server using dreamweaver.

    For the last one week I have been trying to connect to the remote ftp server using dreamweaver. I spoke to the technical support agency who manage our remote server but they are saying that there is no problem with the server adn they dont know anyth

  • Can we use both Stand alone and Extended classic in one SRM system

    Hi All, Our client is now using Stand alone SRM system with back-end R/3 FI-CO system. Now they want to go Extended classic scenario for few product categories.          Would it be possible to use both in one SRM system? If possible could you please

  • Quartz

    I have the same code that running gooood in Oracle!, but I'm tring to run quartz with MS SQL SERVER 2005 (with jtds-1.2.2.jar driver) and I got this exception: 17-07-2008 15:46:11 (com.eglue.batch.scheduler.implementation.AlertsExpiredSchedulerImpl:6

  • Snow Leopard Crashes

    I replaced the hard disk with WD black cavier 1TB in my 2007-early iMac. Since I have installed SL, almost every applications have crashed, including iwork, adobe photoshop, not alone safari, especially when saving or opening files. What's even more