Need help in SPML user provisioning

Hi All,
I am using SPML to provision the user in SIM 7.1.
is there any way i can validate the user data against defined (Account, Password etc) policies before submit the form.
Any pointer or help will be greatly appraciated.

Hi,
You can make a custom form that contains the policy checks you want to make. ( Perhaps just take a section or reference the fields from your default user form) You can use the "runForm" SPML call to pass in the user attributes and run that form. Then pending on your answer from your form, you can make your provision call.
Hope that helps.

Similar Messages

  • Need help w/BW user authorization to see Web Templates thru portal

    Hello,
    We have designed Web Templates in BW which we intend to use through the SAP Portal. When these web templates are accessed via a URL which also passes a generic CPIC UserID/Password (created on the BW server), the template is fully functional and does not prompt the user for any further authentication. When we try to call up this same URL via the portal (including the CPIC User ID and password information), the report under /sap/bw/BEx comes up fine, but we are prompted for logins for nearly every object under the /MIME/ repository called by the Web Template. We have already set the /sap/bw/BEx/MIME service (ICF) to be an anonymous service (using the same UserID and Password that we are passing in the URL). So, to me it seems like additional role needs to be assigned to this user. Any ideas?
    Here is the error message we get:
    Logon failed
    What has happened?
    Call of URL http://xxxxxxxx:8002/sap/bw/Mime/BEx/JavaScript/epcfproxy.js terminated due to error in logon data.
    Note
    Logon performed in system T04 .
    Logon performed for client 020, user , and language EN. 
    What can I do?
    Check that you have entered the client, user, and password correctly.
    If you do not yet have a user ID, contact your system administrator.
    Error Code: ICF-LE-http-c:020-l:E-T:1-C:6-U:-P:-L:4
    HTTP 401 - Unauthorized
    Your SAP Internet Communication Framework Team
    Thanks in advance for your help!
    Regards,
    Abu Sadeq

    Hi abu,
    DId you solved your problem. if yes please help me. i am facing the same issue
    Thanks
    Sarang

  • Need help in Importing User, Shared and Journals into Exchange

    Hi,
    I have been tasked with the following imports into EX07 and EX10 following an acquisition:
    Shared MB 12 GB, corrupt pre-nov 2013 archives of users 30GB, shared sent items 4GB, users sent items 80GB. All in .pst format.
    4-8TB of journal data to be imported into Enterprise Vault 2010 with EX2010 (in .pst format)
    I'm looking for the best approach to get these imports done. Also, need to compile an assessment done on the time and performance ramifications of running these imports into EX as other migrations are currently on. Do I need to parallel run perfmon with
    EX counters to monitor while import is running in the background?
    Is it a good idea to run import of journal into Enterprise Vault of 4-8 TB data in .pst format in one go?
    Thank you for your comments...
    TY
    - thestriver

    Hi,
    In addition to Rajith's suggestion, I would like to verify the following things:
    In Exchange 2007, you can use the Import-Mailbox cmdlet to import all messages types, including messages, calendar items, contacts, distribution lists, journal entries and so on. Here is an example of importing the mailbox data from the amy.pst file that
    is in the Sent Items folder:
    Import-Mailbox -Identity amy -PSTFolderPath C:\PSTFiles\amy.pst -IncludeFolders '\Sent Items'
    In Exchange 2010, you need to use the New-MailboxImportRequest cmdlet.
    For more information, here is a thread for your reference.
    New-MailboxImportRequest
    http://technet.microsoft.com/en-us/library/ff607310(v=exchg.141).aspx
    Hope it helps.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Need help in PBEN0011 user exit

    Hello Experts,
    I am using EXIT_SAPLHRBEN00GENERAL_011 FM of PBEN0011 user exit to calculate the coverage amount.But in my requirement i have to calculate that based on the PA0008-TRFST(pay scale level).But in this user exit there is pernr field in import parameters.
    I need perner to read the pay scale level for that employee.
    Please help...is there any way to access the screen fileds like pernr ,begda,endda in the user exit if they are being passed to the user exit.
    Thanks in advance..
    Shweta

    Hello All,
    I want to copy all queries under one infoset and user group to new infoset.I tried copying using copy function vaialable in goto menu.But it is giving error for the query having varian.
    I am unable to copy the queries with variants. And I am getting following message:
    Error when copying query report XXXXXXX= with variants. Error when importing query
    Please help...
    Thank you in advance
    Shweta

  • Need help urgently in user exit

    Hi experts,
      i m new to the concept of user exit.
    shud anyone have very good coding knowledge for doing uiser exit.
    i havent got a clear idea about my specification.
    problem: one of the sd transaction code (dnt know the transaction code)) there is a tabstrip or table control window.In that windoww i m supppose to add one more column.
    This is an idea that i recieved from the sd consultant, i havebnnt recieved my spec yet.
    pls p[ls help me.
    i need to perform this task  very well so pls guide me
    will reward for sure
    sincerely
    jay

    Hi Jaya
               For using USER EXISTS you need Access Key from SAP.If you know the TCODE follow the procedure given below.
    ->enter TCODE in command field
    ->enter
    ->System(Menu item)
    ->Status(in drop down list)
    ->Double click on Program(screen) name
    ->you will find empty INCLUDE programs under commented heading USER EXISTS.
    ->Read the Description given for each INCLUDE and select the required one.
    ->Double click on hte INCLUDE.
                  You'll see a pop-up asking for access key, which we should get from SAP.Without Access Key you cannot use USER EXISTS.
    Regards
    Lakshman

  • Need help with external user authentication

    Hello,
    I need some help to set up an external user authentication in Oracle DB 10g. Using the documentation at
    http://www.oracle-base.com/articles/misc/OsAuthentication.php
    I added the user alex to my linux system and checked the parameter os_authent_prefix:
    SQL> show parameter os_authent_prefix
    NAME TYPE VALUE
    os_authent_prefix string ops$
    SQL>
    I created the oracle user alex using
    CREATE USER alex IDENTIFIED EXTERNALLY;
    as well as
    CREATE USER ops$alex IDENTIFIED EXTERNALLY;
    The parameters in the sqlnet.ora are set to
    NAMES.DIRECTORY_PATH = (TNSNAMES, HOSTNAME, EZCONNECT)
    SQLNET.AUTHENTICATION_SERVICES = (ALL)
    Being the local user alex on the linux server I can login:
    $ sqlplus /
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 30 08:56:26 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    SQL>
    Now using a Windows Client:
    C:\>sqlplus alex@<netservicename>
    SQL*Plus: Release 10.2.0.1.0 - Production on Di Aug 30 10:31:37 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Kennwort eingeben:
    ERROR:
    ORA-01017: invalid username/password; logon denied
    - So, what's wrong?
    - Do I always have to create oracle users with the prefix "ops$" to the local username? How do these users login - with or without the prefix 'ops$'?
    - I read that kerberos authentication is only available through oracle advanced security addon. What about authentication through ldap?

    Obviously it doesn't work from any remote system.
    For this to happen the parameter remote_os_authent would have been set to true.
    Warning: this poses a security risk.
    As far as I know you should have been logged in as alex on the client, and using sqlplus /
    However, from 10g onwards Oracle comes with Oracle Wallet, which stores the password encrypted outside the database in a file, called wallet, and which is accessible from anywhere.
    You would better use that.
    Sybrand Bakker
    Senior Oracle DBA

  • Need help about audited user.

    Hello folks
    Some days ago I detected that some user was trying to connect to my database with incorrect credentials, I detected it ´cause that user was blocked after 5 attempts (defined at profile) . So, I audited it and I could find OS user name, username, userhost, terminal, IP but I need to know what modules are from he connected to database (sqlplus, toad, aplication, etc).
    Thanks for helping.

    It may be worth looking through the listener logs for that time frame to see if you can identify the program in use.

  • I need help migrating domain user profiles in a refresh scenario using hardlinks.

    Hi,
    I am trying to create a TS that will capture all of the domain users and their settings from a machine. Then refresh it with a new O/S and restore the data.
    I don't want to use a state migration point and I would prefer to save the data to the machine.
    I am using a MDT TS with the standard TS steps.
    There are two sections to USMT.
    Online USMT
    Offline USMT
    I have set the Online USMT to capture locally by using hardlinks instead of copying files. But I read that this doesn't work unless you set the
    OSDStateStorePath variable to a value. In my example I would need that to be a local folder on the machine. Does the folder have to exist on the machine?
    There is also a condition that has been set on the Restore User State step.
    OSDStateStorePath exists
    If any of the conditions are true
    Folder %OSDStateStorePath%\USMT exists
    Folder %OSDStateStorePath%\USMT3 exists
    I would like to get this working.
    Thanks

    Hi Exintrovert,
    Thanks for posting here.
    According to your discription above, you can check the microsoft artical as below:
    https://support.microsoft.com/en-us/kb/938120/
    Would you please have a try the work around in the artical and then let us know the update?
    Looking forward to your feedback.
    Best Regards,
    Elaine 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Need Help waiting for user input.

    I've got a simple card game, which I've pretty much made all with swing. I have a JTextField and a JButton. I want the user to input a number into the textfield and the click the button which fires the action listener. This then takes the text and reads it and set a boolean hasBid to true. I don't want to program to continue until this has happened so I made an empty while(!hasBid) loop. The first time through, the program starts and stop until the user inputs something and click the button. The second time through, however, the whole window freezes. For somereason object aren't even being displayed which are displayed before this while loop. Without the while loop, everything runs fine, but the program won't stop to wait for input.
    So, my question pretty much is how can I get the program to stop for user input in a function which will be called multiple times. I don't want to use a JOptionPane or anyother pop-up box. If my way won't work, I'd really like to know of another way. Thanks for any help!

    you simply need to separate the functionality of your input object and the card game into two threads. as sanbingo said, running in a while loop prevents your GUI from even drawing its components.
    Remember: AWT/Swing is an event driven interface! so only events can/should cause some action to happen.
    i'd properly implement an event listener which is fired when the input is received. the listener is your game class which upon receipt of the event starts playing. when its done, its done, ie doesn't do anything until it receives an new event from your input object.
    thomas

  • SOLVED: Need help setting up user restrictions/permissions at work

    I am new to the Arch community in the last month after trying out the usual suspects in distributions. My only prior experience with Arch is setting up my tech machine with Linux and a few basic apps for customer backups. However, I have worked in IT for a while, it was just all Windows-based.
    I want to use a spare machine we had laying around at our dog boarding/daycare facility as an employee time clock. More specifically, the time clock is web-based, so the computer only needs access to Firefox and LibreOffice and I would like to restrict it to their online system only. Also, I would like for it to print to the network Epson WorkForce 610 printer. I want the user account "employee" I created to be unable to load new software of any kind, change any settings, access a non-work website, etc. I figured I will maintain it, when necessary, using sudo.
    Up to this point I have just loaded the basic install (32-bit), updated everything, and loaded the few extra things listed in the installation procedure such as sudo, gamin, samba, xorg, and some fonts. I have not yet loaded a desktop environment as I thought my specific needs may be easier with a certain one? I suppose I would prefer Xfce, as I have that on my tech machine, and it was simple enough for anyone to use at work for what I want. Besides that, I'm just going to load Firefox and LibreOffice, set up the network printer, and allow DVD-drive access for watching a training video and for viewing Word/Excel docs. I am hoping this is somewhat easily done, but if something is not possible that is okay. The 95% usage will be simply to punch in and punch out on the time clock online so as to keep the front computer free.
    I am completely unaware in Linux how to accomplish this exactly and am not sure where to even look in the Wiki or forum search for this. I could have just loaded a fresh Windows XP Pro, but I am wanting to get deeper into the Linux community and become as familiar as I am with Windows.
    Thanks for your help,
    Vince
    Last edited by vinceb (2011-04-14 18:44:35)

    To sum it up, you want make your system immutable to the user after your setup and gain certain limit to network access?
    1) To make your system immutable to certain user. The most simple way I can think of is to disable all terminal and launcher programs.
    - Add "exit" to the bottom of ~/.bashrc file. Make it immutable.
    # chattr +i ~/.bashrc
    - Disable your launcher program. Asuming you're installing xfce4.
    # chmod 700 $(which xfrun4)
    - Mount /home folder with noexec option. Edit your /etc/fstab, for example:
    /dev/sda4 /home ext4 defaults,noexec 0 1
    You might also want to add this option for CDROM and USB sticks.
    2) Limit your network access. The easiest way is to use some sort of firefox extension, however it is strictly a weak method to do so.
    Many other methods's available.
    However, I personally hate such thing and wouldn't recommend you to do so. If you truely wish to do it, please do it yourself.
    And that's it. I'm out of here.

  • Need help to change user email id in table ADR6

    Hi,
    i want to update user email id in table adr6. i hv written following code but not working to change email in table adr6.
          DATA lo_nd_email TYPE REF TO if_wd_context_node.
          DATA lo_el_email TYPE REF TO if_wd_context_element.
          DATA ls_email TYPE wd_this->element_email.
          DATA lv_mail_id LIKE ls_email-mail_id.
        navigate from <CONTEXT> to <EMAIL> via lead selection
          lo_nd_email = wd_context->get_child_node( name = wd_this->wdctx_email ).
        get element via lead selection
          lo_el_email = lo_nd_email->get_element(  ).
        get single attribute
          lo_el_email->get_attribute(
            EXPORTING
              name =  `MAIL_ID`
            IMPORTING
              value = lv_mail_id ).
          DATA:lv_bname TYPE BAPIBNAME-BAPIBNAME.
          DATA:lt_return TYPE TABLE OF bapiret2.
          DATA:PER_NO TYPE AD_PERSNUM,
               ADDR_NO TYPE ADRC-ADDRNUMBER."AD_ADDRNUM.
          DATA:SEARCH TYPE REF TO IF_WD_CONTEXT_NODE.
          SEARCH = WD_CONTEXT->GET_CHILD_NODE( 'USER' ).
          SEARCH->GET_ATTRIBUTE( EXPORTING NAME = 'BNAME'
               IMPORTING VALUE =  lv_bname ).
          DATA:wa_address TYPE bapiaddr3.
          DATA : CONS_NO TYPE AD_CONSNUM.
        IF lv_mail_id IS INITIAL.
              get message manager
              DATA lo_api_controller TYPE REF TO if_wd_controller.
              DATA lo_message_manager TYPE REF TO if_wd_message_manager.
              lo_api_controller ?= wd_this->wd_get_api( ).
              CALL METHOD lo_api_controller->get_message_manager
                RECEIVING
                  message_manager = lo_message_manager.
              report message
              CALL METHOD lo_message_manager->report_error_message
                EXPORTING
                  message_text  = 'Please Enter Email Id'.
        ENDIF.
       DATA:l_addr type addr_keynr.
       DATA:C_YES(1).
            CLEAR:C_YES.
            C_YES = 'X'.
       TYPES: ty_comm_smtp TYPE  adsmtp ,             
            ty_returncode TYPE SZAD_FIELD-RETURNCODE,
            ty_error TYPE ADDR_ERROR,
            adsuse TYPE ADSUSE.
        DATA:EMAIL_ID TYPE AD_SMTPADR,
             lt_comm_smtp TYPE STANDARD TABLE OF ty_comm_smtp,    """"Data Object
             lv_returncode TYPE STANDARD TABLE OF ty_returncode,
             error_table TYPE STANDARD TABLE OF ty_error,
             lt_adsuse  TYPE STANDARD TABLE OF adsuse.
        data:ls_comm_smtp like LINE OF lt_comm_smtp,
             ls_returncode like LINE OF lv_returncode .
        CALL FUNCTION  'SUSR_USER_ADDRESSKEY_GET'
          EXPORTING  BNAME    = lv_bname
          IMPORTING  PERSNUMBER    = l_addr-persnumber
                     ADDRNUMBER    = l_addr-addrnumber
               EXCEPTIONS ADDRESS_NOT_FOUND = 1
                          OTHERS            = 2.
      IF SY-SUBRC = 0.
        REFRESH: lt_comm_smtp.
          CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET'
               EXPORTING
                    address_handle    = ''
                    address_number    = l_addr-addrnumber
                    person_handle     = ''
                    person_number     = l_addr-persnumber
                    DATE_FROM         = '00010101'
                  LANGUAGE          = SY-LANGU
                    table_type        = 'ADSMTP'
                    iv_current_state  = space                       "*981i
               IMPORTING
                    returncode        = ls_returncode
               TABLES
                    comm_table        = lt_comm_smtp
                    error_table       = error_table
                    et_usage          = lt_adsuse                   "*981i
               EXCEPTIONS
                    parameter_error   = 1
                    address_not_exist = 2
                    person_not_exist  = 3
                    internal_error    = 4
                    OTHERS            = 99.
          IF sy-subrc <> 0.
            IF sy-subrc = 1 OR sy-subrc = 2 OR sy-subrc = 3.
             raise_message 'AM' 'A' 885 'ADDR_PERS_COMP_COMM_GET' space
             space space internal_error.
            ELSE.
             same_message_dia_a internal_error.
            ENDIF.
          ENDIF.
      ENDIF.
        CLEAR:ls_comm_smtp, email_id.
        READ TABLE lt_comm_smtp INTO ls_comm_smtp INDEX 1.
        EMAIL_ID = ls_comm_smtp-smtp_addr.    """""""OLD EMAIL ID which we get from ADDR_PERS_COMP_COMM_GET
        CONS_NO = ls_comm_smtp-CONSNUMBER.
        CLEAR:ls_comm_smtp.
        ls_comm_smtp-CONSNUMBER = CONS_NO.
        ls_comm_smtp-FLGDEFAULT = 'X'.
        ls_comm_smtp-HOME_FLAG = 'X'.
        ls_comm_smtp-UPDATEFLAG = 'U'.
        ls_comm_smtp-smtp_addr = lv_mail_id.
        TRANSLATE email_id TO UPPER CASE.
        ls_comm_smtp-smtp_srch = email_id.
        REFRESH :lt_comm_smtp.
         append ls_comm_smtp to lt_comm_smtp.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'ADDR_PERS_COMP_COMM_MAINTAIN'
             EXPORTING
                  address_handle    = ' '
                  address_number    = l_addr-addrnumber
                  person_handle     = ' '
                  person_number     = l_addr-persnumber
                  table_type        = 'ADSMTP'
                  iv_time_dependence = C_YES                   "*981i
            IMPORTING
                 returncode        =  ls_returncode
            TABLES
                 comm_table        =  lt_comm_smtp
                 error_table       =  error_table
            EXCEPTIONS
                 parameter_error   = 1
                 address_not_exist = 2
                 person_not_exist  = 3
                 internal_error    = 4
                 OTHERS            = 99.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
      ENDIF.
      IF sy-subrc = 0.
          COMMIT WORK.
      ENDIF.
    i hv also tried second approch available on sdn CALL FUNCTION 'ADDR_COMM_MAINTAIN'. but in this fm person number we can't pass.
    please help me

    Hi Abhilesh,
    You can use the following FM's to update the Email ID. There are many posts ADDR* FM using for updating Email ID.  Please have a look if you have a doubt.
    DATA: iadsmtp TYPE adsmtp    OCCURS 0 WITH HEADER LINE.
    "Retrieving Address Details
    CALL FUNCTION 'ADDR_COMM_GET'
          EXPORTING
            address_number =  addrnr
            table_type     = 'ADSMTP'
          TABLES
            comm_table     = iadsmtp
          EXCEPTIONS
            OTHERS         = 0.
    READ TABLE iadsmtp index 1.
    if sy-subrc is initial.
    iadsmtp-SMTP_ADDR = 'new mail ID'.  " Here pass your New Email ID
    Modify iadsmtp.
    Endif.
      CALL FUNCTION 'ADDR_COMM_MAINTAIN'
          EXPORTING
            address_number           = addrnr
            table_type               = 'ADSMTP'
            substitute_all_comm_data = 'X'
          TABLES
            comm_table               = iadsmtp
          EXCEPTIONS
            OTHERS                   = 0.
    Then call FM 'ADDR_SINGLE_SAVE'  to do the Commit.

  • Need help with multiple users of a catalog

    I run Lightroom in a small office and several of us have to have access to the image catalog, using Windows XP.  To accomplish this, the images were placed on a shared external drive, the catalog was created on a USB flash drive and Lightroom was loaded on multiple computers.  Everything has been fine and this strategy will work for us.  However, when I move the catalog to another computer (logged on as a different user) the catalog appears with all keywords and image adjustments, but my import presets are not available.  The preset files are located in the preset folder that accompanies the catalog, but they won't appear in the drop down box within Lightroom when attempting to import images.  My temporary solution is to recreate the import presets, which I have done for one other user so far, but I don't want to have to do that for each new user.  If one looks for the preset file, it is located in a folder called "user", but I have not figured out how to get Lightroom to recognize and use the preset files after logging on as a different user.  When I move the catalog (USB flash drive) back to my computer (original computer, original user), then everything is fine again and I can see and use al the presets. 
    Anyone use Lightroom accross users or machines?  Any way to get Lightroom to "see" and use import presets by multiple users?
    Thanks for any help!

    Not really sure if this will help or confuse things...
    If each user has a preset folder/directory, could you not create a symlink that points to oen on the USB device? And then keep all the presets there?
    Disclaimer:  i have not tried this, nor looked at it much, just a thought as i was reading your post.  If it doesn't apply, ignore me!
    Cheers!

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need help with roaming user profiles, home folder on server - symptoms after Windows reinstall on workstation

    Hello. I have deployed roaming user profiles in our home office. We are using Windows Server 2012 on our datacenter computer, which has a partition with all our home directories. All was working beautifully for quite some time.
    I re-installed Windows 8.1 Pro on my laptop. I am able to log in to my profile from the new installation.
    The problem that has started happening seems to be some sort of permission problem with my home directory, but I am not sure how to go about diagnosing it. I haven't changed anything in the policies or remote profiles.
    The symptoms:
    When I try to run an installation program from my documents/downloads/desktop (remote) folders, UAC asks for the administrative credentials as expected, and then I am asked to enter my user credentials. If I do so, I sometimes get a message about duplicate
    connections to a share, and the installation program does not execute. "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or
    shared resource and try again." I am confused, because I am entering credentials for the same user name as the one I am logged in with.
    To work around, I have to copy the executable to a folder on my workstation hard drive and run it from there.
    Another symptom is when I download anything from the internet, chrome will reflect a "Failed - Download error" message with the download. If I re-attempt the same download several times, eventually it will succeed. This appears to be due to my
    downloads folder being on the remote computer.
    I am looking for any guidance on how to remedy these symptoms. I suspect there must be a setting I have forgotten to change in the local computer, because nothing has changed on the server since it was operating properly.
    Thank you for your time.

    Hi Exintrovert,
    Thanks for posting here.
    According to your discription above, you can check the microsoft artical as below:
    https://support.microsoft.com/en-us/kb/938120/
    Would you please have a try the work around in the artical and then let us know the update?
    Looking forward to your feedback.
    Best Regards,
    Elaine 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Need help in OID user Trusted recon

    Hi all,
    I am using oim9.1.0.1,oid 9.0.4.7.
    When i run the OID user trusted recon it is bringing users based on pagesize.The problem is if i set the page size as 100 then it brought 98 users where as i have 30000 users in my OID.When i set the page size to 1000 it brought 998 users and ended the process.what i didn't understand is why it is not looping again and not bringing all my 30000 records.
    regards,
    Rajesh.

    Hi All,
    I ran the OID trusted recon which brought most of my records from OID.Now i got a requirement to rerun the scheduler one more time,but this time it is not picking the records which it already brought. I changed the recontimestamp to 0 but then also it didn't brought all the records.
    Can anyone help me of how i can rerun the trusted recon again which will bring all my records.
    Regards,
    Rajesh

Maybe you are looking for

  • PF- Mid month employees

    Hi all, I am facing some issue in the provident fund for the Mid month joined employees. As per the client requirement, SAP is not calculating. I need your help in this. For all the employees we are maintaining the IT 0587 has whichever is less. I go

  • NO LONGER THE BEST HEADPHONES FOR ZEN TO

    <DIV align=center>********** UPDATE ********** <DIV align=center> I can no longer recommend these earbuds due to poor quality. Mine broke after only a few weeks of moderate use. I handled them gingerly too. The left channel lost all bass and 50% of t

  • 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.

  • How to disable the "autoload" of pdf in preview and url in Safari

    I hate that new feature, How can i disable the "resume" of pdf in preview and url in Safari on every time i restart those prg?

  • 8 GB 3GS Slow Sync

    My curret iOS is 5.0.1 but I have had this problem since back in iOS 4 (since 4.2). I have closed every app in the multi-task bar. I have clears all cache and related in Safari. I have tried various USB sync cables and I havre tried Wi-Fi sync. Still