Check Netware User Status
Question:
I've read somewhere on here or in the extender of how to see if a user is disabled or not. I read through nwGetObjInfo, but
it's not jumping out at me. Can someone advise me on the correct function?
Answer:
Just use nwGetObjValue() to read the boolean value of the "Login Disabled" attribute. If the value of the attribute is a 1 [one],
then the user object is disabled. If the attribute value is 0 [zero] or if it is *MISSING*, then the user object is not disabled.
If the user object has never been disabled in the past, then it is highly likely that the attribute doesn't exist on the user
object and thus you can't get the value for it. Please read the help topic for nwGetObjValue() and refer to the values of the
flag bits [bit #3] to understand how a missing attribute value is handled with either an error being raised or an empty string
being returned.
Here is a example showing how to disable a user. You should be able to work with that.
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Networks~-~Servers/Novell~Netware/NetwareX~Extender+Disable~a~User~Account~in~Novell.txt
Article ID: W17079
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38