Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Locking Inactive Logins - ASE 15.7 SP 134

$
0
0

Hi,

 

I want to lock logins inactive for more than 90 days so I´m executing:

 

sp_locklogin NULL, 'lock', NULL, 90

 

But after executing it I´m getting the following output:

 

Warning: One or more accounts specified are active.

Account locked.

(return status = 0)

 

So I decided to open de sp_locklogin code and discover that the reason is in line 919:

 

LockLoginCode.png

 

When @except is null and @loginame is null (1st and 3rd parameters of sp_locklogin) there is not a check before of what logins are going to be blocked in order to join with only these ones and not with all syslogins.

 

So, I don´t know if there is already a CR solve in future version of ASE but anyone go through this behavior? If so, and everyone agreed I will generate a document on SCN.

 

Thanks.

Javier.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>