1- /*********************************************************************
2- * Copyright (C) 2000 by Progress Software Corporation. All rights *
3- * reserved. Prior versions of this work may contain portions *
4- * contributed by participants of Possenet. *
5- * *
6- ******************************************************************** */
1+ /**************************************************************************
2+ * Copyright (C) 2000-2025 by Progress Software Corporation. All rights *
3+ * reserved. Prior versions of this work may contain portions *
4+ * contributed by participants of Possenet. *
5+ * *
6+ ************************************************************************** * /
77
88/*
99 History: D. McMann 03/04/99 Added assignment of connect parameters
1010 D. McMann 06/18/01 Added assignment of _Db-Misc1[1]
11+ tmasood 12/18/25 Encrypt the clear-text password using ENCRYPT-AUDIT-MAC-KEY
1112
1213 */
1314
@@ -24,8 +25,13 @@ IF NOT AVAILABLE DICTDB._Db THEN DO TRANSACTION:
2425
2526 IF mss_username <> ? AND mss_username <> " " THEN
2627 ASSIGN c = " -U " + mss_username .
27- IF mss_password <> ? AND mss_password <> " " THEN
28- ASSIGN c = c + " -P " + mss_password .
28+ IF mss_password <> ? AND mss_password <> " " THEN DO :
29+ /* Encrypt the clear-text password otherwise save it as is */
30+ IF INDEX (mss_password , " ::" ) = 6 THEN
31+ ASSIGN c = c + " -P " + mss_password .
32+ ELSE
33+ ASSIGN c = c + " -P " + AUDIT-POLICY :ENCRYPT-AUDIT-MAC-KEY (mss_password , " ae2h1" ).
34+ END .
2935 ASSIGN c = c + " " + mss_conparms .
3036
3137 CREATE DICTDB ._Db.
0 commit comments