About the GW client - make sure it's 5.5EP or higher. I don't think the admin object API works with any older versions of the client. It's best to go with 6.0 or higher client.
Main Topics
Browse All TopicsI am trying to get Group wise user data from Visual basic application. But when I try to create object using following command
Set objAdminSystem = CreateObject("NovellGroupW
it gives me and error
"ActiveX component can't create object"
Can any body tell me what could be the reason? I have included "GWCMB1.dll references in the project.
Regards
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Have you made sure that the GWCMB1.dll is registered? I know it should be already but I've seen this error complaint in the newsgroups and it was related to registering that dll.
Do you have the Novell client installed (not the Windows-provided crapware client?) Since the admin object API needs to talk to eDirectory, I think that might be necessary, too.
I dont have Novell cleint. Earlier we had both GW and File Server on novell server. But Now we have GW only on Novell and our File server is AD Integrated so I have uninstalled novell client.
I will try to reinstall it and let u know what is the progress.
But is it necessory to install full novell client or should I load any required comonent?
Thanx
I don't know - all I know is what I've read, and that seems to indicate that for the admin object to work you need to access NDS, and most NDK components that need to access NDS/eDirectory like to use the Novell client32 components.
I would think installing the client custom and deselecting all services you aren't running would be sufficient. If you're concerned about the NWGINA, after the client is installed, you can go into the client properties, in the Advanced Login tab, and set it so the Novell client isn't first.
Also, to be picky about it - Novell is a company. You have GroupWise running on a NetWare server.
If you are using modern NetWare (6.5 or OES) you could manage your AD environment through eDirectory using the Novell Identity Manager (aka DirXML) AD connector starter pack and save your admins a lot of redundant work. You could also still use NetWare for file and print, which it does WAY better than Windows, and you wouldn't even need to use the Novell client - NetWare 6.x comes with NFAP/CIFS which makes it look to a Windows client like a Windows server.
Just so you know... ;)
co-Insidently I have installed NDK on my machine yestday and have unistalled GWCMB1.dll and reinstalled it. Now it is creating object properly. I havent installed novell client on my machine yet.
Now it is giving me and error while connecting to the server. command is
TxtPath = "\\hzw\hzwmail:hzwdoman" ' "G:\gwdata\gwdomain"
Set objAdminSystem = CreateObject("NovellGroupW
objAdminSystem.Connect (TxtPath)
It gives me an error "Automation error
The object invoked has disconnected from its clients"
Can u give me what I am missing over here.
Thanx
I believe the Connect() method takes a single parameter, and it needs to use the mapped drive letter path to the domain database. There's also a ConnectByDN() method that lets you use the distinguished name of the object in the NDS tree.
In other words, don't use UNC path notation or NetWare-specific server/volume:path notation.
Your UNC path is kind of mixed. If it does take UNC, try it in \\server\volume\path notation.
I have installed Novell client on my PC. I still unable to connect the database. I have also maped the path on my PC say H:\hzwdoman. And try to connect using following command
TxtPath = "h:\hzwdoman"
Set objAdminSystem = CreateObject("NovellGroupW
objAdminSystem.Connect (TxtPath)
it gives me an error "Error occurred opening the database. Check the path."
Is there permission issue or the path issue. Our GW administrator has given me this path. So I think I should be correct path.
How is the path being mapped on your PC?
For example, if the GroupWise domain is on server hzw, volume hzwmail in a directory directly off the root of the volume named hzwdomain, as is implied by your previous post where you had \\hzw\hzwmail:hzwdomain, and you are using the Windows Explorer "map network drive" to map your drive H:, is that drive being mapped to that hzwdomain directory, or to the root of the hzwmail volume?
If you are mapping the hzwdomain directory as H:, then you'd be redundant in using H:\hzwdomain as your path, because all Windows Explorer-mapped drives are "root-mapped" meaning they appear to be the root of the drive even if they aren't the root of the volume.
Try mapping the \\hzw\hzwmail volume as the H: drive, and use your notation of H:\hzwdomain, or if you mapped the whole path as H:, just use H:\ as your path as in
TxtPath = "h:\"
I suppose it could be a rights issue, but since you're getting this "check the path" error message, I would suggest going back to the GW administrator to verify that you're mapping things right, and that the hzwdoman folder is where the domain database resides (not a subdirectory thereof, or some such.)
The GW admin should be able to verify both your mapping and your filesystem rights for you.
I have copied two files GWDOM.DC and wpdomain.db on to my local system and gave local path and it works fine. It shows me all the users and it's details.
But now the problem is when I try to modify any detail and want to save it gives me an error "Admin commit fails". Do have any Idea? I dont think there is any rights issue as both the files are on my local system and have full rights.
When it connects what user it takes as there is no property or method by which user it connects.
Regards
By copying the files to your local drive, you have proven that you either have a path/mapping problem or a rights issue with accessing the "real" domain database. However, your admin commit fails problem is because the admin api will want to update the NDS/eDirectory database. Your local copy "doesn't count" so to speak. You have to use the "real" domain database. It won't let you update a local copy and commit those updates to NDS/eDirectory as though they were made to the real one.
Once you straighten out your access and/or mapping issue to the real database, you will also have to be logged in to NDS/eDirectory with a user ID that has administrative rights to the objects and classes that your program will be affecting. That will most likely be the user objects, and GroupWise-specific objects like post office and domain to name a couple.
Again, you're gonna have to talk to your GW admin about that. Those rights might be granted by someone higher than the GW admin, depending on your network administration org chart.
I know this is old but wanted to comment. A UNC path can be used to connect to the domain. I use that successfully in my scripts.
Also, I'm wondering if Wenay ever got it to work. Looking at one of his posts, I'm wondering if his path should have been "G:\gwdata\gwdomain". I also wonder what kind of script he/she was going to write. I have not found the GroupWise API to be easy with vbscript. However, I have managed to add and delete members in distribution lists and such. :)
Business Accounts
Answer for Membership
by: ShineOnPosted on 2005-06-06 at 04:13:02ID: 14152140
Did you define the objAdminSystem variable a type variant or object? (had to ask...)
Do you have the GroupWise client installed on your PC?