WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Groups

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

n4UserGroups Failing

Keywords: 	  n4UserGroups

Question:

I have a problem with the Netware 4 extender.

We have NDS installed and hopefully the last N4 client and Winbatch/n4-Extender versions in place. I try to retrieve the groups a user is member of. The first call to n4UserGroups() executes correctly, but the second call fails with the message "WIL extender error 236: Group lookup failed".

It seems, that only one call to UserGroups() is allowed, but this is not what was intended?

Example code:

AddExtender("wwn4x34I.dll")

GroupList = n4UserGroups("\\MYSERVER",".myname.and.context")
Message("GroupList 1",GroupList)

GroupList = n4UserGroups("\\MYSERVER",".myname.and.context")
Message("GroupList 2",GroupList)
Any help?

Answer:

Just after the failure occurs, look in WWW-BATCH.INI, find the extender name, and give us the LASTERROR information. We can look up a more detailed error code.

The problem could be the format of the username parameter. If it includes a relative context, maybe try a fully-qualified one. And username must be <= 48 chars.

Question (continued):

the error message is:
[WWN4X34I]
LastError=FFFFFED1 (NWDSPutAttrName)
The context is full qualified, the username + context is shorter than 48 characters. The funny thing is, that the first call works OK (which means: No problems with user name or context, but the second identical one fails.

Answer (continued):

That error indicates a "Bad Context".

The "username + context" parameter means a canonical user name.

If somehow this parameter causes the context to change from the current default context, then the next n4 call you are making could happen in the wrong context.

If you want to get group information for a context other than the default one, you should use n4UserGroupEx instead, added in 97A.


Article ID:   W13626
Filename:   n4UserGroups Failing.txt
File Created: 2001:03:01:13:49:32
Last Updated: 2001:03:01:13:49:32