# Google LDAP Deployment directions Instructions

[![google-ads-sizes-update-2021.jpg](https://wiki.wearecornerstone.com/uploads/images/gallery/2025-09/scaled-1680-/google-ads-sizes-update-2021.jpg)](https://wiki.wearecornerstone.com/uploads/images/gallery/2025-09/google-ads-sizes-update-2021.jpg)

These instructions follow a Series of Guides by Google on LDAP. The [article](https://support.google.com/a/answer/9089736?hl=en#basic-instructions&zippy=) demonstrates many types of Systems Including [PaperCut-MF](https://www.papercut.com/help/manuals/ng-mf/common/sys-user-group-sync-gcd/) . The instructions Below are part of the [macOS Deployment](https://support.google.com/a/answer/9089736?hl=en#basic-instructions&zippy=%2Cpapercut-mf-and-ng%2Cmacos) article [Deployment phase](https://support.google.com/a/answer/9089736?hl=en#deployment) which comes after the [Preparation Phase](https://support.google.com/a/answer/9089736?hl=en#prep) which was completed on a CCA Device beforehand.   
  
This Deployment phase instructs as follows:

#### System requirements

- The macOS must be Catalina Version 10.15.4 or later.
- A Google super admin user ID is required to complete step 1 in the preparation phase.<span style="color: rgb(241, 196, 15);"> (already completed)</span>
- You need local admin permissions to perform this configuration.

## 1. Copy Files  


Copy the Mac Profile file <span style="background-color: rgb(236, 240, 241); color: rgb(52, 73, 94);">GOOGLE\_LDAP\_PROFILE2 (1).mobileconfig</span>, and the XML config *<span style="background-color: rgb(236, 240, 241); color: rgb(52, 73, 94);">ldap.google.com.plist</span>* file generated, and the python script <span style="color: rgb(52, 73, 94);">*<span style="background-color: rgb(236, 240, 241);">ldaps\_macos\_script.py</span>*</span> to the `/tmp/` directory on the macOS device.

<p class="callout warning">Files attached in this Document or this [Link](https://drive.google.com/drive/folders/1Lg93UCf_cRIeFDEFtNt5JortVtsyh0CZ?usp=drive_link)</p>

## 2. Install Mobile Profile

This step involves installing the mobile profile, which is crucial for integrating with the Secure LDAP server.

```
GOOGLE_LDAP_PROFILE2 (1).mobileconfig
```

## 3. Install Python 3

Download and install Python 3 from the official Python website.

```
https://www.python.org/ftp/python/3.13.5/python-3.13.5-macos11.pkg
```

## 4. Install Dependencies

Once Python 3 is installed, open a terminal and run the following command to install the required `pyobjc-framework-opendirectory` dependency:

```
python3 -m pip install pyobjc-framework-opendirectory
```

## 5. Execute Python Script

Run the Python script to configure the Secure LDAP settings:

```
sudo python3 /tmp/ldaps_macos_script.py /tmp/ldap.google.com.plist
```


## 6. Restart your Machine

Restart the macOS machine

## 7. Connect to Secure LDAP and Create Mobile Account

After the script executes, run the following command to connect to the Secure LDAP server and set up a home path and mobile account(s):

```
sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount -n $uid -v
```

<p class="callout info">**Tip:** Replace <span style="color: rgb(224, 62, 45);">*$uid*</span> with the username part of the email address associated with the user’s Google account. For example, jsmith is the username part for jsmith@solarmora.com.</p>

When prompted for the *SecureToken admin user name*, enter your admin username, and enter your password in the next prompt. This will add **$uid** into the FileVault. This is needed if the macOS disk is encrypted.

####  (Optional) Set the login screen preference

1. Go to **System preferences &gt; Users &amp; Groups &gt; Login Options** at the bottom left.
2. Unlock the lock by providing admin credentials.
3. Change the *Display login window as* to **Name and password.**

## 8. Limitations and guidelines  
  


- For users signing in to macOS using their Google credentials, their Workspace account username must be different from their macOS user profile user ID, or sign-in is blocked.
- Once a user starts signing in to macOS using Google credentials, user password management (reset or recovery) must happen on the Google website (for example, at *myaccount.google.com* or in the Google Admin console). If you choose to do password management using a third-party solution, then make sure the latest password is synchronized with Google.
- If the admin creates a new user or resets an existing user’s password with the *Ask for a password change at the next sign-in* setting turned on, the user cannot sign in to Mac using the temporary password set by the admin.   
    Workaround: The user needs to sign in to Google using another device (for example, their mobile device or other desktop device), set a permanent password, and then sign in to macOS using the new password.
- The Mac must be connected to a working internet connection so that *ldap.google.com* is reachable during the first sign-in after the above configuration. Any subsequent sign-ins won't need Internet access as long as you opted to set up a <span style="text-decoration: underline;">mobile account.</span>
- Google Secure LDAP integration with macOS is tested on macOS Catalina, Big Sur, and Monterey.