+ All Categories
Home > Documents > Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software...

Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software...

Date post: 16-Jan-2016
Category:
Upload: cory-underwood
View: 219 times
Download: 0 times
Share this document with a friend
19
www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. [email protected]
Transcript
Page 1: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

www.novell.com

Introduction to Novell GroupWise® Administrative Object API

Introduction to Novell GroupWise® Administrative Object API

Glade MonsonSoftware EngineerNovell, [email protected]

Page 2: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Vision…one NetA world where networks of all types—corporate and public, intranets, extranets, and the Internet—work together as one Net and securely connect employees, customers, suppliers, and partners across organizational boundaries

MissionTo solve complex business and technical challenges with Net business solutions that enable people, processes, and systems to work together and our customers to profit from the opportunities of a networked world

Page 3: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.
Page 4: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overview

• Introduction• Overall structure• Accessing the admin API

Visual Basic Delphi C++

• User object example• Code samples

Page 5: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Introduction

• The Novell GroupWise® Administrative Object API lets you see, use, and manipulate GroupWise administration information

• Need administrative rights

• Reference information http://developer.novell.com/ndk/doc/gwadmin

Page 6: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overview

• Introduction• Overall structure• Accessing the admin API

Visual Basic Delphi C++

• User object example• Code samples

Page 7: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Admin API

Page 8: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overall Structure

• Some object types AdminObject System Domain(s) Post Office(s) User(s) Field(s) Field Definitions Distribution List(s) DLMember(s) DMS Library(s) DMS Access Rights DMS Field Definitions Lookup Table(s) Nickname(s) Resource(s)

+ Iterators

Page 9: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overall Structure (cont.)

• Objects accessed through COM Visual Basic Delphi C++

Page 10: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overview

• Introduction• Overall structure• Accessing the admin API

Visual Basic Delphi C++

• User object example• Code samples

Page 11: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Accessing the Admin API

• Can use early or late binding

• Early binding: uses objects defined in type library

• Late binding: uses objects of type variant

Page 12: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Accessing the Admin API—Visual Basic

• Early binding

Dim objSys As AdminTypeLibrary.System

Set objSys = New AdminTypeLibrary.System

‘ Connect to the domain database

objSys.Connect(“F:\gwdata\gwdomain”)

Page 13: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Accessing the Admin API—Visual Basic

• Late binding

Dim objSys As Variant

Set objSys = CreateObject(“NovellGroupWareAdmin”)

‘ Connect to the domain database

objSys.Connect(“F:\gwdata\gwdomain”)

Page 14: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Accessing the Admin API—Delphi

objSys: variant;

objSys := CreateOleObject(‘NovellGroupWareAdmin’);

// Connect to domain database

objSys.Connect(‘F:\gwdata\gwdomain’);

Page 15: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Accessing the Admin API—C++

hResult = CoCreateInstance(CLSID_System, NULL, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER, IID_IADSystem, (void**)&pIADSystem);

hResult = pIADSystem->Connect(“F:\gwdata\gwdomain”);

Page 16: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Overview

• Introduction• Overall structure• Accessing the admin API

Visual Basic Delphi C++

• User object example• Code samples

Page 17: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

User Object Example

• Derived from AdminObject• Can set, clear password• Can access various user properties• Can move users to different PO, within tree• Users object allows creation of

New Novell eDirectory™ and GroupWise user New GroupWise user from eDirectory user New GroupWise user only (external)

• Find, Item, ItemByDN, ItemByObjectID operations available

Page 18: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Code Samples

• VB Create users Create distribution list Modify users Document rights

• C++

Page 19: Www.novell.com Introduction to Novell GroupWise ® Administrative Object API Glade Monson Software Engineer Novell, Inc. gmonson@novell.com.

Recommended