9Aug/072
User Profile Default Access Account
This ended up being one of those simple commands to create that took way to long to figure out how to create. Fortunately though there is an API available for setting this property (unlike most of the profile import related tasks such as the timer jobs). You can set this manually by going here: Shared Services Administration: SSPName > User Profile and Properties > Configure Profile Import. Or you can do the same thing programmatically using UserProfileConfigManager object - you need to get a DataSource object from an instance of the UserProfileConfigManager and then set the value using the SetDefaultImportAccount() method of the DataSource object:
1: public static void UpdateAccount(string sspname, string username, string password)
Tagged as: Commands, MOSS, Security, STSADM, User Profiles
Leave a comment
Need help with your SharePoint deployment or custom development? Contact Gary Lapointe at gary@aptillon.com
Check out the books I've contributed to at Amazon.com:
Check out the books I've contributed to at Amazon.com:
Categories
- Article
- General
- PowerShell Cmdlets
- PowerShell Scripting
- Speaking
- STSADM Commands
- Uncategorized
- Scripts
Tags
Application Pool
Audiences
Audit
Backups
Best Practices Conference
Books
Bugs
Cmdlets
CodePlex
Columns
Commands
Content Types
Databases
Downloads
Event Receivers
Features
Fields
Files
Lists
MOSS
MVP
My Sites
Navigation
Page Layouts
Pages
PictureUrl
PowerShell
Quota
Search
Security
SharePoint 2010
SharePoint Foundation 2010
SharePoint Server 2010
Site Collection
Site Directory
STSADM
Template
Timer Jobs
Updates
Upgrade
User Profiles
Web
Web Application
Web Parts
WSS
Archives
Copyright © 2011
Copyright © 2007 – 2011 Falchion Consulting, LLC
All rights reserved. Absolutely no portions of this websites content in text, images and or digital media format may be reproduced or re-transmitted in any form or media without the express written consent of Gary Lapointe.
Copyright © 2012 SharePoint Automation
Go to top ↑
Go to top ↑
January 26th, 2009 - 12:28
Hi Gary,
First off I want to say thanks for the hard work you have put into these STSADM extensions. I truly appreciate them.
I was wondering if you could create a new STSADM command to add a Custom Source under Configure Profile Import. Back in the day we had to use a different NETBIOS name on AD creation because we were collapsing an NT domain that already had the prefix of the DNS namespace.
For example:
On AD creation we typed: ntdom.com and the wizard wanted to pick NTDOM for the NETBIOS backward compatible name but NTDOM was already as a NT domain namespace. So we picked let’s say NEWNTDOM as the NETBIOS name and kept the FQDN as ntdom.com. A bug in SharePoint gets introduced when it assumes the NETBIOS name is the DNS prefix word1(NTDOM) of ntdom.com. So under Import Profile data reads: Current domain (NTDOM) which is wrong. Bug Bug bug.
So we have to do a Custom source as:
NAME: NEWNTDOM, Type: Active Directory, Source: Auto Discover, Search Base/DN: dc=ntdom,dc=com.
I want to automate this step so we do not have to do the GUI dance. Is it possible to knock off this new STSADM command? How about gl-setimportconnection ?
Thanks!
Jim
January 26th, 2009 - 18:09
Thanks for feedback! Unfortunately I don’t have time to create commands unless I need them for an issue I’m facing. If you really need me to help you with creating this it would have to be done as billable work – I’ll be happy to write you up a quote if you’re interested.