<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html xmlns="http://www.w3.org/1999/xhtml">

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>Mac OS X登录代理设置</title>

<!--(Meta)==========================================================-->

<meta http-equiv=Content-Type content="text/html; charset=utf-8" />
<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=530>
<meta name=layout-width content=1060>
<meta name=date content="02 8, 2011 9:17:37 PM">


<!--(Links)=========================================================-->

<link href="../../../adventnet1.css" rel=stylesheet type="text/css" />



<!--(Style Sheet)===================================================-->

<style>
<!--

p {
	font: normal 14px Helvetica sans-serif;
	line-height: 2;
}

/*=(Generated Code)=================================================*/
/*=(WARNING: DO NOT EDIT OR DELETE THIS SECTION!)===================*/
/*begin!kadov{{=====================================================*/ 
LI.kadov-p {
	font: normal 14px Helvetica sans-serif;
	line-height: 2;
}
/*}}end!kadov=======================================================*/ 



-->
</style>


</head>

<!--(Body)==========================================================-->


<body>

<h1>Mac OS X登录代理：</h1>
<br />
<p>ADSelfService Plus的Mac OS X登录代理帮助活动目录用户使用Mac客户端在OS X登录界面中自己重置密码、解锁账户。部署步骤如下：</p>

<p><strong>说明：</strong>ADSelfService Plus登录代理支持<strong>OS X 10.6及以上版本</strong>。</p>
<br />
<h1>安装步骤：</h1>

<ol>
	
	<li class=kadov-P-CNumbered><p class=Numbered>找到Mac OS X登录代理安装文件，位于ADSelfService Plus安装目录的bin文件夹总，文件名称为ADSelfServicePlusMacLoginAgent.pkg</strong>。</p></li>
	
	<li class=kadov-P-CNumbered><p class=Numbered>复制<strong>ADSelfServicePlusMacLoginAgent.pkg</strong>文件到Mac机器。</p></li>
	
	<li class=kadov-P-CNumbered><p class=Numbered>双击ADSelfServicePlusMacLoginAgent.pkg文件开始安装。</p></li>
	
	<li class=kadov-P-CNumbered><p class=Numbered>在介绍页面点击<strong>继续</strong></p></li>
    <img src="../../images/mac-os-installation-1.png" title="Mac OS X登录代理设置 - Introduction Window" alt="Mac OS X登录代理设置 - Introduction Window" />
    <li class=kadov-P-CNumbered><p class=Numbered>在安装类型创建选择安装位置后点击<strong>安装</strong>。</p></li>
    <img src="../../images/mac-os-installation-2.png" title="Mac OS X登录代理设置 - Install Location" alt="Mac OS X登录代理设置 - Install Location" />
    <li class=kadov-P-CNumbered><p class=Numbered>之后要你输入你的用户和密码。</p></li>
    <img src="../../images/mac-os-installation-3.png" title="Mac OS X登录代理设置 - Authentication" alt="Mac OS X登录代理设置 - Authentication" />
    <li class=kadov-P-CNumbered><p class=Numbered>输入ADSelfService Plus <strong>服务器名称</strong>和<strong>端口号</strong></p></li>
    <img src="../../images/mac-os-installation-4.png" title="Mac OS X登录代理设置 - Server Name" alt="Mac OS X登录代理设置 - Server Name" /><br /><br />
    <img src="../../images/mac-os-installation-5.png" title="Mac OS X登录代理设置 - Port Number" alt="Mac OS X登录代理设置 - Port Number" />
    <li class=kadov-P-CNumbered><p class=Numbered>在汇总窗口中点击<strong>关闭</strong>完成安装。</p></li>
    <img src="../../images/mac-os-installation-6.png" title="Mac OS X登录代理设置 - Summary" alt="Mac OS X登录代理设置 - Summary" />
    <li class=kadov-P-CNumbered><p class=Numbered>安装完成后，在登录界面就会显示重置密码/解锁图标。</p></li>
    <img src="../../images/mac-os-installation-7.png" title="Mac OS X登录代理设置 - Login Screen" alt="Mac OS X登录代理设置 - Login Screen" width="648" />
 
</ol>

<br>
<h1>定制：</h1>
<p>这里讲解如何定制Mac OS X登录代理功能。例如服务器名称、端口号、按钮图标等。打开<strong>/Library/Application Support/ADSSPLoginAgent/config.plist</strong>文件，自定义设置如下：</p>
<br>
<h1 style="font-size:14px">配置服务器名称和端口号：</h1>
<ol>	
	<li class=kadov-P-CNumbered><p class=Numbered>打开<strong>终端</strong></p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>运行以下命令进行更改<strong>sudo /usr/libexec/PlistBuddy -c 'set :SERVERNAME 192.168.43.90' "/Library/Application Support/ADSSPLoginAgent/config.plist"</strong>。把192.168.43.90替换成你真正使用的ADSelfService Plus服务器IP。</p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>更改端口的命令：<strong>sudo /usr/libexec/PlistBuddy -c 'set :PORTNUMBER 8443' "/Library/Application Support/ADSSPLoginAgent/config.plist"</strong>。替换8443为你真正在使用的端口。</p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>在登录界面中验证更改。</p></li>
</ol>

<h1 style="font-size:14px">定制图标和按钮名称：</h1>
<ol>	
	<li class=kadov-P-CNumbered><p class=Numbered>打开<strong>终端</strong></p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>更改图标的命令：<strong>sudo /usr/libexec/PlistBuddy -c 'set :IMAGEPATH /Users/testuser/Desktop/sample-icon.png' "/Library/Application Support/ADSSPLoginAgent/config.plist"</strong>。替换图片路径为你真正的图片。</p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>更改按钮名称的命令：(<b>重置密码/解锁账户</b>将显示在登录窗口)<strong>sudo /usr/libexec/PlistBuddy -c 'set :BUTTONTEXT Forgot Password?' "/Library/Application Support/ADSSPLoginAgent/config.plist"</strong>。替换Forgot Password?为你真正要使用的文字。</p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>在登录界面中验证更改。</p></li>
	<p><b>说明：</b>如果指定的图片不存在，将使用默认图标。</p>
</ol>

<br>
<h1>卸载步骤：</h1>
<ol>	
	<li class=kadov-P-CNumbered><p class=Numbered>打开<strong>终端</strong></p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>打开<b>/Library/PrivilegedHelperTools/</b></p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>删除<b>ADSSPLoginAgent</b></p></li>
	<li class=kadov-P-CNumbered><p class=Numbered>在登录界面中验证更改。</p></li>
</ol>


<div style="font:12px arial; padding:3px; color:#666666;"> <div style="float:left;">版权所有 &#169; 2016, <a href="http://www.zohocorp.com.cn" target=_blank>卓豪(北京)技术有限公司</a>，保留一切权利</div> </div>

</html>
