Novell Home

TID102458 (DXAddMmb) - Delphi Sample: Changing Group Memberships with ActiveX

From Developer Community

AUTHOR: WSC DOCUMENT ID: TID102458 DOCUMENT REVISION: DATE: 2001/07/20 1:23 PM ALERT STATUS: Yellow INFORMATION TYPE: Issue README FOR: DXADDMMB.EXE NOVELL PRODUCT CLASS:

NetWare API

NOVELL PRODUCT and VERSION:

NetWare NDK Feb01

CATEGORY:

none

COMPILER:

Delphi 4.0

TARGET OS:

Windows 98

ABSTRACT:

Description

DXAddMmb is a Delphi application that illustrates the use of Delphi with NetWare ActiveX controls.

It will specifically use the Directory Query control to view and change users' group memberships.

Usage:

Step 1: Select the tree The browser window will be displayed

Step 2: Select a user and a group. The group memberships of the selected item will be displayed

The last respective user / group selected will be remembered and displayed in the edit boxes on the bottom right panel

Step 3: Press the "Add" or "Del" button to add the selected user to the selected group, or to cancel that membership.


The sample shows how to modify group memberships and multi-valued properties. Before a value is saved, the old values are read, and the new item is added to (or removed from) that array. Then the modified array is saved.


This sample is based on the NW Session control v1.2 NW Directory control v2.2 NW Browser control v1.0

Prerequisites (run-time): NetWare Client 32 Installation of the NetWare ActiveX controls

You can download Novell's latest ActiveX controls from the DeveloperNet web pages at http://developer.novell.com


Platform: Win9x / WinNT / Win2000

Compilers: Borland Delphi 4.x/5.x

Though it was not written for Delphi v1.x (16bit), it could be converted with only minor modifications.

Conversion between 32bit Delphi versions (2.x/3.x/4.x/5.x) should be possible without any (or only minimal) code changes.

General information on how to use Delphi with the NetWare SDK can be found in the HOW-TO.TXT file that can be downloaded as "How2Del.exe" from the TID and sample web site at http://developer.novell.com/support/sample.htm

DETAILED DESCRIPTION



DISCLAIMER THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO NOVELL. NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY THIS INFORMATION. HOWEVER, THE INFORMATION PROVIDED IN THIS DOCUMENT IS FOR YOUR INFORMATION ONLY. NOVELL MAKES NO EXPLICIT OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION.


Self-Extracting File Name: DXADDMMB.EXE

Files Included: Size Date Time

DXADDMMB.TXT (this file) ADDMEMBR.CFG 445 6-27-01 9:45 AM ADDMEMBR.EXE 416768 6-27-01 9:45 AM READ.ME 1754 6-27-01 9:45 AM MAIN.DFM 4740 6-27-01 9:45 AM ADDMEMBR.DPR 186 6-27-01 9:45 AM MAIN.PAS 11417 6-27-01 9:45 AM ADDMEMBR.DOF 1133 6-27-01 9:45 AM ADDMEMBR.RES 876 6-27-01 9:45 AM DXADDMMB.MSG 1748 6-27-01 9:45 AM

dxaddmmb.exe

dxaddmmb.exe245.5 K2005-04-06

--devsup

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.