HOW TO: Customise the style of the display name in Active Directory Users and Computers and the GAL



Similar documents
Step-by-Step Guide to Bulk Import and Export to Active Directory

Step-by-Step Guide to Active Directory Bulk Import and Export

Active Directory Commands ( )

Keenan s brief Guide to AD Snapshots

Configuring Microsoft Active Directory for Oracle Net Naming. An Oracle White Paper April 2014

Here, we will discuss step-by-step procedure for enabling LDAP Authentication.

Using VBScript to Automate User and Group Administration

ShoreTel Active Directory Import Application

ShoreTel Active Directory Import Application

Module 4: Implementing User, Group, and Computer Accounts

To enable an application to use external usernames and passwords, you need to first configure CA EEM to use external directories.

Create, Link, or Edit a GPO with Active Directory Users and Computers

ADAM (AD LDS) Pass thru Authentication. Idalia Torres STC Using ADAM to Keep AD out of Harm s Way

Mailbox Recovery for Microsoft Exchange 2000 Server. Published: August 2000 Updated: July 2002 Applies To: Microsoft Exchange 2000 Server SP3

Integration Guide. SafeNet Authentication Service. Integrating Active Directory Lightweight Services

This article was previously published under Q SUMMARY

Microsoft Virtual Labs. Active Directory New User Interface

Application Note. SA Server and ADAM

Manage Fine-Grained Password and Account Lockout Policies

Configuring Microsoft Active Directory 2003 for Net Naming. An Oracle White Paper September 2008

LDAP/Active Directory Guide. Release 4.0

Installation of IR under Windows Server 2008

LDAP Server Configuration Example

Installation and Configuration Guide

TechJam Active Directory Auditing Presenter Matt Warburton Professional Services

Windows 2000 Active Directory Configuration Guide

Technical Bulletin 005 Revised 2010/12/10

How To Authenticate On An Xtma On A Pc Or Mac Or Ipad (For A Mac) On A Network With A Password Protected (For An Ipad) On An Ipa Or Ipa (For Mac) With A Log


Troubleshooting Active Directory Server

Introduction Installing and Configuring the LDAP Server Configuring Yealink IP Phones Using LDAP Phonebook...

Windows Server 2003 Logon Scripts Paul Flynn

The following gives an overview of LDAP from a user's perspective.

Active Directory LDAP Quota and Admin account authentication and management

Using LDAP Authentication in a PowerCenter Domain

Active Directory Sync (AD) How to Setup

Egnyte Single Sign-On (SSO) Configuration for Active Directory Federation Services (ADFS)

Windows Server 2003 Administration Part 1 Lab Manual Presented by

Migrating application users and passwords with Password Manager

Command-Line Tool for View Manager View Manager 4.0

Field Description Example. IP address of your DNS server. It is used to resolve fully qualified domain names

Module 3: Implementing an Organizational Unit Structure

[MS-FSADSA]: Active Directory Search Authorization Protocol Specification

Installing GFI MailArchiver

LAB 1: Installing Active Directory Federation Services

CHAPTER THREE. Managing Groups

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems

Integrating With LDAP Directories

ReportBy Microsoft Active Directory

Module 1: Introduction to Active Directory Infrastructure

Create user mailboxes

Windows Server 2003 Service Pack 1 (SP1) or later service packs Enhanced version of Ntdsutil.exe

Creating Organizational Units, Accounts, and Groups. Active Directory Users and Computers (ADUC) 21/05/2013

Active Directory Disaster Recovery Workshop. Lab Manual Revision 1.7

IPBrick - Member of AD domain IPBrick iportalmais

HELP DOCUMENTATION UMRA REFERENCE GUIDE

Cloudwork Dashboard User Manual

PriveonLabs Research. Cisco Security Agent Protection Series:

Installing GFI MailArchiver

Managing User Accounts

How To Set Up A Webmin Account On A Libc (Libc) On A Linux Server On A Windows 7.5 (Amd) With A Password Protected Password Protected (Windows) On An Ubuntu (Amd

Outpost Office Firewall

LDAP Server Configuration Example

EVERYTHING LDAP. Gabriella Davis

Microsoft.Net Version 2.0 is required. You can obtain this from the Microsoft Website, or visit the Downloads page at voceware.co.uk for a link.

Optimization in a Secure Windows Environment

Technical Overview. Active Directory Synchronization

Modifying the Active Directory Schema to Support Mac Systems

BlackShield ID. QUICKStart Guide. Integrating Active Directory Lightweight Services

SMART Directory Sync Known Limitations

Configuring Microsoft Active Directory for Integration with NextPage NXT 3 Access Control

Ciphermail Gateway Web LDAP Authentication Guide

Video Administration Backup and Restore Procedures

User Management Resource Administrator. Managing LDAP directory services with UMRA

1 JiJi AD Bulk Manager User Manual. JiJi AD Bulk Manager - User Manual

LDAP and Active Directory Guide

Ultimus and Microsoft Active Directory

Creating and Issuing the Workstation Authentication Certificate Template on the Certification Authority

SMART Directory Sync 5.0. User Guide for Windows Server Migration

AD Schema Update IPBrick iportalmais

LDAP Sync. A tool for the C3000 Exchange 5.5/2000/2003 Integration with synchronised user administration in Microsoft Directory (ADAM/ADS)

Using Management Shell Reports and Tracking User Access in the NetVanta UC Server

DigitalPersona Pro Server for Active Directory v4.x Quick Start Installation Guide

Active Directory Sync (AD) How it Works in WhosOnLocation

GoToMeeting, GoToWebinar & GoToTraining. Active Directory Connector Administration Guide Hollister Avenue Goleta CA 93117

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

Managing User Accounts

and Active Directory Adding, Changing and Deleting Accounts, Compiling Addresses for Mail Lists

Autograph 3.3 Network Installation

Integrating a Shibboleth IdP with Microsoft Active Directory

S/MIME on Good for Enterprise MS Online Certificate Status Protocol. Installation and Configuration Notes. Updated: October 08, 2014

Enabling Auditing Manually

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

Lab - Observing DNS Resolution

Multi-factor Authentication using Radius

Owner of the content within this article is Written by Marc Grote

Active Directory Cookbook

1. Data Domain Pre-requisites. 2. Enabling OST

Troubleshooting File and Printer Sharing in Microsoft Windows XP

Transcription:

HOW TO: Customise the style of the display name in Active Directory Users and Computers and the GAL Finding and Modifying the Display Specifier createdialog It is often asked how the Display Name for user and contact objects in the Active Directory (GUI) management tools (and the GAL) can be changed from the default of to something else, perhaps,, so that this happens by default. This article explains how to make the necessary changes to achieve this. Default behaviour When creating user and contact objects in the Active Directory Users and Computers (DSA.MSC) management snapin the default behaviour of the create new < object > dialog is to populate the displayname attribute with the givenname attribute, a space, and then the sn attribute. Note. Please refer to the final section of this article for a brief mapping of the GUI field names to the LDAP attribute names. Discovering the current setting The value that defines this behaviour is defined in the attribute createdialog of the object: CN=UserDisplay, CN=409, CN=DisplaySpecifiers, CN=Configuration, DC=domainname This can be viewed using ADSIEdit.msc or LDP. You can also query this attribute using DSQUERY or ADSI. Using DSQUERY Type the following command into a command prompt on a domain member as a user with read permissions in the Configuration container. C:\dev\ad>dsquery * cn=userdisplay,cn=409,cn=displayspecifiers,cn=configuration,dc=domainname scope base attr createdialog This will provide output like the following example: C:\dev\ad>dsquery * cn=userdisplay,cn=409,cn=displayspecifiers,cn=configuration,dc=r2,dc=testlab,dc=com scope base attr createdialog createdialog %, % Using VB Script

Create an.vbs file with the following contents, changing the locale to your specific locale: viewcreatedialog.vbs Script outputs the value of createdialog; which is an attribute of domainname/configuration/displayspecifiers/409/userdisplay This attribute defines the default display name syntax, e.g. "Smith, John" or "Jane Doe" Paul Williams, msresource.net, Jan 2004 Option explicit dim orootdse,obase dim screatedialog set orootdse=getobject("ldap://rootdse") set obase=getobject("ldap://cn=userdisplay,cn=409,"&_ "cn=displayspecifiers,"&orootdse.get("configurationnamingcontext")) on error resume next screatedialog=obase.get("createdialog") if(screatedialog="")then wscript.echo"value not set. Default value is % %" else wscript.echo"value set to "&screatedialog end if Save the file as.vbs, e.g. viewcreatedialog.vbs Then, from a command prompt (or simply doubleclick if WScript is preferred) run: C:\dev\ad\vbs\>cscript viewcreatedialog.vbs Changing this behaviour To change this behaviour you must modify the createdialog attribute of the UserDisplay display specifier with the attributes that you wish, prefixed with a percent (%) symbol. The UserDisplay display specifier has the following DN: cn=userdisplay, cn=<locale&rt;, cn=displayspecifiers, cn=configuration, dc=<forestroot&rt;, dc=<1st level suffix> Note. For clarity of reading, and manageability of text layout on the screen, the DN includes spaces after each separator (comma); this in not the case when writing a DN in script, query or code. Using the GUI The easiest way of making this change is using the GUI tool ADSIEdit.msc, which is a Windows Support Tool. Note. For more information on the Windows Support Tools, information on how to obtain and install them, as well as information on what tools are included in the different versions, please refer to the following msresource.net knowledgebase article: INFO: The Windows Server Support & Resource Kit Tools

To do this, load ADSIEdit.msc by typing ADSIEdit.msc at the Run command In ADSIEdit.msc, expand the Configuration container, and then expand each of the following in turn CN=Configuration, CN=DisplaySpecifiers, CN=, where is your locale. Select CN=userDisplay Note. CN=409 is the locale for US English; CN=408 is the locale for UK English. In the righthand pane, Rightclick on CN=userDisplay and choose properties Find and edit the createdialog attribute with the value you wish the new default to be Examples There are very few possibilities for this attribute, as only givenname, sn and initial can be used (as these are the only attributes that are guaranteed to be available at the time of creation as they are defined in the same form). The following are some examples of what you might enter. createdialog attribute Value Display Name/ cn value example %, % Williams, Paul %, % % Hambling, Emma L % % % David L Murphy

Other ways of changing this attribute There are obviously several other ways of modifying this attribute, for example LDP, LDIFDE, VB Script, ADMOD,.NET code, etc. Two such examples are an LDIF file (for use with LDIFDE) and a script (written in VB Script). They are as follows. Using LDIFDE Create an.ldf file with the following contents, changing the locale and domain name to your configuration dn: cn=userdisplay,cn=409,cn=displayspecifiers,cn=configuration,dc=winnetsolutions,dc=com changetype: modify replace: createdialog createdialog: %<sn&rt;, %<givenname&rt; %<initial&rt; Save the file as <file name&rt;.ldf Then, from a command prompt run: C:\dev\ad\ldif\>ldifde i f modcreatedialog.ldf Using VB Script Create an.vbs file with the following contents, changing the locale to your specific locale: modcreatedialog.vbs Script sets the value of createdialog with the value that you enter. createdialog is an attribute of: domainname/configuration/displayspecifiers/409/userdisplay This attribute defines the default display name syntax, e.g. "Smith, John" or "Jane Doe" Paul Williams, msresource.net, Jan 2004 Option explicit dim orootdse,obase dim sdefaultdisplaynameconfiguration set orootdse=getobject("ldap://rootdse") set obase=getobject("ldap://cn=userdisplay,cn=409,"&_ "cn=displayspecifiers,"&orootdse.get("configurationnamingcontext")) sdefaultdisplaynameconfiguration=inputbox("please enter a new value for "&_ "the default displayname."&vbcrlf&vbcrlf&"for example, enter:"&vbcrlf&_ vbtab&"%, % %"&vbcrlf&vbcrlf&" To have a "&_ "default display name of: Smith, John F. "&vbcrlf,"enter new value "&_

"for UserDisplay","%<sn&rt;, %<givenname&rt;") if(sdefaultdisplaynameconfiguration<>"")then obase.put"createdialog",sdefaultdisplaynameconfiguration obase.setinfo wscript.echo"set the default display name to the following "&_ "syntax: "&sdefaultdisplaynameconfiguration&"." else wscript.echo"no input received. Doing nothing." end if wscript.echo"script finished." Save the file as.vbs Then, from a command prompt (or simply doubleclick if WScript is preferred) run: C:\dev\ad\vbs\>cscript modcreatedialog.vbs LDAP display name to GUI label name mappings This article has mentioned a number of user object attributes, and has used the LDAP display names when referring to these attributes. The following table simply maps the LDAP display names of the attributes to the Text Labels used in the Active Directory Users and Computers management snapin. GUI Text Field/ Display Name LDAP Display Name First Name givenname Initials initial Surname sn Description description Full Name cn Display Name displayname Pre Windows 2000 User Name samaccountname

. User name userprincipalname Document information Author: Paul Williams Written: 17092005 Version: 2.0 Last updated: 02082007 Last updated by: Paul Williams