Re: Clone Field in Active Directory

Tech-Archive recommends: Fix windows errors by optimizing your registry



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@xxxxxxxxxxxxxxxxxxxxxxx
hello,

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@xxxxxxxxxxxxxxxxxxxxxxx
Hi 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.






.



Relevant Pages

  • Re: Clone Field in Active Directory
    ... I am using Unity 4 not the latest one. ... Mathieu CHATEAU ... I have a Cisco Unity Voice Mail integrated to my AD, ... an atribute called "ciscoEcsbuDTMfId" that contains the user extension. ...
    (microsoft.public.windows.server.active_directory)
  • Re: cisco integration with LDAP
    ... I would like to authenticate my cisco vpn clients to ... Active directory it gets reflected on the cisco router as well. ...
    (comp.dcom.sys.cisco)
  • cisco integration with LDAP
    ... I would like to authenticate my cisco vpn clients to ... Active directory it gets reflected on the cisco router as well. ...
    (comp.dcom.sys.cisco)
  • Re: Clone Field in Active Directory
    ... I have a Cisco Unity Voice Mail integrated to my AD, and Cisco host has an atribute called "ciscoEcsbuDTMfId" that contains the user extension. ... 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. ...
    (microsoft.public.windows.server.active_directory)