Error updating the server MyServer:389. The error is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 19 - invalid password syntax: no special character]; remaining name 'uid=testuser,ou=ME,dc=example,dc=com'
I am connecting to Sun One Directory Server 6.0 on Windows Server 2003 through ColdFusion as per our project's requirement. I use the code that is given below: <cfparam type="string" name="LoginMessage" default=""> .. .. <cftry> <cfldap action="QUERY" name="AunthenticateUser" attributes="uid " start="ou=People,dc=example,dc=com" Scope="subtree" filter = "(&(objectclass=person) (uid=#form.UserLogin#))" server="#ldap_server#" Port="#ldap_port#" username="uid=#form.UserLogin#,ou=People,example,dc=com" password="#form.userpassword#"> <cfcatch type="any"> <cfoutput> //what I want to display Your Password expired </cfoutput> <cfabort> </cfcatch> </cftry> I use a Global Password Policy with the following properties: General, Password Change, Password Expiration, Account Lockout. How do I catch the LDAP: error code 19 in the <cftry> <cfcatch> block so that I can tell the client that their password syntax is wrong?. Thanks, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305035 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

