Is there a way to automatically have exchange users added to the OCS Contact list?

We are looking for a way to have all Exchange users that are SIP enabled to automatically appear in the OCS contact list?

currently i have to manually run the "LCSAddContacts.wsf" script to have the new users added. this is a real pain. you would think there is a way to simply have the Exchange GAL sync with the OCS contact list automatically? anyone know of a way?

many thanks!!!

S.
siber1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

paarunCommented:
No, there is no direct setting to get this done in OCS.
0
siber1Author Commented:
Paarun, what is the best way to manage the contact lists, we have over 4000 users to roll this out too.
is there an easy way that you can recommend to ensure that all users are included in the OC contact list, and when new people are hired they are included as well?
0
markdmacCommented:
You can easily use VBScript to ensure the users have the needed settings provided you have a single OCS server.  I can assist with that if you can confirm you only have the one OCS server.  For new users I add a right click choice in ADUC to enable OCS.  It takes no input, just right click and select Enable OCS and all properties are set.  Easy enough.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

siber1Author Commented:
Hi Mark. yes only a single OCS server.
again i understand that its easy enough to enable all new users for OCS, and that they will be searchable in ocs contact list. however, we would like to auto populate all users OC contact list with all users in the company. and if new users are added and enabled for OCS that they would automatically appear in all users OC contact list

thx
0
markdmacCommented:
The product itself won't do that, you can however use a script as I mentioned above and then just schedule that script to run on a scheduled basis to ensure new users get the same settings applied.

Offer still stands to assist with code if that solution is to your liking.

0
siber1Author Commented:
Hi Mark, thank you. Yes i'd like to take you up on your offer for the assistance with the script  : )

thx - S.
0
markdmacCommented:
You should only need to alter the one line of code, that being the server information.  Check an existing user already setup for OCS, edit their user object with ADSIEdit and check the msRTCSIP-PrimaryHomeServer value.  You can schedule the script to run daily.
'==========================================================================
'
' NAME: EnableOCS.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: http://www.thespidersparlor.com
' DATE  : 12/4/2009
' COPYRIGHT (c) 2009 All Rights Reserved
'
' COMMENT: 
'
'    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
'    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
'    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
'    PARTICULAR PURPOSE.
'
'    IN NO EVENT SHALL THE SPIDER'S PARLOR AND/OR ITS RESPECTIVE SUPPLIERS 
'    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
'    DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
'    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
'    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
'    OF THIS CODE OR INFORMATION.
'
'==========================================================================

'Edit the next line with the info for your OCS server
'Manually set one user then use ADSIEdit to check the value for msRTCSIP-PrimaryHomeServer
strPrimaryHomeServer = "CN=LC Services,CN=Microsoft,CN=OCSPOOL,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=domain,DC=local"



'Do not edit below this point
On Error Resume Next
Dim qQuery, objConnection, objCommand, objRecordSet, obj
Dim oRootDSE, strDomain

Set oRootDSE = GetObject("LDAP://rootDSE")
strDomain = oRootDSE.get("defaultNamingContext")

' other categories = computer, user, printqueue, group
qQuery = "<LDAP://" & strDomain &">;" & _
		"(objectCategory=person)" & _
       ";distinguishedName;subtree"

Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Open "Provider=ADsDSOObject;"
objCommand.ActiveConnection = objConnection
objCommand.CommandText = qQuery
Set objRecordSet = objCommand.Execute

While Not objRecordSet.EOF
    UserLDAP = objRecordSet.Fields("distinguishedName")
	Set objUser = GetObject("LDAP://" & UserLDAP)
	strPrimaryUserAddress = "sip:" & objUser.get("mail")
	bFederationEnabled = False
	nArchivingEnabled = 0
	bInternetAccessEnabled = False
	strLine = objUser.get("telephoneNumber") & ";ext=" & objUser.get("telephoneNumber")
	nOptionFlags = 256
	objUser.put "msRTCSIP-PrimaryUserAddress", strPrimaryUserAddress
	objUser.put "msRTCSIP-FederationEnabled", bFederationEnabled
	objUser.put "msRTCSIP-ArchivingEnabled", nArchivingEnabled
	objUser.put "msRTCSIP-InternetAccessEnabled", bInternetAccessEnabled
	objUser.put "msRTCSIP-Line", strLine
	objUser.put "msRTCSIP-OptionFlags", nOptionFlags
	objUser.put "msRTCSIP-PrimaryHomeServer", strPrimaryHomeServer
	objUser.put "msRTCSIP-UserEnabled", True
	objUser.setinfo
    objrecordset.MoveNext
Wend

objConnection.Close

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
siber1Author Commented:
thanks Mark! sorry haven't had time to test this out. will try this weekend.
0
npomeeCommented:
What version of OCS are you using??

And is it my understanding that you want your users to show up automatically on Office Communicator?? This can be easily done.

Here is some quick info on what we did to fix it but if this is what your after i can upload a more indepth guide on how to fix this tomorrow when i am at work.

If it the same problem we had, then this happens because your exchange server has a self signed certificate and your OCS server has its own certificate. We fixed this by created a CA server and giving exchange and OCS a custom certificate that we generated. This fixed
0
siber1Author Commented:
hi npomee, yes if you can provide more details that would be great.
again we would like any new users added to active directory/exchange to appear in everyones OCS contact list automatically.

thx in advance.
0
npomeeCommented:
hey sorry i set you a little wrong before, we been working on OCS 2K7 the past week and been having a load of problems but have fixed a majority of them. But was just talking to one of my work mates and he said the cert thing was to fix another problem but he said the contact thing is because access permission to the abs in iis.

the address book thing is just for some reason by default u dont have permission to browse to https://server/abs

u just need to change the access setting for it to a local account that has permission
for int and ext

Try that and tell me how that goes
0
siber1Author Commented:
Hi Nopmee, i just tested and i am able to open that url on the OCS server.

again, what i am looking for is an easy way for any new AD users that are SIP enabled, to automatically appear in everyones OCS contact list

thx
0
npomeeCommented:
Sorry, can you clarify?
Do you want all your sip enabled users to show up when the user logs in?
Or if you have 0 contacts, and for example hit t in the search box, any sip enabled users that start with t to show up (searches the addressbook)

Or do you mean if you create a new user and sip enable them, they dont show up at all, this is because the address book by default doesnt update untill 0130 every day, you can try manually update your address book by running abserver with the -updateur and then -syncnow switch but I did not have any luck getting that to work
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.