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.

Similar Messages

  • Object reference not set to an instance of an object error when generating a schema using flat file schema wizard.

    I have a csv file that I need to generate a schema for. I am trying to generate a schema using flat file schema wizard but I keep getting "Object reference not set to an instance of an object." error when I am clicking on the Next button after
    specifying properties of the child elements on the wizard. At the end I get schema file generated but it contains an empty root record with no child elements.
    I thought may be this is because I didn't have my project checked out from the Visual SourceSafe db first but I tried again with the project checked out and got the same error.
    I also tried creating a brand new project and generating a schema for it but got the same error.
    I am not sure what is causing Null Reference exception to be thrown and there is nothing in the Windows event log that would tell me more about the problem.
    I am using Visual Studio 2008 for my BizTalk development.
    I would appreciate if some has any insides on this issue.

    Hi,
    To test your environment, create a new BizTalk project outside of source control.
    Create a simple csv file on the file system.
    Name,City,State
    Bob,New York,NY
    Use the Flat file schema Wizard to create the flat file schema from your simple csv instance.
    Validate the schema.
    Test the schema using your csv instance.
    This will help you determine if everything is ok with you environment.
    Thanks,
    William

  • Anyone tried using LDIF file in the User Profile Synchronization Process?

    Microsoft pushied an article recently talking about using LDIF file in the SharePoint's user profile synchronization. 
    Configure profile synchronization using a Lightweight Directory Interchange Format (LDIF) file (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/ff959234.aspx
    Currently I am unable to obtain the required "Replicate Directory Change" permission set up by the AD admin.  So I thought of exploring this alternative since I still have AD search permission right now.
    So far, I was able to set up the MOSSLDAP-LDIFMA, and use an import.ldif file to add, remove and update user profiles.  However, there are some problems that I can't resolve.  One of key problems is, the LDIF-imported records can't be
    sync'd with login-based records.
    In my environment, when a user login SharePoint via Windows authentication, a new profile would be added, under the account name "domain\username".  Meanwhile, when an LDIF record imported, there will be another profile created under the account
    name "domain:domain\username", or "domain:username".  That is, there would be two profiles for each user.
    Based on my understanding, it is very likely the user profile synchronization is based on the user's account name.  But in document and sample files provided, I can't find out any clue how to prepare the ldif file so that it will update the
    matching records, instead of creating new ones.
    Any help?  Thanks in advance.

    Has anyone managed to get this to work?
    It's nice that Microsoft offers the ability to import user profiles via LDIF into SharePoint, but it is useless if the account name is not correct after the import. I have tried multiple imports from the LDIF to get a user account to show up as  "domain\username" but
    it always ends up as "domain:domain\username", or "domain:username".  or a variation
    of these 2 with a colon separating the domain form the username. i see that multiple people have had the same problem, but unfortunetaly can't seem to find a solution. Also I see Bradley mentions that he was able to import accounts using get-QADUser,
    but he doesnt mention what the accounts import as or if it resolved the domain colon issue.
    Thanks in advance for any help or information anyone can provide.
    cheers,
    Zed

  • I am writing an interactive book and want to use media files and stuff.

    I am writing an interactive book and want to use media files and stuff. My question is: If I want to sell this book in the iBookstore,
    may I use photos I find on google images and media i find on youtube? Or must all be my own stuff?

    No !  well not just any photo image or "media". The person who created the photo images has a copyright protection IF  he/she wishes to impose it - ditto video and other  media.
    However if its out of copyright by  virtue of age and certain other factors - its considered in "The Public Domain" which is why you see paintings by the Impressionists all over chocolate boxes and posters to name but two!
    There are websites offering images donated by the creators and all for free.
    Taking and using a picture you do not own copyright and placing online where it can be downloaded is  first "publishing" and you  need permission and placing in a situation where it can be copied and re-distributed is a breach of copyright.
    Look at the  tail end credits on any DVD...  the above is always  included.
    Others rmay  correct me but Copyright in some countries is vaild from creation until 50 years after the death of the creator. However, that is not always the case.  Example, assume I am bequeathed a photo archive and on the  last day year 50,  I  publish a completely new version of the archive, wizzed through Photoshop, cleaned, cropped and modified in other ways.. then I can assert my claim for copyright of the renewed archive, but its a bit more complicated!!!
    You can search for "Free Photo Images (  media) , or royalty free images and if you land on a particular website you can ask permission. If you send me a request, my reply will be NO... and you get a warning of dire consequences if your infringe my copyright!  Other may be more lenient and in fact feel pretty good to be  asked.
    A way to get some guidance is to check out Wikipedia and the many  images included in its subject matter, check out the copyright status.
    Beware of using  photo images of paintings in  Galleries and Museums, they may have copyright conditions.. but one can always contact them to seek  permission.
    Search  for  Copyright and ownership and it should bring up some good information. Depending on your country.. it may have its own  Copyright website. USA are more detailed than most, The UK has the 1988 Copyright Act.
    Also remember that all photo images carry exif embedded data which  among other things carries the copyright information and shows up in a google search for the right  keyword!  Scanned images processed through Photoshop and other editors  can have the metatdata added also.

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

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

  • Remove odbc system dsn using batch file and odbcconf

    I create user system dsn entries by using a batch file and odbcconf call.  I've found references here on how to do that, yet cannot seem to find any results on how to remove them using that same call.  The library information (http://msdn.microsoft.com/en-us/library/ee388579(VS.85).aspx) states add and modify a system dsn for configdsn and configsysdsn and references equivalent to SQLConfgDataSource function. (http://msdn.microsoft.com/en-us/library/ms716476(VS.85).aspx) but the config data source function has a a removal and this doesn't seem too. 
    Apologies for being obtuse, but I can't seem to locate it.  Any links to how this is done from a batch file are much appreciated.
    Regards,
    NR.

    John C is basically correct, you can remove a System ODBC data source via the registry, but there is apparently no way via odbcconf.exe.  That is of course really stupid and poor programming!
    John, however, forgot another important registry entry.  That key deletion he mentioned will disable the odbc connection, but not remove it entirely.  If you just do that and then open the "ODBC Data Source Administrator", you will find the
    connection is still listed, but you can't remove it or modify it.  It becomes completely screwed up! There is a value to delete as well which dictates if the connection is listed.  Consider it the "header" to the data source.
    Also, in Windows 2003 and 2008 at least, the registry key John C listed is not quite the location to modify either.  This is where to find them in those OSs:
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DSN%
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DSN%
    The "header" I reffered to is a string value in inside a key (not the whole key!)
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources
    The string value is the data source name.  This entry must be removed to remove the data source listing entirely.
    Here are some batch snipets for creating and then removing an odbc data source.  I'm leaving out some premiliary chunks, but you can figure it out from here. If you can't, you probably shouldn't be messing with this stuff in the first place!
    In these scripts, I create and remove a 32-bit data source in either a 32-bit or 64-bit version of windows.  The windows folder variable gets set to either "C:\Windows\System32" or "C:\Windows\SysWOW64" depending on the os.  In case you didn't
    know, on a 64-bit machine there is are also 2 differrent versions of the "ODBC Data Source Administrator" gui tool and the data source lists differ (32-bit vs 64-bit lists).  The 32-bit version on a 64 bit OS is found at "C:\Windows\SysWOW64\odbcad32.exe". 
    The one in the start menu will load the 64-bit version so you will never find your 32-bit connections there.
    Note - for simplicity I use the database name as the user name and and the data source name as well (in case there was any confusion). 
    Create the connection like so:
    echo Creating 32-Bit System ODBC Connection "%DatabaseName%"...
    "!WindowsFolder!\ODBCCONF.EXE" CONFIGSYSDSN "!ODBCDriver!" "DSN=%DatabaseName%;Server=localhost;Port=3306;Database=%DatabaseName%;UID=%DatabaseName%;PWD=%DatabasePassword%"
    And then remove it like this:
    echo Removing 32-Bit System ODBC Connection "%DatabaseName%"...
    if "%WindowsBits%"=="32" (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    ) else (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    If Exist "!TempRegFile!" Del "!TempRegFile!"

  • Unable to create sample schema using response file

    Installed oracle 11g r1 on Linux server using response file (silent mode). I wanted to install the sample schema for testing so I updated the sample_schemas section in $ORACLE_HOME/assistants/dbca/templates/dbcreate.dbc
    <option name="SAMPLE_SCHEMA" value="true">
    <tablespace id="USERS"/>
    </option>
    After the installation I noticed sample schemas HR, SH were not created.
    -     Do we have to manually create the sample schemas by running the individual scripts?
    -     Also could not find the master script mksample.sql in the $ORACLE_HOME/demo/schema directory.
    Please let me know if I am missing any parameter in dbcreate.dbc.
    Thank you,

    user504183 wrote:
    Installed oracle 11g r1 on Linux server using response file (silent mode). I wanted to install the sample schema for testing so I updated the sample_schemas section in $ORACLE_HOME/assistants/dbca/templates/dbcreate.dbc
    <option name="SAMPLE_SCHEMA" value="true">
    <tablespace id="USERS"/>
    </option>
    After the installation I noticed sample schemas HR, SH were not created.
    -     Do we have to manually create the sample schemas by running the individual scripts?
    -     Also could not find the master script mksample.sql in the $ORACLE_HOME/demo/schema directory.
    Please let me know if I am missing any parameter in dbcreate.dbc.
    Thank you,You can't install manually the sample schemas since they come in a "pluggable tablespace" Examples which is automatically appended to your database by DBCA. If you would miss choosing the option for the same, you would need to get them created through the Examples Media CD and follow the instructions given here.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28328/installation.htm#I4367
    HTH
    Aman....

  • Error while loading data to ASO database using rules files and buffer id

    Hello all,
    While loading the data to our ASO cube from a data file and using a server rules file, I am getting a warning: "Incorrect Syntax near ['$'] ". But my script no where mentions the usage of $. Also the console throws no error while loading the data. It displays the progress bar 0-100% while the data is being loaded, but actually no data is getting loaded (when retrieval is checked). Also the script is unable to form any log file or error file. Can anyone throw some light what might be the reason behind this kind of data load behaviour.
    Thanks in advance.
    Amit

    is that the real script? I don't see you using any parameter. (That's where $ comes to play). Try a double quote with echo (I never used echo in MaxL)
    Also don't post passwords and server names on a forum.
    Regards
    Celvin
    http://www.orahyplabs.com

  • How to generate PDF using FDF file and the PDF form template (PHP)

    Hi Folks,
    I'm really sorry that I couldn't follow all the valuable discussions going on here, regularly. I need some immediate help.
    I NEED A PHP SOLUTION. I'm able to generate FDF files using the PDF Form Template in PHP. So, I have a collection of FDF files, which seeks the PDF template, while opened and populates the template with FDF data. Now if I need to save this PDF file, I have to do it manually clicking SAVE option. But, I need to convert FDF to PDF in bulk. So, I need some PHP based solution. The PHP script takes the PDF template and the FDF file and merges them to generate a complete populated PDF file. I know it's possible, but don't know how. I've seen Adobe FDF Toolkit. But by default it doesn't show any guideline for PHP. Please help me to write this code. I'm a professional coder. I can understand your hints and tutorials. PLEASE HELP GOOD PEOPLE.

    The only reason I am responding to this post is because the poster sent me a request through the forum message system asking for my help.
    Although I did populate PDFs with FDF data generated by web forms a year or so ago, I have since abandoned that kind of solution. It was a big headache. I found it far more stable and flexible to use html, php and css to populate forms that are almost as nice looking as PDFs.
    So my advice is, if you can possibly avoid going the FDF/PDF route, you will be better off.

  • Which application uses that file and prevents emptying the Trash?

    Hi,
    This has been with the OS for quite some time. Every once in a while, when trying to empty the trash, I get the error message:
    "The operation can’t be completed because the item 'filename.estension' is in use."
    How useless is that? Now, if OS X told me which application is using it, I could close that one application, delete the file, and get back to work. Sometimes, I can guess the application as the one I actually last used to access that file. But every so often, it's the Finder's "quick look," but every once in a while, I just haven't the clue.
    So, is there an OS function (even if a UNIX/terminal command) or a utility that can tell me the application that is still using the file in the Trash?
    Thanks, Tristan

    Hi,
    OK, to clarify: yes I use Lion (OS X 10.7.4) and I'd rather not close all applications. With Lion, I can just as well log out (which will close them) and log back in (which will reopen them). But, you realize that this is using a bulldozer to swat a mosquito: somewhere in the bowels of the OS X/UNIX, there is a "file in use" message from some application/process, which has not been cancelled (either because the application/process is really holding the file open or because the application/process has failed to clear the "file in use" flag).
    A similar "feature" of OS X is when it prevents you from ejecting a volume because "it is in use." In that case, the "What's keeping me?" utility (by HAMSoft Engineering) comes to rescue, unearths the relevant culprit and reports it to the user. Yes, OS X should be doing it all by itself, but the 3rd party utility is just fine.
    So, isn't there a way to unearth this info?

  • How to Use PHP Files and .tpl files

    I have taken a course and it includes a resource section with templates that I can use. These templates are squeeze page ones and inside the folder are index.php, config.php and a whole lot of .tpl files that open up in empty Stickies on my Mac.
    Can someone explain how to use these files. When I open them in Dreamweaver I see code related to the php files but I can't browse the index.php file in a browser to see what the so called sqeeze page looks like.
    Yikes I'm really lost here.
    thanks
    John

    ORA-06401, 00000, "NETCMN: invalid driver designator"
    Cause: The login (connect) string contains an invalid driver designator.
    Action: Correct the string and re-submit.
    The //ip:port/sid connect string will only work with 10g clients.
    Check your tnsnames.ora file. Does the file have control characters or missing carriage-return characters ? (Maybe you ftp'd the file from a unix box ?)
    I would suggest that you create a new tnsnames.ora - hand edit it (don't copy the old one). If you have sqlplus client - try using it to connect to the remote DB first.
    The instructions for connection to a local or remote DB are all the same (when using plain OCILogon) because the connection is made over TCP.

  • Can you link URLs within pages when publishing a magazine using PDF file and the script create_indd.jsx?

    This magazine is just a simple PDF replica of our print magazine but I want to the URLs linked when I am viewing it on the iPad and Android devices. Is this possible?

    So I just checked. All that script does is place PDFs into InDesign files. InDesign treats PDFs as static artwork so my answer stands.
    You’ll have to open the individual InDesign files and add the hyperlinks.

  • How can i modify or delete desktop files and folders in Mac OS 10.6.8 ?

    i have Macbook pro running on Mac OS X, Snow Leopard ver. 10.6.8 . I am not able to delete rename and modify my desktop folder and files. even through the admin account and all previleges i cant move them to Thrash. as i try to delete them it asks for password and then no action takes place. i have even used repair permissions from disk utility, used the terminal window method but nothing happened. the "get info " shows read and write permision but still i cannot even rename them there.. can anyone please help me ?

    Is the Desktop folder inside the Users -> Yourname folder with the same contents of your Desktop?  If it isn't, then you've moved the Desktop folder to a place that can't be accessed by the account called Yourname.

  • Why folder "Date Modified" doesn't reflect files and subfolders?

    Hello.
    I have a folder with a "Date Modified" of March 2, 2010.
    When I open the folder, I see subfolders and files with more recent dates (...like April 7, 2010).
    Isn't the folder "Date Modified" supposed to change with the changing of contents held within the folder?

    Hi. So here goes my story. I'm allways keep my MacMini turned on at night. So I work late and re-start working at the day after. And than... voilá: the files I modify are displayed as "Today" modified, instead "Yesterday". During my work, sometime, the file list is refreshed and starts to display the correct date modified. At this middle time, some bizarre lists appears, like a "Today" after "Yesterday" in the list - the order becomes messed as I modify another files.
    In my case, webdesign & programming, I use the FTP (Fetch) app to browse local files inside apache's root folder, and Fetch never mess with date modified listing. I's a way out if I'm hurry.
    The point is the system is not given high priority to finder's file list as before, becouse this can slow down your mac if there is a lot of windows opened. They should put a refresh button when they made this modification, but those who work in programming knows this thing - fix this bug here, make another one somewhere...

Maybe you are looking for

  • CS3 color management won't match prints

    Okay, I know there are a lot of boneheds who can't figure out how to set up color in Bridge and CS3 but I am at my wits end on this so bear me out. Windows XP and CS3 Bridge is set to; Enable color management in Bridge RAW conversion is SRGB CS3 colo

  • Using EVOM to transfer MPEG-2 files from camcorder to mac

    I have a Sony Handycam and used EVOM to transfer the files (MPEG-2) to the mac iMovie.  The date and time the clip was imported is being used to organize the clips, but I want the date and time the video was taken.  Is there a way to do this so that

  • How to get photos of of iPhone 4s

    how do you get photos off of Iphone.  it no longer shows up as a device

  • Macbook 2013 high resolution?

    If I connect my macbook to philips television then suddenly my native screen goes into 1920 resolution (probably scaled). Can I without the external monitor set the high resolution?

  • ConfigFree Autoswitch wireless to wired lan

    I use laptop on office wired Lan then at home on wireless lan. I have set auto network switch to switch networks. Then I have set auto profile switch using SSIS and saved a home wireless LAN profile that changes proxy and printer. It all works when g