Re: Clone Field in Active Directory
- From: "Mathieu CHATEAU" <gollum123@xxxxxxx>
- Date: Wed, 22 Aug 2007 23:52:39 +0200
many tools exists to exports Active Directory attributes (cvsde,adfind...)
I would do a vbscript that read this attribute, and set the telephoneumber to it.
That may do the trick, but i don't have cisco, so up to now it only display what it could do:
Could you make a try after puting you domain instead of MYDOMAIN ?
'--------------------------------
'save to cisco.vbs
On Error Resume Next
Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
objCommand.CommandText = "SELECT AdsPath,samaccountname,ciscoEcsbuDTMfId FROM 'LDAP://dc=MYDOMAIN,dc=COM' WHERE objectCategory='user'"
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
strUserPath = objRecordSet.Fields("AdsPath").Value
username=objRecordSet.Fields("samaccountname").Value
cisco=objRecordSet.Fields("ciscoEcsbuDTMfId").Value
Set objUser = GetObject(strUserPath)
strTelephone = objUser.telephoneNumber
wscript.echo username & "may have " & strTelephone & "replaced by" & cisco
objRecordSet.MoveNext
Loop
'--------------------------
--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com
"MK" <mkai@xxxxxxxxx> wrote in message news:ukDHGBP5HHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
I am using Unity 4 not the latest one.
"Mathieu CHATEAU" <gollum123@xxxxxxx> wrote in message news:e$ZzC9O5HHA.2108@xxxxxxxxxxxxxxxxxxxxxxxhello,
i thought the last cisco version wouldn't extend the schema anymore but just sync with it ?
--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com
"MK" <mkai@xxxxxxxxx> wrote in message news:OGXQ42O5HHA.4436@xxxxxxxxxxxxxxxxxxxxxxxHi All,
I have a Cisco Unity Voice Mail integrated to my AD, and Cisco host has an atribute called "ciscoEcsbuDTMfId" that contains the user extension.
So how, can I have a service / program that copies the contents of the "ciscoEcsbuDTMfID" to the "tekephoneNumber" so that Outlook can display the user extension without anyone having to key in this information.
.
- References:
- Clone Field in Active Directory
- From: MK
- Re: Clone Field in Active Directory
- From: Mathieu CHATEAU
- Re: Clone Field in Active Directory
- From: MK
- Clone Field in Active Directory
- Prev by Date: Re: ad and dns setup
- Next by Date: Re: Need to force logoff for one user only at night
- Previous by thread: Re: Clone Field in Active Directory
- Next by thread: Renaming domain name
- Index(es):
Relevant Pages
|