How do I add an objectclass to existing LDAP server entry using an ldif file?

I am trying to fix an LDAP server that has been operating with schema check off. I need to add an objectclass to the groups so that some attributes that have been added to the groups will be "legal." From the documentation, the changetype: modify will allow the changing/adding of attributes that are already a part of the schema objects that define the entry. It does not look like I can add an objectclass with the modify operation.
If this is the case, then how do I add an objectclass to an existing entry? Using the GUI is not possible since the directory server in question is not being managed with an admin server. Please tell me that I do not have to delete the groups and import them again with an LDIF file that has the new objectclass added.
Kent

See this post:
http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000636B0000&USEARCHCONTEXT_CATEGORY_0=_21_%24_7_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_21_%24_7_&UCATEGORY_S=0

Similar Messages

  • LDAP: Recommended way to add new objectclass to existing entries?

    Can anyone help me with the preferred way to add a new objectclass (with attrributes) to existing entries within a directory (via the javax.naming API)?
    I have an application that uses a directory of users. Each user has objectclasses "top", "person", and "inetOrgPerson" with usual attributes.
    The application needs to change to add a custom objectclass, say "ourAppClass" (and its attributes), to each existing entry within the directory. I have already successfully defined the schema for the objectclass within the directory.
    I cannot find examples showing how to add an objectclass to existing entries. Creating brand new entries with custom objectclassess is straightforward.
    When using DirContext.modifyAttributes must I define all the objectclasses again, or is there a way to send only the new objectclass and its attributes only?
    Attributes attrs = new BasicAttributes();
    Attribute classes = new BasicAttribute("objectclass");
    classes.add("top");  // do I need these?
    classes.add("person"); // do I need these?
    classes.add("inetOrgPerson"); // do I need these?
    classes.add("ourAppClass"); // in-house class
    attrs.put(classes);
    attrs.put("ourCustAtribute", "value1"); //
    DirContext.modifyAttributes(dn, LdapContext.REPLACE_ATTRIBUTE, attrs);Does someone have a good example to follow?

    I think I have answered my own question. I think I need to use a ModificationItem to add an attribute to the objectclass.
    final ModificationItem[] classModification= new ModificationItem[1];
    classModification[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
                new BasicAttribute("objectclass", "ourAppClass"));
    dirContext.modifyAttributes(dn, classModification);

  • How does one add tables to an existing universe using COM designer SDK.

    Morning All
    How does one add tables to an existing universe using COM designer SDK. I have tried:
    objUniverse.Tables.Add (strTable_Name)
    but get "Cannot create Table" error.
    Any ideas?
    Thanks in advance.
    Anita

    Hi Anita,
    -Use the Add method to add classes and objects to an existing universe using a VB 6 application.
    Adding a Class
    Definition: Function Add(Name As String) As Class
    Syntax: NameOfClassesVariable.Add
    Adding an Object Instance
    Definition:  Function Add(Name As String, [ClassName As String]) As Object
    Syntax: NameOfObjectsVariable.Add(name, [class])
    - name is the name of the object.
    - class is the name of the class containing the object. This parameter should be used in cases where more than one objects exist with the same name.
    Sample Visual Basic 6 Code
    Dim DesApp As Designer.Application
    'MODIFY AND EXPORT CLASSES AND OBJECTS OF AN EXISTING UNIVERSE
    Sub modify_and_export_universe()
    Dim DesUnv As Designer.Universe
    Dim DesCls As Designer.Class
    Dim DesObj As Designer.Object
    Dim DesDBCol As Designer.DBColumn
    Dim DBColName As String
    Set DesApp = New Designer.Application
    'Login to designer
    Call DesApp.LogonDialog
    'Make sure to log on with your administrator profile
    'e.g : "hostname","username", "password","Enterprise"
    'Make Designer application visible
    DesApp.Visible = True
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'to Open  locally  the universe you want to modify
    'Set DesUnv = DesApp.Universes.Open("club_uni")
    'Use OpenFromEnterprise method (Universes Class) to import a universe from the repository and opens it
    Set DesUnv = DesApp.Universes.OpenFromEnterprise("Universes", "club_uni", False)
    'Add a valid connection which already exists
    DesUnv.Connection = "club"
    'open the universe
    'Call DesApp.Universes.Open("club_universe")
    'Add the table Account and refresh the view in the main window
    Set DesTab = DesUnv.DBTables.Item("Customer").Insert
    DesUnv.ArrangeTables
    'Add a class
    Set DesCls = DesUnv.Classes.Add("Class MyCustomer")
    'Looping through all the fields of the DB Table Account
    For Each DesDBCol In DesUnv.DBTables.Item("Customer").DBColumns
    'Store name of the column
        DBColName = DesDBCol.Name 
         'Add an object to the class
        Set DesObj = DesCls.Objects.Add("Obj " & DBColName)
         'Affect a field to the object
        DesObj.Select = "Customer" & "." & DBColName
    Next
    'Save the existing universe with the same name club_uni or you can change
    DesUnv.SaveAs "club_uni"
    MsgBox "Universe created and saved Class MyCustomer has been added!!"
    'Close the universe
    UnvFullName = DesUnv.FullName
    MsgBox "The UniverseFilePath is " & UnvFullName
    'Close the universe
    DesUnv.Close
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'Export the universe to the CMS DB (to the last universe folder)
    'Make sure you save the universe before exporting it
    Call DesApp.Universes.Export("Universes", UnvFullName)
    MsgBox "This document has been exported successfully !!"
    'Close designer
    DesApp.Quit
    Set DesApp = Nothing
    End Sub
    Hope this helps.
    Regards,
    Deepti Bajpai

  • How do i add information to an existing document

    how do i add information to an existing document

    Not sure what you mean.  What application are you trying to use?

  • How do I add time capsule to existing network?

    How do I add time capsule to existing network?

    Ok.. I am still confused as an Express only has one ethernet for LAN not 4. So you perhaps have an extreme..
    If you have an airport extreme.. plug the TC into the extreme with ethernet.. and set it up as bridge in router.
    You can also create a wireless network that works alongside the extreme.. this is the best way.
    It is also possible to setup the TC to extend the wireless of the extreme.. but this will make backups much slower.. at least half the speed if not worse.

  • How can I add contacts in my iphone that are backuped in a pim file in my pc

    how can I add contacts in my iphone that are backuped in a pim file in my pc

    You have to get them from the file you have into iCloud, google, yahoo, outlook.com, AOL, an Exchange server, or some other service the phone can sync with, or into MS Outlook on your PC. Then you can sync them to the phone.

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How do I add a field in my FormCentral application for applicants to attach files?

    How do I add a field in my FormCentral application for applicants to attach files?

    Hi;
    Please see my response in this post: http://forums.adobe.com/message/5994307#5994307
    Thanks,
    Josh

  • How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window

    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?

    user11016624 wrote:
    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?
    Please see:
    http://www.oraclebusinessapps.com/2008/04/28/load-pdf-file-attachment-using-api/
    http://www.oracleerpappsguide.com/2011/04/attachment-in-oracle-application.html
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_ATTACHED_DOCUMENTS_PKG&c_owner=APPS&c_type=PACKAGE
    Thanks,
    Hussein

  • How should I add an automated procedure to my server

    Hi,
    I have Mac OS X Server 10.3.9 running on a eMac.
    I wondered how could I add and automated procedure to my server, I explain.
    I have a dyn IP provider (no-ip.com) who accepts IP updates via http GET request with a URL like this : http://dynupdate.no-ip.com/dns?username=[email protected]&
    password=mytestpassword&hostname=mytest.testdomain.com
    Is there a way to get this line executed every 5 minutes with the server ?
    Sorry for my bad english but regards to those who are able to answer
    eMac   Mac OS X (10.3.9)   Server

    I succeded with the curl method
    applaus ;o)
    Now I'm working with crontab and I try to understand it
    The system crontab is /etc/crontab. Edit it with the command line editor of your choice. If you happen to do not know one, the simpelst one imo is pico.
    Try it out with pico testfile.
    For the crontab syntax see my first post. You have to add a line like:
    0 0 * * * philippe curl "http://..../"
    This would start curl once a day at midnight.
    Thanks for the help very useful
    Points, points, points.... ;o)
    -Ralph

  • How to all add all category videos to itunes?, how to all add all category videos to itunes? i use windows.

    how to all add all category videos to itunes?, how to all add all category videos to itunes? i use windows.

    What do you mean by "all category videos"?

  • How to use company users on existing ldap server as EP6.0 sp2  Users?

    Hi everybody
    Our company user data is on a  LDAP server we want to connect our EP6  UME  to this existing LDAP server so that existing company users can access  the Portal with their company id and password. What configuration we should do on the portal ?
    thanks and regards
    Rajendra

    Hi!
    Look at Admin Guide:
    Administration Guide->Portal Platform->System Administration->User Management Configuration->Configuration of Data Sources Used for User Management->Defining an LDAP Directory as a Data Source
    WBR, Lnk

  • How do I add XML content to existing FrameMaker Document

    Hello,
    I have an XML document that contains features of one item and I want to add data from it to FM document that shows those features. These features have been added to FM previously by copy-paste technology which isn't obviosly the fastest way and I have understood adding them automatically is possible.
    I can read XML well and I can produce XSLT files to make another XML files, problem is that I'm a little beginner with FM and help files didn't show any good examples of this (or at least I didn't find). I tried to do some read/write rules, because it seemed to be the way how FM handles these things but they didn't work.
    So shortly: XML file (data) + FM file (tables and such) = FM file which have XML data in its tables
    I would appreciate any help, like pointing to right help files or such, thanks in advance.

    The two main references you need are:
    Developing Structured Applications with FrameMaker, Guide
    Developing Structured Applications with FrameMaker, Reference
    They used to ship with FrameMaker, but you can download them from the Adobe site. Check the Support section. I do not believe they are available for FrameMaker 10 yet, but they are for version 9. No matter your FramMaker version, almost any set will do.
    Basically, you need an XSLT that will translate the XML structure into the structure you use in your FrameMaker files. You need a set of read/write rules (see the references above). FrameMaker uses read/write rules to specify how certain FrameMaker objects are to be translated from the XML. Such objects include tables, variables, and markers.
    Then you need to create a structured application that specifies where the XSLT, the read/write rules, and your structured template are located on you system.Again, see the references.
    Once all of the above is in place, you open the XML file from within FrameMaker. FrameMaker will ask you what structured application to use, which you pick from the dropdown list. It will then open the XML file, apply the XSLT transformation, and copy the result into your structured blank template. That process will likely list several errors, which you may or may not be able to ignore depending upon the resulting FrameMaker document. In my case, these are usually errors about missing graphics, which I already know are missing.
    The result is ONE FrameMaker file. You can then copy and paste the information where ever you need it in your other documents. I am not sure whether you can import an XML file into an existing Framemaker document, much like a text inset. Maybe others will know.
    Good luck,
    Van

  • How do I add an objectclass

    I am attempting to use OIM to sync values from AD. I am recieving the SAMAccountName and UserPrincipalName from AD and I want to push them into my newly provisioned user in OID. I am capturing the value into the core OIM user, however in my xel.log I see an error that makes me suspicious of my OID LDAP object is missing attributes due to it not having all of the appropriate objectclasses assigned.
    Here is the error:
    ERROR HTTPThreadGroup-18 XL_INTG.OID - OID:tcUtilLDAPOperations -> : Unable to add attributes of the object[LDAP: error code 65 - Failed to find orcluserprincipalname in mandatory or optional attribute list.]
    ERROR HTTPThreadGroup-18 XL_INTG.OID - tcUtilOIDUserOperations -> NamingException: Error while connecting to target. OID:tcUtilLDAPOperations -> NamingException[LDAP: error code 65 - Failed to find orcluserprincipalname in mandatory or optional attribute list.]
    My thought is to inject/force the orcladuser objectclass as part of the object provisioning. When I look at connectors attribute mappings it has the ldapUserObjectClassPrimary and the ldapUserObjectClassSecondary set to inetorgperson and orcluserv2. Would setting one of those to orcladuser work? Or is there another way to achieve adding objectclasses as part of the provisioning process?
    thanks,
    Jason

    Modify Lookup - AttrName.Prov.Map.OID used by OID Connector to adding additional attributes or classes. ldapUserObjectClassSecondary takes | seperated values for e.g: orcluser|orcluserv2|orclUserProvStatus.
    I have done this to provision users from OIM to OCS through OID Connector.
    Rgds, Ajay

  • How do I add the email button to the toolbar when I open PDF files in Mozilla ver. 19?

    I just updated to Mozilla ver 19 and now when I open a PDF file in Mozilla the email button is no longer on the toolbar how do I add it?

    hello, firefox 19 has introduced its own integrated pdf viewer - if you want to switch back to the plugin you've used before to view pdfs just go to firefox options > applications & define the default action for the ''portable document format (pdf)''.
    [[View PDF files in Firefox without downloading them]]

Maybe you are looking for

  • MSI KT3 Ultra-Aru (KT333) and Duron Applebred??

    Hi, welcome,willkommen,witajcie,dobry den, ... (I know this word in 11 languages) I have MSI KT3 Ultra-Aru (KT333) and J want to buy AMD Duron 1800MHz(Applebred). Does my motherboard support that processor?? It will work without problems??

  • How to omit the report column in pdf-print?

    Hi, experts! I have a column with html code (a link to another web-page). The html draws a button with redirection to a specific link. In the properties of that column I set an "html" format, so the code executes and the desired button appears... but

  • Mail subfolder drag and drop broken?

    I store mail in subfolder sin On My Mac, dragging between current and archived work as projects demand (as in, I'll drag the 'client a' folder from 'Work - inactive' to 'Current work' when a job starts. In Leopard, this worked swimmingly. In Snow Leo

  • IPod 3G mounting via Firewire problem

    hello, I've bought an iPod 3G 20gb. All was ok, but I couldn't connect it to my powrbook via firewire. iPod was charging but wasn't seen by computer (itunes, finder nor system profiler). When I plugged the ipod via usb powerbook recoknized it. Unfort

  • Where condition on date column using OleDb Command?

    Hi, How to read date column from excel sheet usign OleDb command. Below code failing . OleDbCommand cmd = new OleDbCommand("SELECT Column1 FROM [sheet1$] WHERE createdDate < ="+Convert.ToDateTime("3/24/2015")+" ", connection); OleDbDataReader dr = cm