Ldifwrite created file used in ldapadd/ldapmodify gives errors

We want to backup entries in the Users container.
1. The ldif file created by ldifwrite:
ldifwrite -c oidtwo -b "cn=Users,dc=dn,dc=dev,dc=pg,dc=gov" -f backup.ldif
2. ldapadd -p 389 -h localhost -D "cn=orcladmin" -w oiddp -f backup.ldif
3. Got errors in orcloci ...in VI we found that the orcloci entries are not formatted properly, and we fixed this manually.
4. We got another error:
adding new entry cn=orcladmin, cn=Users, dc=dn,dc=dev,dc=pg,dc=gov
ldap_add: DSA is unwilling to perform
ldap_add: additional info: You cannot add entries containing authpasswords.
Just wonder if this is the right way to back up this container?
Thanks!

You'll need to remove authpassword attributes as those are created at create time. Its mentioned in one of the steps of moving to a new server (Metalink Note:276688.1). The XSL they used is below:
<!--
File : del_authpassword.xsl
Version : 1.0
Author : mgueury
Description:
Remove the authpassword from the DSML files
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xml:output method="xml"/>
<xsl:template match="*|@*|node()">
<xsl:copy>
<xsl:apply-templates select="*|@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="attr">
<xsl:choose>
<xsl:when test="@name='authpassword;oid'">
</xsl:when>
<xsl:when test="@name='authpassword;orclcommonpwd'">
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="*|@*|node()"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
You'll want to start with dumping it to XML:
ldapsearch -h $OID_HOSTNAME -p $OID_PORT -X -D "cn=orcladmin" -w $IAS_PASSWORD -b "cn=users,dc=dev_domain,dc=com" -s sub "objectclass=inetorgperson" > portal_users.xml
Then run that against the XSL to remove the attribute:
xml -f -s del_authpassword.xsl -o portal_users.xml portal_users_new.xml

Similar Messages

  • I accidently created files using a Free Trial version of InDesign. Now the files are gone. Where did they go? How do I get them back? I pay for this service...

    I accidentally created files using a Free Trial version of InDesign. Now the files are gone. Where did they go? How do I get them back? I pay for Creative Cloud... but used the wrong login apparently.

    Files you save don't disappear, even if you no longer have the software that created them. They're right where you saved them.

  • Error "creating file: 1008:5, -5000 Access Denied Error"

    I'm unable to install Flash Player 9 in OS X (10.4.8). I
    followed the following tech note:
    http://www.adobe.com/go/4aa64290
    * I uninstalled Flash Player using the uninstaller
    * I repaired disk permissions
    * I tried re-installing Flash Player
    I still get the error message saying I don't have the
    appropriate permissions.
    Some background: I'm upgrading from a G5 tower to a new Mac
    Pro. I ran the migration utility to copy over my user settings,
    apps, etc. I noticed that pages with Flash were crashing the
    browser(s) instantly. Of course, that's because the PowerPC version
    was previously installed. I uninstalled and tried to re-install.
    When I got the above error, searched the support area and found the
    tech note saying to uninstall (done), repair permissions (done),
    then re-install (fails.)
    I'm stumped.
    Any suggestions?

    I have the same problem, after trying more than a few times
    to install the
    player, uninstall it, uninstall the Firefox 2, reinstall
    Firefox... with the
    same result : it says that I need a plugin, and put me to the
    page of the Flash
    player installer...
    I had this new error message after erasing, as it was
    proposed on a forum, the
    Internet plug-ins directory... "creating file: 1008:5, -5000
    Access Denied
    Error"
    I never had this message before. I have all the rights and
    have installed lots
    of softwares. I tried to use the terminal way... but this is
    a long way for me
    on a Mac... I would be able on a PC but I can't even
    "navigate to this
    directory"...
    Do I have to say that this Flash player is now quite
    important for lots of web
    sites... This is really the first time I have a problem with
    Flash. Is it the
    Intel Mac ?? No, it seems Windows have also its probs. Thanks
    for a reply... or
    a solution !

  • Unable to open newly created files using a specific font.

    Hello everyone!
    All of a sudden, I am not able to open newly created files in Acrobat Pro 9.0 that use a specific font. It seems to be localized to files that are created in Microsoft Words, as I tried to create a document in Pages and was able to open that PDF (using the same font) in Acrobat. I'm not sure what to do at this point...Any ideas?

    Hi,
    If you have recently upgraded to Mac OS X 10.6.7, then have a look here:http://forums.adobe.com/message/3593533#3593533, where Steve Werner had the solution.
    Niall

  • Dynamically creating file using variable

    HI, i am facing an issue in creating file on run time using variable.
    i have a variable FileName. In refresh tab i have written a query like SELECT TO_CHAR(SYSDATE,'YYYY,MM,DD') || 'TEST' FROM DUAL. i tested the variable and its value is correct.
    i have created an interface to extract the data from table and store it in file. i have assigned variable FileName to the file.
    Now when i run the interface...the file is created but the header is created in different file and its name is ambiguous e,g(19) and the data is placed in other file with the name which is the value of variable FileName.....
    ISSUE is two ODI creates two files one for header only and other for data....
    when i run my interface in a package the file created perfectly ..... but i dun want to use package i want to create file through running interface only

    one file name is some number like 19.txt and other filename is 20121211_TEST.txt (this name is coming from variable).....
    however when i create a package with variable and interface,only one file is created 20121211_TEST.txt (header and data are not created in separate files.)
    create header     (ID,
         NAME,
         DEPT)
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=TARGET_FILESNP$CRLOAD_FILE=*E:\tempProj/19*SNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x007eSNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=IDSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=NAMESNP$CRTYPE_NAME=STRINGSNP$CRORDER=2SNP$CRLINE_OFFSET=51SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=DEPTSNP$CRTYPE_NAME=STRINGSNP$CRORDER=3SNP$CRLINE_OFFSET=101SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CR$$SNPS_END_KEY*/
    Edited by: 975356 on Dec 11, 2012 10:57 PM
    Edited by: 975356 on Dec 11, 2012 10:58 PM

  • Creating Files Using PL/SQL?

    Hi,
    Is there a way to create a file using PL/Sql? It seems that the
    utl_file package doesn't allow you to create a file. It only
    allows you to read, write to a file that already exists there.
    Thanks
    Vic

    Make sure the following is set in the init.ora:
    UTL_FILE_DIR = /path/to/your/file/directory (for unix)
    or
    UTL_FILE_DIR = <drive>:\path\to\your\file\directory (for windows)

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • File TO File-Using XSLT mapping (for Beginners) --- Error in XSLT

    Hi,
    I am following this wiki (TO File-Using XSLT mapping (for Beginners))
    https://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping%28forBeginners%29
    When creating  Xslt from the MapForce, when I click on the XSLT Tab I am getting the following error
    http://www.flickr.com/photo_zoom.gne?id=1216715484&size=o
    How to correct this error ?.....
    Thanks
    srini
    Message was edited by:
            srinivas

    Hello,
    The XSD you are using is from Data Type and you are using it for mapping.
    Instead export XSD for Message Type and also pass the XML schema for source that will solve the issue and your XSLT will be generated.
    Regards,

  • When  I am uploading  file with special character it gives error

    Hi All,
      I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
    Thanks,
    Madhav

    hi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
    or the special charactera are coming unnecessary use the command ............replace all occurances  to avoid this..

  • Uploading image file using tcode se78  occuring some   Error

    Hai Gurus
          I am uploading image file using tcode se78 but while Uploading it giving some error i cant resolve the problem so any one help me plz
    Error    "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

    Hai
    Thanks
    I had done in all method but i can't save it 
    error is coming ..so plz help me to upload the image
    Error "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

  • Can't create file using FM File_Get_Name

    Hi guru,
    I have a program that creates a file to the system using fm fiel_get_name. Someone changed the OS in the SY-OPSYS from AIX(Application) to NT(file server). But the file seems is not there.
    Is there something wrong from changing the SY-OPSYS?
    Points will be rewarded...Thank you

    Hi gurus,
    what else should I look at..i dont think there's nothin wrong about the code of my program.. It's about how it is deifne in the logical path and other settings... Would you know in what tcode can I see it? I only new in this kind of issue.
    Points will be given ..thanks!

  • Unable to create file using java.io.File

    I have attached my code
    public boolean validateZip(MultipartFile file, List<String> files) throws Exception {
              String fileName = file.getOriginalFilename();
              File tempFile = new File("C://workspace//tempData//" + fileName);
              LOG.info("Absolute path : " + tempFile.getAbsolutePath());
              ZipFile zipFile = new ZipFile(tempFile);
              LOG.info("No of enteries in the zip : " + zipFile.size());
              //loop through the list and check if the entry is in the zip file
         }The problem is, no exception is thrown in
    ' File tempFile = new File("C://workspace//tempData//" + fileName);
    but, a FileNotFoundException is thrown in
      ZipFile zipFile = new ZipFile(tempFile);Also, it specifies the Absolute Path, but when I check there, there is no file created.
    Any help is appreciated.
    TIA

    ok, when I debug my application for the following code :
    String dir = "C:\workspace";
    String fileName = file.getOriginalFilename();   // file is an instance of a multipart file
    File tempFile = new File(dir, fileName);
    ZipFile zipFile = new ZipFile(tempFile);it runs smooth, no issues, if I run my app, the following line throws a FileNotFoundException...
    ZipFile zipFile = new ZipFile(tempFile);

  • Unable to create file using : =utl_file.fopen

    Hi Team,
    My issue is file is not getting created, i checked the permissions of the directory.
    No error is received while executing the below script .
    declare
    f1 utl_file.file_type;
    begin
    f1:=utl_file.fopen('TAX_CODE_OUT_FILE_PATH','test.txt','W');
    utl_file.put_line(f1,'memocan');
    utl_file.fclose(f1);
    end;
    Any suggestion why file is not getting created ?

    i tried the following :
    declare
    V1 VARCHAR2(32767);
    f1 utl_file.file_type;
    begin
    F1 := UTL_FILE.FOPEN('TAX_CODE_OUT_FILE_PATH','in.txt','R');
    UTL_FILE.GET_LINE(F1,V1,32767);
    UTL_FILE.FCLOSE(F1);
    end;
    Error is thrown as following ;
    Error report:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 537
    ORA-29283: invalid file operation
    ORA-06512: at line 6
    29283. 00000 - "invalid file operation"
    *Cause:    An attempt was made to read from a file or directory that does
    not exist, or file or directory access was denied by the
    operating system.
    *Action:   Verify file and directory access privileges on the file system,
    and if reading, verify that the file exists.
    Any suggestions ??

  • Flash catalyst 5 file opened in flash builder gives "Error #2032"

    Hi there,
    As the title suggests I created a file in Flash catalyst 5 and to give it resizeability I edited it in flash builder to add preinitialize="systemManager.stage.scaleMode='showAll'" in main.xhtml as I found suggested in the forums.
    The problem is when I try to load this in my web browser I get the #2032 error and nothing happens.
    Does anybody more knowledgeable than me have any ideas as to why I might be getting this error?
    Best regards,
    Gareth

    I'll give you the short answer, Flash Catalyst is built on top of the Flex Framework and it's libraries. When you launch or load a FC swf, it will contact the Adobe servers to check the status of various libraries. Since you are loading this into a standard Flash Professional created swf, you are by passing some of the fallbacks that exist.
    If the movieClip that you are creating is just a filler image, and you are just centering the FC swf, then I also recommend using CSS to display the filler and some HTML/CSS to center the content.
    Hope this helps a little.
    If you did the loading of the FC swf from a Flash Builder based project, you should not have the issue, since it is a Flex based SWF, the framework checks are already handled for you.
    Chris

  • Adding Used DC under CRMWEB gives error " .dcdef  checked out by others"

    Hello E-Commerce Experts,
    We need to extend E-Commerce 7.0 b2b application (claims and returns). After much struggle, we could finally deploy the custom application. We now would like to extend it and have new fields added.
    We need to to defined a used dependency in the web module project crm/eservice/web/cr_b2b for customer extension DC provided for java action classes (crm/home/crm/ext) but are getting an error saying:
    DC definition could not be checked out: the file .dcdef is checked out by others. None of the objects have been checked out by any other developers.
    Please advise as to how to resolve this error.
    Additionally, we would like to add CRMJAVA SC as a development component, so we could refer the existing java files. But we are not able to import it properly. It shows up as an empty SC in NWDS after being imported.
    Your help would be highly appreciated.
    Thanks!

    I was able to resolve my error. I had created some other instances of the same project under a different workspace.
    Follow these steps for every workspace  you might have created your project in (except the current workspace):
    For every open activity ( Windows -> Show View -> Open Activities)
    - Select your open activity  -> Right Click -> Revert  and then Delete the activity  (Right click -> delete)
    Delete all your open activities.
    Open your current project and Resync all DCs.
    Now try to add used DC for the web module project.
    It should work.

Maybe you are looking for

  • Not allowed to access the "name" of my Apple ID under Seettings in IOS 7.0.4

    Until this past week, I had used an Apple Iphone 4S.  Recently, I purchased my son an Iphone as well.  I initially upgraded his TMobile account to the 5S for me and gave my old Verizon IPhone to him.  It didn't work out but I did learn that I preferr

  • How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)?

    How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)? When I do what Apple said and go to a Pages file in finder and select "get info" then select "Pages 4.3" and "change all" it just defaults t

  • DVD won't play

    I used DVD studio pro after exporting for DVD in FCP7. This created a M4v vid and an audio file. I made a menu in dvd studio pro which then has two medias to choose from, a still and the video. In a computer (a mac) it is playing fine, however I trie

  • Sync Send

    I want to design a sync send to BPM. How can i do?. I am using JDBC adapter as sender..... BPM receivers the message.......then pass it to R3 using RFC Adapter.

  • DDL Replicate Oracle 10gR2 to SQL Server 2005

    Dear Gurus, I have configured OGG and it had succeed to have DML transaction from Oracle to SQL Server. now i'm configuring DDL replication but have problem when i tried to start replicat program in SQL Server 2005, the status is abended. the log sho