Question

Grouwise Administration with Visual Basic Application

Asked by: wenay

I 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("NovellGroupWareAdmin")

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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-06-05 at 21:55:45ID21447687
Tags

novellgroupwareadmin

Topic

Novell Groupwise

Participating Experts
2
Points
125
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. CreateObject - ProgId
    I am using an ActiveX DLL developed by someone else (I guess, it's developed using Visual C++). From VB5.0, I make a reference to it in the project and create objects using New Keyword. Everything works perfect. However for some reason, I do not want to refer to it in the pr...
  2. createobject
    when to use createobject command ?
  3. ActiveX EXE CreateObject MultiThreaded
    I'm trying to create a multi-threaded ActiveX EXE. I've set the startup object to sub main, selected thread per object and start mode of stand alone. I understand that creating an object from within the exe will not create a thread because the call is internal to the compon...
  4. How to call a Visual Basic ActiveX dll
    Hi ! I just made a free Visual Basic ActiveX dll called SCML RTF printer. It can be found at: http://www.scmlsoftware.com Question is: I have somebody who would like to use it from Visual FoxPro but I have never used it so I don't know what to tell him. Any clue ?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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?

 

by: ShineOnPosted on 2005-06-06 at 04:23:04ID: 14152198

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.

 

by: wenayPosted on 2005-06-06 at 20:25:10ID: 14158949

Yes have defined the objAdminSystem variable a type variant and I have GW Client on my PC. Also I am using GW 6.5

Thanx

 

by: ShineOnPosted on 2005-06-07 at 04:35:45ID: 14160705

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.

 

by: wenayPosted on 2005-06-07 at 20:41:44ID: 14167815

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

 

by: ShineOnPosted on 2005-06-07 at 20:48:10ID: 14167825

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.

 

by: ShineOnPosted on 2005-06-07 at 20:54:24ID: 14167842

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... ;)

 

by: wenayPosted on 2005-06-07 at 21:37:13ID: 14167963

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("NovellGroupWareAdmin")
 
   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

 

by: ShineOnPosted on 2005-06-08 at 07:21:49ID: 14170990

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.  

 

by: wenayPosted on 2005-06-09 at 23:53:57ID: 14186050

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("NovellGroupWareAdmin")
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.

 

by: ShineOnPosted on 2005-06-10 at 04:24:14ID: 14187326

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:\"

 

by: wenayPosted on 2005-06-10 at 04:34:14ID: 14187405

I have maped \\hzw\hzwmail and then used hzwdoman and still it is giving me same error.

Note: hzwdoman is correct spell there is no i in hzwdomain. It is just for information

Regards

 

by: ShineOnPosted on 2005-06-10 at 07:14:56ID: 14188720

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.

 

by: wenayPosted on 2005-06-12 at 20:46:16ID: 14199751

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: ShineOnPosted on 2005-06-13 at 04:10:45ID: 14201129

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.

 

by: jasenwebsterPosted on 2009-03-31 at 10:22:14ID: 24031278

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.  :)

Set oGWAdmin = CreateObject("NovellGroupWareAdmin") 
oGWAdmin.Connect ("\\server\VOL1\apps\grpwise\domain")
Set oDomain = oGWAdmin.ConnectedDomain

                                              
1:
2:
3:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...