Can I load a LDIF file and initalise the database using iPlanet SDK?

I know how to create a new context in the DS, initialise its database with a LDIF file from the console or using the LDAPModify.
But would it be possible if I can create the context & initialise the database using the iPlanet SDK for Java?
I'm developing a module that would allow an user to create a new organisation, thereby the need to create the database using the SDK. How can I go about to achieve this?
Many thanks!

I don't understand. If you know how to do everything using ldapmodify, it should be very straightforward to use java. What don't you understand?

Similar Messages

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • I just wrote over firefox 3.6 with 5.0 for my mac OSX and discovered my mac won't support it. Is there a way I can recover all my lost files and get the old version back?

    i just wrote over firefox 3.6 with 5.0 for my mac OSX and discovered my mac won't support it. Is there a way I can recover all my lost files and get the old version back?

    You can download and install Firefox 3.6 from http://www.mozilla.com/firefox/all-older.html

  • Loading a CSV file and accessing the variables

    Hi guys,
    I'm new to AS3 and dealt with AS2 before (just getting the grasp when the change it).
    Is it possible in AS3 to load an excel .csv file into Flash using the URLLoader (or ???) and the data as variables?
    I can get the .csv to load and trace the values (cell1,cell2,cell3....) but I'm not sure how to collect the data and place it into variables.
    Can I just create an array and access it like so.... myArray[0], myArray[1]? If so, I'm not sure why it's not working.
    I must be on the completely wrong path. Here's what I have so far....
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, dataLoaded);
    var request:URLRequest = new URLRequest("population.csv");
    loader.load(request);
    function dataLoaded(evt:Event):void {
        var myData:Array = new Array(loader.data);
        trace(myData[i]);
    Thanks for any help,
    Sky

    just load your csv file and use the flash string methods to allocate those values to an array:
    var myDate:Array = loader.data.split(",");

  • Can ResourceBundle load .properties from files and .jar?

    Hi Guys,
    I'm trying to I18N an application with ResourceBundle.
    Suppose my class look like this:
    package pack;
    import java.util.ResourceBundle;
    public class MyClass {
        public static void main(String[] args) {
            ResourceBundle rb = ResourceBundle.getBundle("Language");
    }This would load the localized string from Language.properties
    And when I pack the class file and Language.properties into a jar. It works fine
    But what I tried to do is to make the ResourceBundle try to load from external file first
    before it load from the jar file so that if I have a new language file I can just drop in the
    NewLang.properties.
    Inside .jar file look like this
    /Language.properties
    /pack/MyClass.class
    /meta-inf/Manifest.mf
    I tried look into some forum and they suggest to include Class-Path in Manifest.mf file
    to include current path like this
    Class-Path: .
    But still, it didn't work. If I include .properties in .jar it will not look outside but if I didn't include
    any .properties it found a properties file.
    How can I achieve this ?

    Dave,
    I reckon you're on the right track... just have to figure out "what's the path to properties file"... I suspect you've got a context problem... not sure... I'm pretty new at this stuff myself.
    So, what's your development environment? O/S, IDE, app/web-server, etc.
    Cheers. Keith.

  • How can I read an audio file and brodcast it using NI RFSG?

    Hi everybody,
    I'm designing a wireless audio signal simulation system that will read an audio signal from a file and modulate the signal using NI 5671 RFSG, then broadcast it to be received at an NI 5660 RFSA. 
    All I need is some guidance from you guys. Some related examples would be of great help since I'm a new user of NI hardwares and software.
    Thanks in advance.
    Muslim,
    Communication Engineering Student,
    International Islamic University Malaysia. 

    Hi,
    I’m going to
    help here since Paul is out of the office, so far you have been able to use
    Paul’s example to generate a signal from a Wav File, right? I have a question:
    why did you combine some of the parts of the (fm-modulation) with the generate
    FM signal from WAV file if the example Paul attached is already modulating the
    signal?
    I have another question on the part
    that you are stuck when reading the file, do you want to play it back through
    your speakers or you just want to be able to see the array of samples? Have you
    seen the example “MT niRFSA Demodulate FM.vi”? And if so why it does not help? Here
    is another example for FM modulation: Sound File Frequency
    Modulated Generation using NI-567x I would like to let you know that all
    those examples Paul and I are giving you are located at our website most are
    free and you may find them yourself; if you have the necessary drivers and
    toolkits installed you should be good to go. “The examples
    available do not show what I'm searching for” What are you
    searching for? What type of analysis do you need to perform?
    Remember
    that in the RFSA part of your project what you are going to be receiving will
    be an array that contains all the points of your data not a WAV file. I will suggest trying to
    run both FM example the RFSG and RFSA with no modification for a better
    understanding of what is happening.
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • How can i open a DOC or TXT file and insert the data into table?

    How can i open a DOC or TXT file and insert the data into table?
    I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
    I'd like open DOC file and I'd like insert them into the table with same columns.
    Thanks.

    Use the SQL*Loader utility or the UTL_FILE package.

  • Load data from file and send to background

    Hello, is it possible to load data from a file on the presentation server and then create a batch input to call a transaction with those values but on background NOT using data set?
    Thanks in advance.

    U can surely design the process to be executed in various ways..one of them is as below ::
    Upload ABAP.
    1. It reads the file from the presentation server and exports it into INDX database with a specific filename.
    2. Updates a ztable with user/upload date and time/filename/status=U.
    Batch ABAP.
    1. It reads the ztable for all the files with status=U.
    2. Using the filename IMPORTS the data from INDX database.
    3. Creates the batch input to call transaction.
    4. Sets the status as process along with process date and time.
    With the above you can have multiple uploading data and batch job picking up each file and doing the needful.
    Regards
    Anurag

  • Loading a file and setting the values in a Jtextfield

    Hi all,
    I've created a save and open menu option for my application. The save option works as it writes to file using jFileChooser. However when using the open file option the program opens the correct file and stores the strings read into a string variable, however when I go to set the value stored in the variable to a specific textfield using settext method, it doesn't do anything. Please can someone give me some suggestions on what I am doing wrong. The following is the code snippet that accesses the file and reads from it:
    try
    int result = jFileChooser1.showOpenDialog(this);
    if ( result == JFileChooser.APPROVE_OPTION )
    String str1 = jFileChooser1.getCurrentDirectory() +
    System.getProperty("file.separator") + jFileChooser1.getSelectedFile().getName() ;
    FileReader f = new FileReader( str1 );
    BufferedReader b = new BufferedReader(f);
    while((text1 = b.readLine()) != null)
    //text2 = b.readLine();
    jTextArea1.append("\ntext1: "+text1+"\nsize: "+size);
    if(text1 == "// System Configuration")
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jSampleRate.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jFrequency.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jVoltage.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    text2 = text1;
    jFSVoltage1.setText(text1);
    /*if((text = b.readLine()) == "// Phase Selection")
    // READ INFORMATION LOOKING FOE THE SPECIFIC TAGS
    b.close();
    jFileChooser1.cancelSelection();
    Any suggestions wpould be very much appreciated. Thanks in advance.

    this is the result from the read in information:
    text1 is the string variable that is used to store the information read in from the file, while size is the variable used to obtian the size of the string. Does the readline() method have any properties which would affect what is being read in?
    text1: |=========================================================================================
    size: 0
    text1: | File Name: C:\CsoundTest\walid3
    size: 0
    text1: | Last Modified: 30-01-2003 11:25:11
    size: 0
    text1: | Warning: Do not modify the information stored in this file. If modified the inforamtion
    size: 0
    text1: | may not be retrieved correctly when loading the file into the main program.
    size: 0
    text1: |==========================================================================================
    size: 0
    text1:
    size: 0
    text1: // System Configuration
    size: 0
    text1: 500
    size: 0
    text1: 50
    size: 0
    text1: 230
    size: 0
    text1: 300
    size: 0
    text1:
    size: 0
    text1: // Phase Selection
    size: 0
    text1: 1VIncN
    size: 0
    text1:
    size: 0
    text1: // Duration
    size: 0
    text1: 0
    size: 0
    text1: 00
    size: 0
    text1: 00
    size: 0
    text1:
    size: 0
    text1: // Disturbances
    size: 0
    text1:
    size: 0
    Regards
    walidr

  • Modify schema using ldif file and ldapmodify

    Suppose I want to create a new attribute and add it to a previously created object class; using an ldif file and ldapmpodify.
    It seems that my only option is an ldif file that looks like this:
    dn:cn=schema
    changetype: modify
    replace: objectclasses
    objectclasses: (...........MAY 'new attribute'...)
    This means that the author of the ldif file has to have prior knowledge of the schema, presumably by doing an ldapsearch.
    Am I missing anything?
    Basically there is a requirement here that developers be able to modify ldap schema on the test server by themselves. (without asking the ldap admin to do so). They currently can add fields to an SQL database with SQL tools so they want to do the same to LDAP.
    Any ideas ?

    That is correct, you'll have to add the attribute and then replace the objectclass. However, you may have to disable schema checking to modify the objectclass.
    Someone pointed out in another thread, you can give write access to the schema and config to another user via ACIs.
    Another thing to keep in mind, adding attributes/objectclasses via ldapmodify will put everything in 99user.ldif. This could get messy if you need to upgrade or rebuild an instance. I reccommend creating a 98myapp.ldif (or whatever you want) and putting your application specific objectclasses/attributes in there. This will require stopping/starting the server, but it will give you a good handle on what's been changed. In fact, you could require the developers to keep this file in RCS (or other version control) and then you could have a nice history of changes and the ability to go back if necessary.
    HTH,
    Roger S.

  • I am trying to install software for iTwin Connect, but after downloading the dmg file and launching the program, I receive a message saying the file can't open and to check my internet connection.  Any ideas?

    I am trying to install software for iTwin Connect, but after downloading the dmg file and launching the program, I receive a message saying the file can't open and to check my internet connection.  Any ideas?

    Many Thanks, Kurt.
    I knew I'd seen the solution you've provided somewhere - either in MacWorld or MacFormat - but couldn't remember the Gatekeeper bit!
    I shall save it somewhere VERY safe now in case this happens again …
    You have made an old man very happy and saved me from worrying that senile decay had suddenly set in. (I was 70 last week so you might understand the situation from that.)
    Best wishes
    OllyanDinah

  • How can i read the text files and buffer the data in Vector?

    hi. I have been running into this problem for days, but with no luck and losing right direction.
    The problem is : I am trying to read a text file and buffer the data into a
    Queue for each user.
    the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
    0 1 1 1 512
    1 2 1 2 512
    2 3 1 3 512
    3 4 1 4 512
    4 5 1 5 512
    5 6 1 6 512
    6 7 1 7 512
    7 8 1 8 512
    8 9 1 9 512
    9 10 1 10 512
    10 1 2 11 512
    11 2 2 12 512
    12 3 2 13 512
    13 4 2 14 512
    14 5 2 15 512
    15 6 2 16 512
    16 7 2 17 512
    17 8 2 18 512
    18 9 2 19 512
    19 10 2 20 512
    20 1 3 21 512
    21 2 3 22 512
    22 3 3 23 512
    23 4 3 24 512
    24 5 3 25 512
    25 6 3 26 512
    26 7 3 27 512
    27 8 3 28 512
    28 9 3 29 512
    29 10 3 30 512
    30 1 4 31 512
    31 2 4 32 512
    32 3 4 33 512
    33 4 4 34 512
    34 5 4 35 512
    35 6 4 36 512
    36 7 4 37 512
    37 8 4 38 512
    38 9 4 39 512
    39 10 4 40 512
    40 1 5 41 512
    41 2 5 42 512
    42 3 5 43 512
    43 4 5 44 512
    44 5 5 45 512
    45 6 5 46 512
    46 7 5 47 512
    47 8 5 48 512
    48 9 5 49 512
    49 10 5 50 512
    50 1 6 51 512
    51 2 6 52 512
    52 3 6 53 512
    53 4 6 54 512
    54 5 6 55 512
    55 6 6 56 512
    56 7 6 57 512
    57 8 6 58 512
    58 9 6 59 512
    59 10 6 60 512
    60 1 7 61 512
    61 2 7 62 512
    62 3 7 63 512
    63 4 7 64 512
    64 5 7 65 512
    65 6 7 66 512
    66 7 7 67 512
    67 8 7 68 512
    68 9 7 69 512
    69 10 7 70 512
    70 1 8 71 512
    71 2 8 72 512
    What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
    I already created a class called Class packet:
    public class packet {
        private int timestamp;
        private int user_id;
        private int packet_id;
        private int packet_seqno;
        private int packet_size;
        /** Creates a new instance of packet */
        public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
            this.timestamp = timestamp;
            this.user_id=user_id;
            this.packet_id=packet_id;
            this.packet_seqno=packet_seqno;
            this.packet_size=packet_size;
    }then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
    any idea and sample code will be appreciated.

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • How can i make shorten systemlog files and joblog files on OS

    Hello
    How can i make shorten systemlog files and joblog files on OS

    Hello Jan,
    You can limit the size of system log.
    The size of the application server's System Log is determined by the
    following SAP profile parameters. Once the current System Log reaches
    the maximum file size, it gets moved to the old_file and and a new
    System Log file gets created. The number of past days messages in the
    System Log depends on the amount/activity of System Log messages and the
    max file size. Once messages get rolled off the current and old files,
    they are no longer retrievable.
    rslg/local/file /usr/sap/<SID>/D*/log/SLOG<SYSNO>
    rslg/local/old_file /usr/sap/<SID>/D*/log/SLOGO<SYSNO>
    rslg/max_diskspace/local 1000000
    rslg/central/file /usr/sap/<SID>/SYS/global/SLOGJ
    rslg/central/old_file /usr/sap/<SID>/SYS/global/SLOGJO
    rslg/max_diskspace/central
    Refer to http://help.sap.com/saphelp_nw70/helpdata/EN/c7/69bcbaf36611d3a6510000e835363f/content.htm
    for explanation of profile parameters.you can reduce the size of system log using rslg/max_diskspace_local and rslg/max_diskspace_central
    But you can't reduce the size of job log files on OS
    Rohit

  • How can I back up my files and photos on my iPhone to my iMac?

    How can I back up my files and photos on my iPhone to my iMac?

    You can back up the iPhone to your Mac with iTunes.
    Make sure, your iTunes version is up to date. Connect your iPhone to an USB port and launch iTunes.
    See this document: http://support.apple.com/kb/HT1766
    If you want a separate folder with your photos, download the camera roll contents by connecting the iPhone to USB. You emac will see it as camera and you can download the photos using Image Capture to a folder on your Mac, or using iPhoto or Aperture to your photo library.

  • How can i password protect some files and web sites?

    How can I possword protect some files and web sites on my mac air so others using my laptop can't access them?

    Set a password for your user; create other user accounts for when other people want to use it. You can create a "guest" login which gets wiped after every logout, if that's more appropriate for them.
    Matt

Maybe you are looking for

  • My iTunes wont open and my iPhone is stuck and says it needs to connect?

    my iphone has the itunes icon with the arrow pointing to it and the plug in. ive been trying to update it to iOS 5. i just got the new 10.5.2 iTunes it wont open now! i have the Windows XP and the iTunes wont open so it wont say my phone is connected

  • Copy and paste of images still broken?

    I use Firefox 14 and Windows XP, and I can't copy and paste images from the web into, say, a Word document. I used to do this all the time for knitting patterns, and it's very frustrating to have lost this function. I see from the knowledge database

  • Home cable wireless network doesn't show up in available networks

    Hi, I've just arrived in a new apartment with an iBook G4. I travel a lot and am able to easily pick up and connect to wireless networks. The apartment I've moved into has Time Warner Cable service, including a cable modem and a Belkin wireless route

  • Creating user defined extensions

    Hi, Is there any documentation for creating user defined extensions? I want to add a few simple things to the 'CONNECTION' context menu that just alter the current session. When I do this I always get a prompt to confirm execution of my SQL when I wa

  • Will Apple someday make iOS5 available to the 2nd generation iPod Touch?

    I know that iOS5 will only be available to 3rd and 4th generation iPod Touches. Is it possible that Apple can develop a slightly down-graded version that has some of the new features so that users with 1st and 2nd generations can enjoy them?