[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: pwdReset - ldapmodify : Undefined attribute type (17)
- To: "cbulist@gmail.com" <cbulist@gmail.com>
- Subject: Re: pwdReset - ldapmodify : Undefined attribute type (17)
- From: Philip Guenther <guenther+ldaptech@sendmail.com>
- Date: Fri, 12 Apr 2013 09:48:22 -0700
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sendmail.com; s=tls.dkim; t=1365785305; bh=6v66LrIq4kxR4xUINFGus/NTIG1W/o3jC5vBQv6T2Do=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=PxPVTyvja186r1P43d7GFNMW0vWCJBGWEuBhpjF3kO3m12jcy4xZcDM1jWF8kEsMX R8ZuCiaaYF4LZEzDrjEcoaP3xIaldI50UhAWiXO/WsyarrCwcvLvU6jdmVeAy0DeAf NRiN3FJYK3TZLjCSM72Q6b/a3eWy8hmbWY+OWcnk=
- In-reply-to: <516835A0.1090201@gmail.com>
- References: <516835A0.1090201@gmail.com>
- User-agent: Alpine 2.03 (BSO 1266 2009-07-14)
On Fri, 12 Apr 2013, cbulist@gmail.com wrote:
> I'm trying to add pwdReset attribute to a user in order to reset the
> user password but It fails. I added the pwdReset attribute to the schema
> using Apache Directory Studio but I'm getting the same error.
>
> Any recommendation?...Thanks!!
Read the ldif(5) manpage and examine the syntax and examples for doing
multiple changes to a single entry. Your attempt doesn't follow that
syntax.
> This is the command that I run:
>
> ldapmodify -c -H ldap://localhost -x -D "cn=Manager,dc=sample,dc=com" -w "password" <<EOF
> dn: uid=aaa,ou=People,dc=sample,dc=com
> changetype: modify
> replace: userPassword
> userPassword:test
> changetype: modify
> add: pwdReset
> pwdReset: TRUE
> EOF
>
> This is the output:
>
> ldapmodify: Undefined attribute type (17)
> additional info: changetype: attribute type undefined
The second "changetype" line is a syntax violation. You almost certainly
want this:
dn: uid=aaa,ou=People,dc=sample,dc=com
changetype: modify
replace: userPassword
userPassword: test
-
add: pwdReset
pwdReset: TRUE
Philip Guenther