[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Rename DN ?
- To: Tim Watts <tw@dionic.net>
- Subject: Re: Rename DN ?
- From: Philip Guenther <guenther+ldaptech@sendmail.com>
- Date: Sun, 18 Sep 2011 13:46:58 -0700
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sendmail.com; s=fife.dkim; t=1316378827; bh=K+k4IbKorIEuPIUD/FEovh2tQVCMj+3+XV+rL7gJ9no=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=DIDj7LCUeXb8oF1NO/H08vU5naOvURXs0LkIw7ffubkCLCGYt0B0XxWqzqowfrAde 7Fsj7WEuTrYQpJBCZcpYtCW4pOECnnWfl9jWLZLcw3YgU4gnlxEW6+6UeRate5T3Wf OONYRFO/Fmqyfcx0zmc3mRm9FTqBvhb2iR9BU0Hg=
- In-reply-to: <4E730602.6080607@dionic.net>
- References: <4E730602.6080607@dionic.net>
- User-agent: Alpine 2.00 (BSO 1167 2008-08-23)
On Fri, 16 Sep 2011, Tim Watts wrote:
> Quick question if I may:
>
> Is it possible to rename a DN,
Yes, it's possible to modify the DN of an entry.
> eg this LDIF file:
>
>
> dn: cn=Fred,ou=people,dc=example,dc=com
> changetype: modify
> replace: dn
> dn: cn=Fred,ou=people,ou=external,dc=example,dc=com
...but not with that LDIF.
> I tried that, and ldapmodify does not seem to like it :(
Right, because 'dn' isn't an attribute. LDIF has a different syntax for
doing modrdn operations. This was discussed on this very list just over a
week ago, on the 12th or so. Check the archives for the thread with
Subject "Change a user dn".
Or read the LDIF and LDAP protocol RFCs (rfc2849 and rfc4511), or the
ldapmodrdn manpage.
Philip