问题描述
Exchange从2007升级到2010之后,新创建的用户登录OutLook后,就会一直弹出下面的对话框,请问这个怎么解决啊?代码如下:DirectoryEntryentry=GetDirectoryObject();DirectoryEntrysubEntry=entry.Children.Find(ldapDN);DirectoryEntrydeUser=subEntry.Children.Find("CN="+dr["ADCountName"].ToString(),"user");deUser.Properties["Mail"].Value=dr["EmailAddress"].ToString();//电子邮件deUser.Properties["msExchMailboxGuid"].Value=Guid.NewGuid().ToByteArray();deUser.Properties["legacyExchangeDN"].Add(GetWebConfiguration("legacyExchangeDN")+dr["ADCountName"].ToString());deUser.Properties["homeMDB"].Value=homeMDBstr;deUser.Properties["homeMTA"].Value=homeMTAstr;deUser.Properties["msExchHomeServerName"].Add(msExchHomeServerNamestr);deUser.Properties["proxyAddresses"].Value="SMTP:"+dr["ADCountName"].ToString()+GetWebConfiguration("userDefaultEmail");deUser.Properties["mailNickName"].Add(dr["ADCountName"].ToString());deUser.Properties["msExchUserAccountControl"].Add(0);deUser.Properties["msExchRecipientDisplayType"].Value=GetWebConfiguration("msExchRecipientDisplayType");deUser.Properties["msExchRecipientTypeDetails"].Value=GetWebConfiguration("msExchRecipientTypeDetails");deUser.Properties["msExchVersion"].Value=msExchVersion;//Exchange版本号//deUser.Properties["msExchMobileMailboxPolicyLink"].Add(ConfigurationManager.AppSettings["msExchMobileMailboxPolicyLink"].ToString());deUser.Properties["showInAddressBook"].Add(GetWebConfiguration("showInAddressBook1"));deUser.Properties["showInAddressBook"].Add(GetWebConfiguration("showInAddressBook2"));string[]msExchPoliciesIncludeds=GetWebConfiguration("msExchPoliciesIncluded").Split(',');foreach(stringmsExchPoliciesIncludedinmsExchPoliciesIncludeds){deUser.Properties["msExchPoliciesIncluded"].Add(msExchPoliciesIncluded);}deUser.Properties["mDBUseDefaults"].Add(GetWebConfiguration("mDBUseDefaults"));try{deUser.CommitChanges();}catch(Exceptione){ExceptionService.Current.Handle(e);}
解决方案
本帖最后由 qq_16713295 于 2014-07-24 08:57:36 编辑
解决方案二:
是XP客户端系统吗?如果是XP,经过实践,就是证书的认证的问题,应该是证书认证通配符不一样就会这样。。不是win7,可以自动适配。