Search Entries that exist in both directories--Please help

Hi,
I  have a directory structure like the below. And there is a chance that there are using with same uid in both the directoreis. How can I find the entries that exist in both the directories.
My Directory Structure
    dc=ext,dc=company,dc=com
          ou=internal
                    uid=abc
                    uid=bcd
                    uid=cde
          ou=external
                    uid=xyz
                    uid=abc
                    uid=cnn
How can I find the entries that are both in Internal and external ou's. (like abc in the above example)
Help is highly appreciated.
thanks
Sam

Sam,
You dont have to know anything upfront to discover duplicates with the command I've proposed.
The only thing you need to know is which attribute must be unique (uid in my example)
The output of
ldapsearch -h hostname -p port -D "cn=Directory Manager" -w pass -b "dc=company,dc=com" -s sub "uid=*" uid | grep  "^uid"  | sort | uniq -d
gives you the list of duplicated uids in the 2 branches.
-Sylvain

Similar Messages

  • Hi, since installing mountain lion on my macbook, it wont download pdf files from internet sites, the same problem does not exist on my mac mini, i am using firefox on both macs, please help!

    Hi, since installing mountain lion on my macbook, it wont download pdf files from internet sites, the same problem does not exist on my mac mini, i am using firefox on both macs, please help!

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Problem with my iTunes store, cannot search, stays in one application that I already purchased. Please help!

    Problem with my iTunes store, cannot search, stays in one application that I already purchased. Please help!

    Go to Settings, Store, Apple ID, Sign out and then sign back in again and have another go.
    Also, try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • HT4872 I have not been able to import contacts from google or my android to my new I-phone 5. This article helps to a point until error message "cannot create account" already exist is received. Please help.

    I have not been able to import contacts from google or my android to my new I-phone 5. This article helps to a point until error message "cannot create account ... already exist" is received. Please help.

    -Reece,
    We only have 1 single domain, 1 domain forest, no subdomains, only alias. I had replied to the other post as well. But I am happy to paste it here in case anyone want to read it.
    So, after a few months of testing, capture and sending logs back and forth to Apple Engineers, we found out there is a setting in AD, under User Account that prevent us to log into AD from Mountain Lion. If you would go to your AD server, open up a user account properties, then go to Account tab, the "Do not require Kerberos preauthentication" option is checked. As soon as I uncheck that option, immediately I was able to log into AD on the Mac client. Apple engineers copied all my AD settings and setup a test environment on their end and match exact mine AD environment. They was able to reproduce this issue.
    The bad part about this is... our environment required the "Do not require Kerberos preauthentication" is checked in AD, in order for our users to login into some of our Unix and Linux services. Which mean that it is impossible for us to remove that check mark because most, if not all of them some way or another require to login into applications that run on Unix and Linux. Apple is working to see if they can come up with a fix. Apparently, no one has report this issue except us. I believe most of you out there don't have that check mark checked in your environment... Anyone out there have any suggestion to by pass or have a work around for this?

  • My iphone 5 is disabled and is not being read by itunes, itunes is giving me a prompt of my passcode, but that screen is not showing, please help me able my iphone.

    my iphone 5 is disabled and is not being read by itunes, itunes is giving me a prompt of my passcode, but that screen is not showing, please help me able my iphone.

    +Do a DFU recovery:+
    +1. Open iTunes.+
    +2. Connect the iPhone+
    +3 Press both the home and sleep/wake buttons until the Apple icon appears (ignore the red slider if it shows).+
    +4. Continue pressing the home button alone until iTunes sees your phone in recovery mode.+
    +5. Follow the prompts to restore the iPhone.+
    If not, take it down to mobile dealers that can reset your phone for you. All data will be lost.

  • In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    It will be backed up on your computer and can later be restored to an iOS device using iTunes, if desired.  Of course, if your hard drive crashes you'll lose it if it isn't backed up somewhere else.  If you want to included it in your computer backup, it will be located at one of the following locations:
    Mac OS X: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • How do I pay for my storage plan when I don't have a credit card? Last year I used an iTunes voucher but can't find that option this year. Please help!

    How do I pay for my storage plan when I don't have a credit card? Last year I used an iTunes voucher but can't find that option this year. Please help!

    Create an iTunes credit by redeeming a gift card and it will be charged to your credit.  From http://support.apple.com/kb/ht4874:
    "payment methods accepted include iTunes store credit, credit cards, and debit cards"

  • TS1363 My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue?

    My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue? I have already updated to the latest version of iTunes on my Windows 8 and I cannot synchronize my iPod for the time being. Please do help me to solve this problem. Thank You.

    uninstall all iTunes,5 programes,this worked for me after reinstall them

  • TS3694 hi, I was trying to update my iPhone 3gS but when I turn it on again iTunes send me a message that says error 3194 occurs, please help me!!

    hi, I was trying to update my iPhone 3gS but when I turn it on again iTunes send me a message that says error 3194 occurs, please help me!!

    If the screen shows a plug going to itunes, then you have no choice,  It's in recovery mode.  You'll be given the chance to restore from a backup either from itunes or icloud.
    I assume when you got the message to update (was this for the ios or update some apps?), that was before the device when dead.  At any rate, doing a restore does not change the ios.

  • My computer(A toshiba) crashed and when I bought a new computer(a Mac), my previous apple ID does not word and I was only able to get songs that I bought in 2004. I am unable to authorize my account to get to songs that I purchased recently. Please help.

    My computer(A toshiba) crashed and when I bought a new computer(a Mac), my previous apple ID does not word and I was only able to get songs that I bought in 2004. I am unable to authorize my account to get to songs that I purchased recently. Please help.

    Steve Taylor1 wrote:
    If you have exceeded your allowance of 5 machines then Apple will not allow you to authorise additional Computers. If you still have access to your old toshiba fire it up de-authorise it and then try again with the new computer.
    While this won't help if you are having password problems, I did want to point out that you do not need to access old machines to de-authorize them. Once you are signed in at the iTunes store, access "my account" by clicking on your username in the top navigation bar. Then "manage devices".  You can remove any old machines that way.

  • My iphone won't pass the connect to itunes. when i try to restore is says that there is an error. please help!

    hi my iphone is broken. it won't pass the connect to itunes. when i try to restore is says that there is an error. please help!
    thanks,
    jg2013
    <Subject Edited by Host>

    Hello, 02633. 
    Thank you for visiting Apple Support Communities. 
    If your iPhone is disabled, you will need to process the steps in the article below.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Cheers,
    Jason H.

  • I have a really really big problem to my iphone icloud please help me i could send you my birth certificate for confirmation that im the real user please help me

         i have a really really big problem to my iphone icloud please help me i could send you my birth certificate for confirmation that im the real user please help me apple.corp and please tell me if this is not possible to be done it almost a month that i cant use my iphone.
         thank you for those who read this
    <Email Edited by Host>

    Remove your email address.  This is a public website, and you are addressing thousands of strangers.
    After doing that, tell us what your issue actually is.  This is a user-to-user technical forum.  You are not addressing Apple here.

  • My iphone automatically locked and it does not open again,but if u call the sim that was inserted you will hear that it was active,so please help me how to open my iphone 4,no display appeared if you touch the switch button

    my iphone automatically locked and it does not open again,but if u call the sim that was inserted you will hear that it was active,so please help me how to open my iphone 4,no display appeared if you touch the switch button,

    Hello arlyn-cavite,
    If the screen is not showing anyting when you press any of the buttons you may want to try these steps.
    From article iPhone: Hardware troubleshooting http://support.apple.com/kb/ts2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 15 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Take care,
    Sterling

  • Why i Can't activate my iphone just because idont own the apple id  i dont ever know  how the email is even a password that make no sens  apple please help me i will tell you my model  my FCC ID , IC and IME

    Why i Can't activate my iphone just because idont own the apple id  i dont ever know  how the email is even a password that make no sens  apple please help me i will tell you my model  my FCC ID , IC and IME

    If the phone was previously owned and is locked to that owner's Apple ID the ONLY way you can activate it is to get that person to release Activation Lock. This is an antitheft feature of the phone; stolen phones are useless.
    If you purchased the phone new you created the Apple ID, and will have to remember it. If it is only the password you have forgotten go to https://iforgot.apple.com

  • I have a big project but when im going to add a new clip with sound and picture in picture its only the sound that works. Can someone please help me?

    I have a big project but when im going to add a new clip with sound and picture in picture its only the sound that works. Can someone please help me?

    Also, if you can't get them to work, what is the error message you are getting?
    Baron Samedi

Maybe you are looking for

  • ASA and RADUIS on Windows server 2012

    hi i have ASA5505 i want to get the Authentication from Raduis Server using NPS on windows Server 2012 i test the Raduis Server over "Kerio Control VMware Virtual Appliance" its work Perfect for testing my Setting on Raduis  but with the ASA5505 i ge

  • Unable to load rdbnet.dll

    Hello, I'm trying to use the provider Oracle.DataAccess.Rdb.dll with the following statement in c# RdbConnection connection = new RdbConnection(); connection.ConnectionString = string.Format("User Id={0};Password={1};Server={2};Database={3};",login,p

  • PDF document in iBooks changed into JPEG when mailed

    Something odd just happened:  I use iBooks to store my lyrics for songs, and to share with friends when we play music together, I simply email the selected songs to everyone.  Now, for some reason, they are going through as JPEG format rather than PD

  • I cant'f configure my xorg.conf

    I'm using a COMPAQ dc5100 semi-tower It has a 82915G/GV/910GL integrated VGA When I try hwd -s it detects the VGA but seems to leave it uncomplete: Server : Xorg ( ) " <---Blank Space into () Driver : xf86-video- Module: - If I do hwd -x it generates

  • VHD Size Backup?

    I have a question for DPM server. If there is a dynamic disk 600 GB or Fixed 600 gb, and It has got 300 gb data on it. how does dpm backs it up? Does it back up full size of the VHD or only the data 300 Gb. on our DPM I can see something strange and