Steve Clay · Aug 28, 2025 go to post

This is fixed in 2024.2 by DP-431540.

If you install the unicode kit for your version, you can work around this problem.

Steve Clay · Jun 22, 2023 go to post

Check out the methods in %Library.UTC, there may be something in there you could use.

Steve Clay · Jun 5, 2023 go to post

Make sure that the endians (big or little) of the two systems are the same. If they are not, you can use the cvendian program on the CACHE.DAT to convert it to the proper format.

Steve Clay · Nov 30, 2022 go to post

You can find this information in the audit log.

Make sure auditing is enabled, enable the LoginFailure audit event, and you should see the detailed reason for failure there.

Steve Clay · May 17, 2022 go to post

It is available in 2022.1, it just hasn't hit the documentation yet. You can go ahead and use it.

Steve Clay · Feb 25, 2022 go to post

Yes, this is absolutely correct, the code checks the R/W status of the database. If it is set to read-only, it will not be copied up to the durable directory. The first version which has this feature are kits based off of IRIS 2021.2.

Steve Clay · May 14, 2021 go to post

Check out

$system.Encryption. LuhnCheckSum()

and

$system.Encryption.LuhnValidate()

Steve Clay · Mar 31, 2021 go to post

Don't use this it is not documented or supported. It is internal use only.

Steve Clay · Mar 31, 2021 go to post

Don't use this it is not documented or supported and may change in the future. Use the GetUserInfo example above.

Steve Clay · Mar 16, 2020 go to post

You can use the Get and Modify methods in coordination with the Security.Resources:List() query (which allows wildcards). Here is some

untested code which will give you an idea of what you can do:

%SYS>s x=##Class(Security.Roles).Get("%developer",.Properties)
 
%SYS>zw Properties
Properties("Description")="A Role owned by all Developers"
Properties("GrantedRoles")=""
Properties("Resources")="%DB_%DEFAULT:RW,%DB_IRISLIB:R,%DB_IRISLOCALDATA:R,%DB_IRISTEMP:RW,%DB_USER:RW,%Development:U,%DocDB_Admin:U,%Service_Console:U,%Service_DocDB:U,%Service_Object:U,%Service_SQL:U,%Service_Telnet:U,%Service_Terminal:U,%Service_WebGateway:U,%System_CallOut:U"

;Now get the list of resources you want using a result set.

Set Rset = ##class(%ResultSet).%New("Security.Resources:List")
 '$$$ISOK(Rset) $SYSTEM.Status.DisplayError(%objlasterror) q
 Status=Rset.Execute("*") ; See class documentation of what you can use for wildcards here
 '$$$ISOK(Status) Do $System.OBJ.DisplayError(Status) q

s ResourceString=""

 While Rset.Next(.Status) {
 s Resource=Rset.Data("Name")
s ResourceString=ResourceString_Resource_":RW"_","

}

 '$$$ISOK(Status) Do $System.OBJ.DisplayError(Status) q
s ResourceString=$e(ResourceString,1,*-1) ; Remove trailing comma
;Now add to the existing resource string. Duplicates are ignored.

s Properties(Resources)=Properties("Resources")_","_ResourceString

;Now save it

s Status=##Class(Security.Roles).Modify("%developer",.Properties)

Steve Clay · Feb 7, 2020 go to post

There are also some Epoch conversion methods in the %Library.UTC class.

Steve Clay · Apr 4, 2019 go to post

Take a look at the LDAP.MAC routine in the SAMPLES database. Look at Example 5 which shows how to change a password in Active directory using LDAP.