Rename entry

Hi!
I'm trying to rename entries of my openldap directory, but when I do 'ctx.rename("uid=nom1,ou=People","uid=nom2,ou=People);' I've got the Exception : NameAlreadyBoundException, whereas It's a new rdn????
Could someone explain my what's the problem???
Tanks a lot !
Lucie

whether u want to rename or rebindI want to have exactly the same entry, with a new name : rename isn't what I have to do? If I do a rebind,and unbind the old entry, I will do exactly the same work as the work of a rename, won't I???

Similar Messages

  • Problem renaming entry

    Running following code to rename entries:
    Hashtable hashtableEnvironment = new Hashtable();
    hashtableEnvironment.put(
    Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory"
    hashtableEnvironment.put(
    Context.PROVIDER_URL, "ldap://ip:port"
    Hashtable env;
    //read parameters from properties file
    readParameters();
    env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,initialContextFactoryLDAP);
    env.put(Context.PROVIDER_URL,providerUrlLDAP);
    env.put(Context.SECURITY_PRINCIPAL,securityPrincipalLDAP);
    env.put(Context.SECURITY_CREDENTIALS,securityCredentialsLDAP);
    env.put("java.naming.ldap.version","3");
    DirContext dirContext = new InitialDirContext(env);
    String DNa = "o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi";
    String DNb = "ou=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi";
    dirContext.rename(DNa, DNb);
    dirContext.close();
    Exception follows:
    javax.naming.InvalidNameException: o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=A
    mmattilaiset, c=fi: [LDAP: error code 64 - Update Error: Naming Violation]; rema
    ining name 'o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi'
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.c_rename(Unknown Source)
    at com.sun.jndi.toolkit.ctx.ComponentContext.p_rename(Unknown Source)
    at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(Unknown Sourc
    e)
    at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(Unknown Sourc
    e)
    at javax.naming.InitialContext.rename(Unknown Source)
    at LDAP.main(LDAP.java:64)
    Renaming the leaf-node goes well, but any middle-node brings the above exception.
    The LDAP server is providing both versions 2 and 3 simultaneusly. The admin tells me its ok and that there should be no problem with the server maybe being restricted to v2... Anyone had similar case? Any ideas would be appreciated.
    Thanks,
    Igor

    Little more specifically about the above question; renaming just the leaf name works fine, but changeing any node-type (= o --> ou) gives problems.
    Igor

  • Understanding open syscall on FIFO with dtrace

    Hi all,
    I'm trying to understand open syscall behaviour with respect to FIFOs using dtrace. We have a very intermittent failure with FIFOs, when writer process fails in opening pipe, but reader succeeds. I tried debugging with dtrace and found some weirdness in the failing condition. I'd appreciate if you can throw some light.
    Program desc:
    READER opens in blocking mode (O_RDONLY = 0)
    WRITER opens in non-blocking mode (O_WRONLY | O_NONBLOCK = 1 + 128 = 129)
    During failure conditions open() returns -1 to writer (non-blocking call) but reader gets a valid file descriptor.
    Please find below the filtered dtrace output (sorted by timestamp - I have stripped off some trivial information)
    {color:#999999}timestamp walltimestamp pid tid exe probe func fifo flag/return-value errno
    ===========================================================
    Failure:
    1103747969678386 2009 Aug 12 06:22:56 20656 1182 reader open entry /data/fifo1 0 0
    1103747970243629 2009 Aug 12 06:22:56 6702 14 writer open entry /data/fifo1 129 0
    1103747970401069 2009 Aug 12 06:22:56 20656 1182 reader open return /data/fifo1 48 0
    1103747970413489 2009 Aug 12 06:22:56 6702 14 writer open return /data/fifo1 -1 6{color}
    {color:#999999}In a successful open, dtrace outs like below:
    1103747860071143 2009 Aug 12 06:22:56 20656 1235 reader open entry /data/fifo2 0 0
    1103747880222083 2009 Aug 12 06:22:56 6702 14 writer open entry /data/fifo2 129 0
    1103747880376943 2009 Aug 12 06:22:56 6702 14 writer open return /data/fifo2 23 0
    1103747880394596 2009 Aug 12 06:22:56 20656 1235 reader open return /data/fifo2 49 0{color}
    I saw that errno=6 is the expected error returned by a non-blocking fifo open when there's no reader on pipe.
    Our assumption is Synchronization by open(FIFO) by reader and writer should be taken care by the OS, which implies when writer gets a valid FD, the reader must also get a valid fd. On this assumption, our guess is there's an intermittent problem with open() implementation.
    I'd appreciate if someone can confirm above, or if our assumption is wrong, or any points on further debugging.
    Thanks,
    KR
    Other details:
    *uname -a</s
    <p>SunOS xxxx 5.10 Generic_125100-09 sun4v sparc SUNW,Sun-Fire-T200
    D script:*
    syscall::open:entry, syscall::creat:entry,
    syscall::open64:entry, syscall::creat64:entry,
    syscall::unlink:entry, syscall::rename:entry
    printf("%u %Y %5d %5d %5d %5d %5d %-12s %-10s %-10s %25s %d %s %d %d\n",
    timestamp,walltimestamp, pid, tid, execname, probefunc,probename, copyinstr(arg0), arg1, errno);
    self->file=arg0;
    syscall::open:return, syscall::creat:return,
    syscall::open64:return, syscall::creat64:return,
    syscall::unlink:return, syscall::rename:return
    printf("%u %Y %5d %5d %5d %5d %5d %-12s %-10s %-10s %25s %d %s %d\n",
    timestamp,walltimestamp, pid, tid, execname, probefunc,probename, stringof(copyinstr(self->file)),arg1,errno);
    self->file = 0;

    Hi all,
    Any thoughts on this would help.
    @ Moderator,
    Please let me know if this should be moved another forum.
    Thanks,
    KR

  • OVD Adapter Configuration

    We have created two different OU using LDAP adapters for two separate AD’s and configured under one Tree Top adapter in OVD. In user profile we have a user attribute email which is common in both the OU’s. As a requirement, we want to populate the user attribute from one OU to a custom OVD attribute in another OU based upon the common attribute email

    Hey,
    Did you try Shadow Joiner? The Shadow Joiner works by encoding all primary adapter DN's into a hash that can be used to locate the joined entry in the joined adapter without needing to perform a search. When the Shadow Joiner fails to locate a corresponding record in the Join View adapter, it automatically creates a new one, storing designated attributes in the joined adapter. As much as possible, the Shadow Joiner operates transparently to the application, taking care of creating and renaming entries in sync with that of the primary adapter.
    I hope this helps.
    Thiago Leoncio Guimaraes

  • OVD - Suppress OU's in Adapter

    Hello,
    I have a requirement to suppress a series of OU's in an LDAP Adapter.
    I am federating two separate Active Directories in which one is a subset of the other.
    I want my final federated OVD LDAP to look like this:
    dc=federated,dc=com
    + Root
    + + OU=Users
    + + OU=Groups
    LDAP 1 (PRIMARY) - has ALL of the User Accounts
    dc=primary,dc=com
    + Root
    + + OU=Active
    My adapter for this one has its namespace set to a self defined Users OU (e.g OU=Users,dc=example,dc=com)
    LDAP 2 (SECONDARY) - has a subset of users and the groups I am interested in
    dc=secondary,dc=com
    + Root
    + + OU=Users
    + + OU=Groups
    + + OU=UnwantedOU1
    + + OU=UnwantedOU2
    Essentially, I only need the Groups from this adapter and my first attempt was to set the source to the Groups OU.  However, this was unsuccessful, because the members attribute was populated with the RDN of the source (secondary.com) LDAP not the federated namespace (federated.com).  There was no conversion because the Users OU was not included in the Source.  So, I changed the secondary to pull in from the root and put the members attribute in the DN box on the general tab and the members attribute was now correct.
    I then created a Join Adapter between the primary and the secondary which federated the users under the Users OU in the new federated namespace.  It all works correctly, I used the membersOf attribute from the Secondary and suppressed it on the primary and everything is mapped.
    My issue now is that since I had to set up the secondary from the root, I now have OU's in the federated LDAP that have to be removed/suppressed due to security reasons.  Is there any plugin or method that can be utilized that will get rid of the UnwantedOU1 and UnwantedOU2 from either the secondary adapter or the Join Adapter.

    Hey,
    Did you try Shadow Joiner? The Shadow Joiner works by encoding all primary adapter DN's into a hash that can be used to locate the joined entry in the joined adapter without needing to perform a search. When the Shadow Joiner fails to locate a corresponding record in the Join View adapter, it automatically creates a new one, storing designated attributes in the joined adapter. As much as possible, the Shadow Joiner operates transparently to the application, taking care of creating and renaming entries in sync with that of the primary adapter.
    I hope this helps.
    Thiago Leoncio Guimaraes

  • I tried to update lightrooom 5 to version 5.5. but I cannot install the update as I always get the error that adobe_lightroom_x64.msi cannot be found. I have downloaded the installation file with other browsers buit it didn't help. I can't even deinstall

    I'd appreciate any help.

    Denge75 it sounds like there is an improper entry within your registry for Photoshop Lightroom.  I would recommend uninstalling Lightroom 5.3.  Once removed then please also use the Microsoft Fixit utility at Fix problems that programs cannot be installed or uninstalled to remove any renaming entries for Photoshop Lightroom.
    You should then be able to download and install Lightroom 5.5 directly from Adobe - Lightroom : For Windows.

  • Trade offs for spreading oraganizatons across suffixes - best practices?

    Hey Everyone, I am trying to figure out some best practices here. I'v looked through the docs but have not found anything that quite touches on this.
    In the past, here is how I created my directory (basically using dsconf create-suffix for each branch I needed)
    dsconf list-suffixes
    dc=example,dc=com
    ou=People,dc=example,dc=com
    ou=Groups,dc=example,dc=com
    o=Services,dc=example,dc=com
    ou=Groups,o=Services,dc=example,dc=com
    ou=People,o=Services,dc=example,dc=com
    o=listserv,dc=example,dc=com
    ou=lists,o=listserv,dc=example,dc=com
    A few years later, learning more, and setting up replication, it seems I may have made my life a bit more complicated that it should be. It seems i would need many more replication agreements to get every branch of the tree replicated. It also seems that different parts of the directory are stored in different backend database files.
    It seems like I should have something like this:
    dsconf list-suffixes
    dc=example,dc=com
    Instead of creating all the branches as suffixes or sub-suffixes, maybe i should have just created organization and organizational unit entries within a single suffix "dc=example,dc=com". This way I can replicate all data by replicating just one suffix. Is there a downside to having one backend db files containing all the data instead of spreading it across multiple files (were talking possibly 90K entries across the entire directory).
    Can anyone confirm the logic here or provide any insight?
    Thanks much in Advance,
    Deejam

    Well, there are a couple of dimensions to this question. The first is simply whether your DIT ought to have more or less depth. This is an old design debate that goes back to problems with changing DNs in X500 style DITs with lots of organizational information embedded in the DN. Nowadays DITs tend to be flatter even though there are more tools for renaming entries. You still can't rename entries across backends, though. The second dimension is, given a DIT, how should you distribute the containers in your DIT across the backend databases.
    As you have already determined, the principal design consideration for your backend configuration will be replication, though scalability and backup configuration might also come into it. From what you have posted, though, it does not look like you have that much data. So yes, you should configure database backends and associated suffixes with sufficient granularity to support your replication requirements. So, if a particular suffix needs to be replicated differently than another suffix, they need to be defined as distinct suffixes/backends. Usually we define the minimal number of suffixes and backends needed to satisfy the topological requirements, though I can imagine there might be cases where suffixes might be more fine grained.
    For large, extensible Directory topologies, I usually look for data that's sensibly divisible into "building blocks". So for instance you might have a top-level suffix "dc=example,dc=com" with a bunch of global ACIs, system users and groups that are going to need to be everywhere. Then you might have a large chunk of external customer data, and a small amount of internal employee data. I would consider putting the external users in a distinct suffix from the employees, because the two types of entries are likely to be quite different. If I have a need to build a public Directory somewhere, all I have to do is configure the external suffix and replicate it. The basic question I would be asking there is if I might ever need to expose a subset of the Directory, will the data already be partitioned for me or will I have to do data reorganization.
    In your case, it does not look likely you will need to chop up your data much, so it's probably simpler to stay monolithic and use only one backend.

  • RDN change with ldapmodify

    Folks,
    SUN DS 5.2 patch 6
    I am trying to (using ldapmodfy) change users RDN, eg
    From: uid=jesinger, ou=People, o=education.ucsb.edu
    TO: uid=jesinger, ou=Disabled, o=education.ucsb.edu
    My understanding is that this IS supported on patch 3 and later of the 5.2 DS
    Here is what my ldif looks like:
    dn: uid=jesinger, ou=People, o=education.ucsb.edu
    changetype: modrdn
    newrdn: uid=jesinger
    deleteoldrdn: 0
    newsuperior: ou=Disabled, o=education.ucsb.edu
    and here is what transpires, eg the error:
    bash-2.03# ./ldapmodify
    new RDN: uid=jesinger (keep existing values)
    renaming entry uid=jesinger, ou=People, o=education.ucsb.edu
    ldap_rename_s: DSA is unwilling to perform
    What am I missing here? I believe I have the syntax right?
    Any ideas are appreciated !
    -john

    As you know, you cannot use the modify DN operation on versions of Directory Server prior to Directory Server 5.2 2005Q1
    Is MODDN enabled on your directory server? I believe it is disabled by default. Below, you can enable it globally for all suffixes in your directory server.
    This will need to be done for ALL servers in your replication topology.
    ldapmodify -h <hostname> -p <port> -D <user> -w <user_password>
    dn: cn=config,cn=ldbm database,cn=plugins,cn=config
    changetype: modify
    replace: nsslapd-moddn-enabled
    nsslapd-moddn-enabled: on
    First enable MODDN, then you can try your ldif.
    If this doesn't work, you will need to check your ACI's. Refer to the 5.2 Admin Guide.

  • Obtap - An openbox menu generator like none before. (BETA)

    (When I say none before I mean none that I could find. If I could find one, I wouldn't have to make this then. Anyway..)
    Hey guys, I'm here to present my project 'obtap'. It's inspired by obmenugen, a great menu generator written in D which I've used before obtap. The reason I don't use it anymore is because it wasn't as customizable as I'd of liked it to be and that's why I've made obtap.
    I've developed a small (under <150KiB, only using the C++ standard library which means you don't have to install any dependencies) Openbox menu generator that's grown to do many things:
    obtap can generate pipe menus, static menus, a dynamically updating menu (basically a menu with it's contents a pipe menu).
    obtap can easily add separators for menu layout and edit entries in such ways of renaming/merging categories, setting entry categories, renaming entries and deleting entries.
    obtap has command line options to specify menu type (pipe, static, dynamic), the configuration file and the output.
    The selling point, I'd say at least, is that obtap can (but doesn't have to) load desktop files from directories as entries, which you can then process with the above methods.
    Here's my menu:
    That's created using this configuration file:
    # Jookia's obtap configuration file.
    output(~/.config/openbox/menu.xml)
    type(openboxDynamic)
    locations(/usr/share/applications,/usr/share/applications/kde4)
    extensions(desktop)
    obeyOnlyShowIn(GNOME,KDE,XFCE)
    ignoreCategories(GTK,GNOME,Qt)
    alphabetize(true)
    customEntry(Logout;shutdown-dialog.py)
    customEntry(Reconfigure Openbox;openbox --reconfigure;Utilities)
    customEntry(Nitrogen;nitrogen;Settings)
    replaceCategoryName(AudioVideo;Multimedia)
    replaceCategoryName(Game;Games)
    replaceCategoryName(Graphics;Multimedia)
    replaceCategoryName(Utility;Utilities)
    replaceCategoryName(System;Utilities)
    replaceEntryName(GNU Image Manipulation Program;GIMP)
    deleteEntry(Root Terminal)
    deleteEntry(Open Folder with Thunar)
    menuEntry(separator;Applications)
    menuEntry(categories)
    menuEntry(separator)
    menuEntry(entry;Logout)
    Here's how to get it from the GitHub page.
    git clone git://github.com/Jookia/obtap.git
    cd obtap
    make
    bin/obtap -c goodies/example.conf
    openbox --reconfigure
    That'll create a dynamic example menu and update Openbox.
    To edit it, edit example.conf or copy it to ~/.config/obtap.conf and run obtap without the '-c goodies/example.conf'.
    You can also install it by using the PKGBUILD in the goodies folder.
    I don't have much to say. Uh.. Thanks for reading and if you do use it, I'd love to know.
    Last edited by Jookia (2010-11-07 22:35:46)

    Ok here's for the verbose result, it's pointing to "`/.config/obtap.conf" which is resulting
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="root-menu" label="" execute=
    "/home/martin/obtap -c /home/martin/.config/obtap.conf -t openboxpipe -o -"
    />
    </openbox_menu>
    It's have an exactly same results like when you first time invoke obtap before install it to your /usr/bin
    Here's the obtap output schema
    <openbox_pipe_menu>
    <separator label="Applications"/>
    <menu id="menu-utilities" label="Utilities">
    <item label="Shutter">
    <action name="Execute">
    <command>shutter</command>
    </action>
    </item>
    <item label="Bulk Rename">
    <action name="Execute">
    <command>/usr/lib/ThunarBulkRename</command>
    </action>
    </item>
    <item label="UNetbootin">
    <action name="Execute">
    <command>su -c /usr/sbin/unetbootin</command>
    </action>
    </item>
    <item label="Cairo Composite Manager">
    <action name="Execute">
    <command>cairo-compmgr</command>
    </action>
    </item>
    <item label="SUSE Studio Imagewriter">
    <action name="Execute">
    <command>imagewriter</command>
    </action>
    </item>
    <item label="Avahi Zeroconf Browser">
    <action name="Execute">
    <command>/usr/bin/avahi-discover</command>
    </action>
    </item>
    <item label="Htop">
    <action name="Execute">
    <command>htop</command>
    </action>
    </item>
    <item label="Terminator">
    <action name="Execute">
    <command>terminator</command>
    </action>
    </item>
    <item label="GSmartControl">
    <action name="Execute">
    <command>"/usr/bin/gsmartcontrol-root"</command>
    </action>
    </item>
    <item label="GParted">
    <action name="Execute">
    <command>gksu /usr/sbin/gparted</command>
    </action>
    </item>
    <item label="gVim">
    <action name="Execute">
    <command>gvim</command>
    </action>
    </item>
    <item label="Thunar File Manager">
    <action name="Execute">
    <command>Thunar</command>
    </action>
    </item>
    <item label="CoverGloobus">
    <action name="Execute">
    <command>covergloobus</command>
    </action>
    </item>
    <item label="Squeeze">
    <action name="Execute">
    <command>squeeze</command>
    </action>
    </item>
    <item label="Disk Utility">
    <action name="Execute">
    <command>palimpsest</command>
    </action>
    </item>
    </menu>
    <menu id="menu-settings" label="Settings">
    <item label="Notifications">
    <action name="Execute">
    <command>xfce4-notifyd-config</command>
    </action>
    </item>
    <item label="Openbox Configuration Manager">
    <action name="Execute">
    <command>obconf</command>
    </action>
    </item>
    <item label="TintWizard">
    <action name="Execute">
    <command>tintwizard</command>
    </action>
    </item>
    <item label="File Manager">
    <action name="Execute">
    <command>thunar-settings</command>
    </action>
    </item>
    <item label="Removable Drives and Media">
    <action name="Execute">
    <command>/usr/lib/xfce4/thunar-volman-settings</command>
    </action>
    </item>
    <item label="Qt Config ">
    <action name="Execute">
    <command>/usr/bin/qtconfig</command>
    </action>
    </item>
    <item label="CoverGloobus Configuration">
    <action name="Execute">
    <command>covergloobus-config</command>
    </action>
    </item>
    <item label="Preferred Applications">
    <action name="Execute">
    <command>libfm-pref-apps</command>
    </action>
    </item>
    <item label="Customize Look and Feel">
    <action name="Execute">
    <command>lxappearance</command>
    </action>
    </item>
    </menu>
    <menu id="menu-network" label="Network">
    <item label="IcedTea Web Start">
    <action name="Execute">
    <command>/usr/bin/javaws</command>
    </action>
    </item>
    <item label="Avahi VNC Server Browser">
    <action name="Execute">
    <command>/usr/bin/bvnc</command>
    </action>
    </item>
    <item label="Firefox - Safe Mode">
    <action name="Execute">
    <command>firefox -safe-mode</command>
    </action>
    </item>
    <item label="Avahi SSH Server Browser">
    <action name="Execute">
    <command>/usr/bin/bssh</command>
    </action>
    </item>
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    </action>
    </item>
    <item label="Midori">
    <action name="Execute">
    <command>midori</command>
    </action>
    </item>
    <item label="XChat IRC">
    <action name="Execute">
    <command>xchat</command>
    </action>
    </item>
    <item label="Pidgin Internet Messenger">
    <action name="Execute">
    <command>pidgin</command>
    </action>
    </item>
    </menu>
    <menu id="menu-development" label="Development">
    <item label="Qt Designer">
    <action name="Execute">
    <command>/usr/bin/designer</command>
    </action>
    </item>
    <item label="CMake">
    <action name="Execute">
    <command>cmake-gui</command>
    </action>
    </item>
    <item label="Qt Linguist">
    <action name="Execute">
    <command>/usr/bin/linguist</command>
    </action>
    </item>
    <item label="OpenJDK Monitoring &amp; Management Console">
    <action name="Execute">
    <command>/usr/bin/jconsole</command>
    </action>
    </item>
    <item label="Geany">
    <action name="Execute">
    <command>geany</command>
    </action>
    </item>
    <item label="Qt Assistant">
    <action name="Execute">
    <command>/usr/bin/assistant</command>
    </action>
    </item>
    <item label="OpenJDK Policy Tool">
    <action name="Execute">
    <command>/usr/bin/policytool</command>
    </action>
    </item>
    </menu>
    <menu id="menu-multimedia" label="Multimedia">
    <item label="Document Viewer">
    <action name="Execute">
    <command>evince</command>
    </action>
    </item>
    <item label="DeaDBeeF">
    <action name="Execute">
    <command>deadbeef</command>
    </action>
    </item>
    <item label="Mirage">
    <action name="Execute">
    <command>mirage</command>
    </action>
    </item>
    <item label="VLC media player">
    <action name="Execute">
    <command>vlc</command>
    </action>
    </item>
    <item label="GIMP">
    <action name="Execute">
    <command>gimp-2.6</command>
    </action>
    </item>
    </menu>
    <menu id="menu-openbox" label="Openbox">
    <item label="Reconfigure Openbox">
    <action name="Execute">
    <command>openbox --reconfigure</command>
    </action>
    </item>
    </menu>
    <separator/>
    <menu id="menu-openbox" label="Openbox">
    <item label="Reconfigure Openbox">
    <action name="Execute">
    <command>openbox --reconfigure</command>
    </action>
    </item>
    </menu>
    <item label="Logout">
    <action name="Execute">
    <command>shutdown-dialog.py</command>
    </action>
    </item>
    </openbox_pipe_menu>
    I guess the problem is "Htop" is a CLi program and normally when i want to invoke unetbootin / imagewriter, i'm using "gksu <command>" using manual menu.xml configuration.
    Hope it's help

  • Track dir removal by any means

    Hi Guys,
    I'm new (& self-taught) to DTrace and needed to write a program to track a specified dir and find out who/when/how etc if it got removed/renamed etc.
    As you can see from the below code, I've been caught by 1 or 2 gotchas during my testing. This is a serious prog, going into production asap, so any comments towards making it better/more robust would be appreciated.
    Cheers
    Chris
    # Desc    : Track dir deletions of specified dir in specified zone.
    #           Attempts to handle path issues on cmd and/or dir/dir.
    #           Tries to catch any form of removal eg shell cmds:
    #           rm, rmdir, unlink, mv and 'internal' code cmds inside Perl, C etc.
    #           Note that normally this prog is controlled by
    #           dt_dir_removal_mgr.pl, which reads the stdout & stderr,
    #           filters false positives etc & logs and emails any alerts.
    #           We do not allow the path of the tgt dir to be used,
    #           as this may not be specified by the offending user/app...
    #           thus we may get some false positives eg a file of the same name.
    #           Local zonename is avail from DTrace, but filesystem and inode
    #           are not avail from psinfo struct.
    #           Not matching on zone because tgt dir can be deleted from global,
    #           although the users should not be able to get in there.
    usage()
        echo "USAGE: dt_dir_removal.sh -d dirname -z zonename
                -d dirname      # dirname to track : must NOT inc path
            eg,
                dt_dir_removal.sh -d testdir
        exit 1
    # --- Process Arguments ---
    # Arg supplied ?
    if [[ $# -eq 0 ]]
    then
        usage
    fi
    # Check switch value & arg value : see usage()
    while getopts d: name
    do
        case $name in
        d)  dirname=$(basename $OPTARG) ;;
        *)  usage ;;
        esac
    done
    # --- DTrace ---
    # NB: seem to need the single quotes around the DTrace code ...
    # This also means the even the contents of comment blocks CANNOT have single quotes
    # in them eg don't, won't etc... (sigh...)
    /usr/sbin/dtrace -n  '
    /* Params from shell input */
    inline string DIRNAME  = "'$dirname'";
    #pragma D option quiet
    #pragma D option switchrate=10hz
      * Print header
    dtrace:::BEGIN
        /* print main headers: We cannot line up final arg hdr exactly
         * because the cmd len varies
        printf("%-20s %-12s %5s  %5s  %6s  %6s  %s -> %s\n",
               "TIME", "ZONE", "GID", "UID", "PID", "PPID", "CMD", "TARGET") ;
      *  Check exec event type
    syscall::unlink:entry
        /* Grab the dirname in qn to test later: remove any preceding path */
        /* Experiment seems to indicate unlink will not have this value in the return state ;
         * contrast with rmdir below which may not have it in entry state
        tgt = basename(copyinstr(arg0));
    /* http://docs.sun.com/app/docs/doc/817-6223/6mlkidlrg?l=en&a=view#indexterm-458 :
    * Avoiding Errors
    * The copyin() and copyinstr() subroutines cannot read from user addresses which have not yet
    * been touched so even a valid address may cause an error if the page containing that address
    * has not yet been faulted in by being accessed.
    * To resolve this issue, wait for kernel or application to use the data before tracing it.
    * For example, you might wait until the system call returns to apply copyinstr()
    syscall::rmdir:entry, syscall::rename:entry
        /* Try saving a ptr to the relevant value for later, otherwise it gives invalid addr error
         * in return section below
        self->file = arg0;
    syscall::rmdir:return, syscall::rename:return
        /* Grab the dirname in qn to test later: remove any preceding path */
        tgt = basename(copyinstr(self->file));
    /* Not matching on zone because tgt dir can be deleted from global,
    * although the users should not be able to get in there.
    syscall::rmdir:return, syscall::rename:return, syscall::unlink:return
    / DIRNAME == tgt /
        /* Print the field values. The TARGET tends not to line up as we
           print the cmd and the target name for completeness. For a shell level cmd,
           we will get the target name in the CMD field as well. For an "internal" cmd,
           eg rmdir() from within perl, the CMD field does not contain the target value.
        printf("%-20Y %-12s %5d  %5d  %6d  %6d  %s -> %s\n",
                walltimestamp, zonename, gid, uid, pid, ppid,
                curpsinfo->pr_psargs, tgt ) ;
        /* Clear the self->file ptr to avoid dynamic variable drop errors */
        self->file = 0;
    '

    Hi,
    I started by looking at that originally, but it didn't seem to be capable of just doing the very fine tracking I wanted; just one dir that's unlikely to be removed, but when it is we need to know IMMEDIATELY and incidentally by whom and how.
    BSM/audit seemed to only be able to audit at a much higher/coarser level and would generate a lot of logging and you'd be looking at it after the fact.
    My soln works nicely generally, but I have just got this
    dtrace: error on enabled probe ID 6 (ID 11792: syscall::rename:return): invalid address (0x0) in action #1 at DIF offset 28I've got a ctrl prog that keeps an eye on the DTrace prog and just restarts it if this happens. Seems to work ok, but I'm going to have another look at solving that error...
    Cheers
    Chris

  • Using Windows 8 64 bit Premiere Elements 12 , motion tracker gives me the folloing error; The media file seems to have an invalid entry in the catalog, please rename it for use.

    I'm trying to put a graphic over an object, but I keep getting this error message; The media file seems to have an invalid entry in the catalog, please rename it for use.

    Lonesomeless
    Thanks for the reply.
    I checked the link that I posted back in post 3 of your thread. It is working with at least Firefox and Chrome.
    ATR Premiere Elements Troubleshooting: PE12: Motion Tracking/What To Use To Track Object?
    What browser are you using?
    The blog post contains significant information related to Premiere Elements 12 Motion Tracking. But, if you cannot access it for some reason, then we will need to troubleshoot via communications in the thread.
    SG has asked if you are able to create Motion Tracking effect using one of the graphics included with the program. We will watch for your response to him on that question. Please include in your message to him whether you can obtain your file to track the object using Organizer Tab or Project Assets routes as well as Graphics Tab.
    The following is an excerpt from the blog post referenced....
    SOLUTION
    Various tutorials and online comments have pointed to places other than Graphics Tab where objects can be selected and used to track the moving object in the video when the Motion Tracking workspace is opened in the Expert or Quick workspace.
    Organizer Tab, Expert or Quick workspace to access Elements Organizer 12. Cascade Windows and drag a video or photo from Elements Organizer into the yellow track box of Motion Tracking workspace.
    Project Assets, Expert workspace. Drag text, video, or photos from opened Project Assets into the yellow track box of Motion Tracking workspace.
    Graphics Tab, Expert or Quick workspace. Create a png file (graphic) or prtl file (text) and place it in Clip Arts in the Program Files of the program to have a permanent resource. Then from Graphics Tab, drag the newly created graphic or text object into yellow track box of Motion Tracking workspace.
    Thanks.
    ATR

  • Rename an LDAP entry and all child

    I have an entry in an LDAP tree with the dn
    dn=ou=Customer, c=country, o=Company
    This entry has some child entries. Now I want to rename
    this entry from ou=Customer to ou=Customer_1 and the children
    should move to the new ou.
    Does anyone know how I can do this with the LDAPv2 protocol ?
    Java: 1.4.1_02
    LDAP: Sun Directory Server 5.x
    Thanks

    Hello Matt,
    I found an example to do this thing without the move command.
    It is a recursive function. The function do the following:
    - copy entry from old URL to new URL
    - search for subentries of the old URL and call this
    function with old and new URL of all subentries.
    - delete the old URL
    Thats all.
    The move command is only implemented in some LDAP servers, so I can
    not use this.
    Regards,
    Volker

  • Rename 'Organize Entries' in 'Portal Favorites' menu

    I like to rename standard text  'Organize Entries' in Portal Favorites menu to something else. Does anyone have any suggestions to this problem?
    Thanks,
    Thomas

    Hi Morten,
    Please refer to the following link:
    Deletion of favorites from enterprise portal of BW reports
    In that read the reply given by veronica haze.
    Hope this will help you.
    Regards,
    Jithin

  • Rename the entry into OID

    Hi,
    I am using OIM9.1 and Oracle Internet Directory Connector 9.0.4.1. I am able to provision OID as a resource to user successfully. This will make an entry of a user in OID. Can I rename this entry into OID.
    for example,
    following is the entry of a user in OID
    cn=user1,cn=Users,dc=idc,dc=com
    Can I rename this entry to
    cn=user2,cn=Users,dc=idc,dc=com ?
    Can someone help me in renaming the entry in OID?
    Thanks & Regards,
    Yash Shah

    hi
    issue is resolved by extending the default OOTB OID connector functionality.
    Thanks & Regards,
    Yash Shah

  • SUN/Oracle directory user entry DN rename (move)

    Hi,
    Version FIM2010R2SP1 with latest publicly available hotfix rollup applied.
    Use case: Legacy enterprise directory (SUN iPlanet 5.2)  has users in different (ou) branches under the same tree depending on their current job. If they are transferred to another part of the organisation in the HR system, the requirement is to 
    move their user entry in this directory into a different ou.
    MA/Connector: Out of the box Sun/Oracle directory MA
    e.g. (dn) uid=hsmith001, ou=Sales,o=MyOrg.com
    moved to:
    (dn) uid=hsmith001, ou=Cleaners,o=MyOrg.com
    When the export is run to the connected directory, the "move"
    does actually happen in the connected source (the SUN directory server). So far so good.
    The connector space object is now marked as  'Awaiting export
    confirmation' (which is meant to occur on the next import).
    When an import is run, FIM creates a new connector space object with the new (renamed) dn but retains the existing object . At the same time it reports an error "ambiguous-import-flow-from-multiple-connectors" because it is seeing
    two objects with the same RDN (uid=hsmith). It has marked the original CS object for deletion.
    On the next synch, it says it has successfully deleted the original CS Object, however it is still there (and with the same anchor guid).
    It appears that with this connector connected to Sun Directory v5.1 and newer , you don't get to choose which attribute(s) you use for the anchor - it chooses the dn.
    It's puzzling why this issue exists in a technology set that has been around for years, so we are assuming that there is workaround or solution to this problem.
    N.B. This problem has been replicated on two completely independent environments by different people in our organisation.
    Any help/advice/suggestions would be most welcome.
    David.

    We appear to have resolved this.
    Because the sun directory MA isn't the authoritative source for the Person object then the delete failed because the cs object was still connected to the MV object (unfortunately it failed silently).
    The dn and the anchor being the same (forced by the MA) FIM does an add (for the new renamed object) and delete (for the existing object). At least that's our interpretation.
    The solution is to use an MV extension and in code, disconnect the existing cs object and connect to the directory server and do the move (outside of FIM's knowledge.). Then everything will line up on subsequent import, sync as the disconnected cs.object
    which is no longer reflected in the connected source will be deleted.
    Maybe someone has a better description of this.

Maybe you are looking for

  • Itunes cannot open beacuase it has detected a problem with audio configuration

    i have the same poblem my Itunes cannot open beacuase it has detected a problem with your aduio configuration i saw the answer to that question and i tryed it but my computer was already to those settings and my Itunes is still not working i realy ne

  • Error in simple CQL

    I am trying to implement very simple CEP program.Cep is consist of the following component. 1.Jms adapter named MarketEventInputadapter,which is reading map message data from a simple queue. 2.one input channel named MarketEventInputchannel. 3.one pr

  • Reimport image after modifying in Photoshop CC from Lightroom 5.3

    Tilla week ago I used to work on a PC. When modifying an image from Lightroom into Photoshop 6 the image was automatically reimported in the origin folder, I am now on a MacPro and when I modify an image in Photoshop CC from Lightroom 5.3 it reimport

  • Won't load on XP

    I was excited to download and try LR/4 but completely disappointed that it won't load or run under Window's XP. The error message says that I need Vista or later. The very last thing I would ever to is to "upgrade" to Vista. Adobe, get real! Yes, Win

  • External mice don't function.

    HP G62 Notebook PC Windows 7 64-bit Any external mice i attach to my laptop don't function. They still show up in the driver, but the buttons do not work and it doesn't move the cursor.