This form does not yet contain any fields.
    Login
    « Has anyone else been watching "Whale Wars"? | Main | Definition of a good client. »
    Saturday
    Nov292008

    "No such attribute" when importing LDIF files.

    A few hints when you encounter one of these that you can't seem to fix:

    [1] The obvious - are you really sure that you created the attribute in question?  If you created it earlier in the same file, did you issue a SchemaUpdateNow for good measure?

    [2] LDIFDE is utterly unforgiving of things like extraneous spaces at the beginning or end of an entry.  A quick "CTRL-A" will give you a quick visual hit on this.

    [3]  I don't know why or how, but sometimes a copy-paste operation even into Notepad will insert non-printable characters that will mess with your life. If you're staring and staring at an attribute entry and you swear to God that it exists even though the LDIFDE file claims it doesn't...delete it and type it back in manually.  It's a PitA, but it fixed a few of these that I just couldn't resolve any other reasonable way.

    Reader Comments (4)

    I have come across this a couple of times myself as well. I often use notepad++, i.e. to remove (trailing) spaces. nice little freeware tool
    November 30, 2008 | Unregistered CommenterV
    Use AdMod for your custom schema update needs. :)
    November 30, 2008 | Unregistered Commenterjoe
    And now I'll wait for Brandon to tell me to use PowerShell. :-)
    November 30, 2008 | Registered CommenterLaura E. Hunter
    Use a better text editor than Notepad!
    December 2, 2008 | Unregistered CommenterDevin L. Ganger

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    All HTML will be escaped. Hyperlinks will be created for URLs automatically.