Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
nwLogin(server, userid, password1) where server=\\128.50.150.60 where userid=.CN=blah.OU=users.O=librariesthe above correctly authenticates (interestngly, when I use the tree name \\MYTREE, it fails. I need to use the ip, but that is ok with me)
PROBLEM SETTING PASSWORD:
However, when I try to change the password for that userid, I get the 8831 error.
nwSetPassword(userid, password1, 1)Can someone tell me the proper format to use for userid when trying to set the password? Thanks,
What you are seeing with nwLogin() needs an actual server to use to perform the login operation. If name resolution is working, it will resolve a server name to a network address, and also resolve a tree name to the network address of a server within the specified tree. However, if name resolution isn't working, you must provide the IP address of a server within the desired tree.
Once you have established a connection to at least one server in the desired tree, the Novell Client will then use that connection to assist in resolving server & tree names.
As for why nwSetPassword() is having a problem...
It would appear that you haven't set your context properly inside your script, so the nw*() functions don't know which tree to be using. Remember, the Novell Client can be simultaneously authenticated to multiple trees, and setting your context properly allows the nw*() functions to know what tree to work with.
Call nwSetContext() as follows:
nwSetContext(0, '[Root]', 'CU-TREE')Then, make your call to nwSetPassword() and continue to use the same FDN format that you used to specify your user object in nwLogin().
Article ID: W18009
Filename: nwSetPassword Issue.txt
File Created: 2012:11:26:09:53:32
Last Updated: 2012:11:26:09:53:32