Languages

Mac OS X Server 10.3 or later: Enabling VPN-PPTP access for users in an LDAP domain

In Mac OS X Server 10.3 or later, you can use a command-line tool to enable PPTP-VPN connections for users who are in an LDAP domain.

This resolves a situation in which users can establish a VPN connection via PPTP to a Mac OS X Server that, once established, is not used by any network traffic.

An error message similar to this may appear in the server's VPN and system logs:

    "MPPE required, but keys are not available."

This affects Mac OS X Server versions 10.3 through 10.6.x.   You must have Mac OS X Server version 10.3.3 or later before following these steps.

  1. Run the tool /usr/sbin/vpnaddkeyagentuser as root with the LDAP node (directory in which users are present) name as the argument. For example, if the server that's running the VPN Service is also the LDAP Master, you would enter this command in Terminal:

    sudo /usr/sbin/vpnaddkeyagentuser /LDAPv3/127.0.0.1

    If the server that's running the VPN Service is not an LDAP Master, and the LDAP directory is on a different computer, use the IP address of the LDAP server in the command. For example, if the LDAP server is at 17.221.67.87, enter this command in Terminal:

    sudo /usr/sbin/vpnaddkeyagentuser /LDAPv3/17.221.67.87

  2. The tool will prompt for username and password.

    a. If the VPN Server is the LDAP master, type in the administrator name and password of the server.

    b. If the LDAP directory is on a different server, type in the administrator name and password of the server that hosts the LDAP directory (or the administrator name and password that is used to add users to the LDAP directory in Workgroup Manager). The tool will add a user to the LDAP directory and set up additional configuration elements in the VPN Server so that it can support PPTP.

  3. Configure PPTP in the VPN Service Settings panel of the Server Admin.
  4. Start VPN Service.
Last Modified: Feb 15, 2011
Helpful?
Yes
No
  • Last Modified: Feb 15, 2011
  • Article: HT3104
  • Views:

    null

Additional Product Support Information

Start a Discussion
in Apple Support Communities
See all questions on this article See all questions I have asked