GetPasswordString() Null error

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
K_Kalicharan
Posts: 3
Last visit: Wed Jan 31, 2024 4:34 pm
Has voted: 1 time

GetPasswordString() Null error

Post by K_Kalicharan »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: 5.8.218
Operating system: Windows 11
PowerShell version(s): 5.1.22621.963

*** Please add details and screenshots as needed below. ***
GetPasswordString() is returning a null or length 0 error. On testing is seems like there is a password length limit of 251 characters. Anything over that results in a null password object.

Steps to reproduce:
set user/password in Script Packager
enter password string over 251 characters then try to access the password via $SAPIENHost.GetPasswordString(0)


DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: GetPasswordString() Null error

Post by Alexander Riedel »

Yes, the buffer length to write and read stored passwords is limited to about that size.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 1 year and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.