Informix Error -26721: Cannot drop the password for the user (<username>) because the password is specified. Do not include a value for the PASSWORD property with the DROP option. </username>
Cause and resolution
Cannot drop the password for the user (<username>) because the password is specified. Do not include a value for the PASSWORD property with the DROP option. </username>
When dropping password for the user, the password value cannot be specified.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26721 fires when ALTER USER ... DROP PASSWORD includes a password value — per the
official guidance.
- A value was specified for
PASSWORDalongsideDROP, per the official guidance — the direct, only cause;DROPtakes no value.
Solutions / Resolution
- Remove the value from the
DROP PASSWORDclause, per the official guidance.
Examples
A DROP with an included value
ALTER USER alice DROP PASSWORD 'somevalue';
-- -26721: DROP takes no value
Corrected
ALTER USER alice DROP PASSWORD;
Diagnostic Checks
- Check the
DROP PASSWORDclause for an included value, and remove it.
Related Errors / Related Topics
- -26724 — "Cannot drop the HOMEDIR property for the user (
) because a value is specified. Do not include a value for the HOMEDIR property with the DROP option." The same class of DROP-with-value restriction, forHOMEDIRrather thanPASSWORD. - -26725 — "Cannot drop the UID property for the user (
) because a value is specified. Do not include a value for the UID property with the DROP option." The same class of DROP-with-value restriction, forUIDrather thanPASSWORD. - -26726 — "Cannot drop the USER property for the user (
) because a value is specified. Do not include a value for the USER property with the DROP option." The same class of DROP-with-value restriction, forUSERrather thanPASSWORD.
DROP PASSWORD included a value, which isn't allowed — remove it.