測試.p12密鑰存放區檔案和連線

Jamf Connect 說明文件

Solution
Application
Jamf Connect
Content Type
技術說明文件
Utilities & Services
ft:locale
zh-TW

  1. 使用下列命令,透過ldapsearch命令列工具測試配置:
    LDAPTLS_IDENTITY="LDAP Client" ldapsearch -uLLL -w 'USERPASSWORDGOESHERE' -D 'USERNAME@GOOGLEDOMAIN.EXT' -H ldaps://ldap.google.com -b 'dc=USERNAME@GOOGLEDOMAIN.EXT'
    
    替換在命令標誌之後命令檔中的下列欄位::
    -w使用者的密碼。在單引號中放入密碼。(例如,'userP@$$w*rd')
    -D以使用者主體名稱(UPN)或電子郵件地址格式顯示使用者的使用者名稱(例如,user.connect@example.com
    -b以DC格式顯示使用者的使用者名稱(例如, dc=user.connect@example.com
  2. 確認您的認證結果成功。
    Note: 這些是樣本結果。
    成功(除了使用者資訊外,您的結果可能還包括群組成員資格的相關資訊。)
    admin@macos-11 ~ % LDAPTLS_IDENTITY="LDAP Client" ldapsearch -uLLL -w theRightPasswordGoesHere -D 'first.last@example.com' -H ldaps://ldap.google.com -b 'dc=first.last@example.com'
    dn: dc=user,dc=connect@example,dc=com
    ufn: user.connect@example.com
    objectClass: top
    objectClass: domain
    objectClass: dcObject
    dc: user
     
    dn: ou=Groups,dc=first,dc=last@example,dc=com
    ufn: Groups, first.last@example.com
    objectClass: top
    objectClass: organizationalUnit
    ou: Groups
     
    dn: ou=Users,dc=first,dc=last@example,dc=com
    ufn: Users, first.last@example.com
    objectClass: top
    objectClass: organizationalUnit
    ou: Users
    description: OrganizationName
    不成功:使用者未知且輸入的密碼不正確。
    admin@macos-11 ~ % LDAPTLS_IDENTITY="LDAP Client" ldapsearch -uLLL -w wrongpassw0rd -D 'first.last@example.com' -H ldaps://ldap.google.com -b 'dc=first.last@example.com'
    ldap_bind: Invalid credentials (49)
        additional info: Incorrect password
    不成功:使用者屬於Google Workspace網域,但不屬於允許透過此LDAP伺服器進行認證的使用者群組。
    admin@macos-11 ~ % LDAPTLS_IDENTITY="LDAP Client" ldapsearch -uLLL -w SuperSecretPassword -D 'first.last@example.com' -H ldaps://ldap.google.com -b 'dc=first.last@example.com'
    ldap_bind: Insufficient access (50)
        additional info: Not authorized to authenticate password
    不成功:缺少LDAP憑證或權限不正確(亦即,未限定為允許所有App存取,或限定為使用者級而非系統級憑證),或admin.google.com中的LDAP服務已關閉。
    admin@macos-11 ~ % LDAPTLS_IDENTITY="LDAP Client" ldapsearch -uLLL -w macOSJNUC.8 -D 'first.last@example.com' -H ldaps://ldap.google.com -b 'dc=first.last@example.com'
    ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)