Showing posts with label VCSA. Show all posts
Showing posts with label VCSA. Show all posts

Tuesday, October 6, 2015

VCSA 51. Интеграция с Active Directory


  1. In the "VMware vCenter Server Appliance" web site got to vCenter Server -> Authentication
    • Check "Active Directory Enabled"
    • Eneter values to fields:
      • Domain - domain name.
      • Administrator user - user principal name (UPN) with administrative rights in the domain.
      • Administrator password - password
    • For example:
  2. Go to vSphere Web Client with root account
    • Go to Administration -> Sign-On and Discovery -> Configuration -> Identity Sources
    • Click the + (green) symbol (Add Identity Source) and fill in the required information:
      • Name - Anything you want to refer to this Identity source as (typically domain name)
      • Primary Server URL: ldap://<domain server FQDN>
      • Secondary Server URL: <optional>
      • Base DN for users: distinguished name (DN) of object unit (OU) with users
      • Domain Name: <Domain Name>
      • Domain alias: <NetBIOS domain name>.
        WARNING!!! You must fill out this field. If you dont - you can't login to vSphere Web Client with AD login <domain>\<username> and option "Use Windows session authentication" don't work.
      • Base DN for groups: distinguished name (DN) of object unit (OU) with groups
      • Authentication Type: (How you want to authenticate the initial connection to your domain)
    • For example:
      • Name - MyDomain
      • Primary Server URL: ldap://mydom-dc1.com
      • Secondary Server URL: ldap://mydom-dc2.com
      • Base DN for users: OU=Users,OU=IT,DC=mydomain,DC=com
      • Domain Name: mydomain.com
      • Domain alias: mydomain
      • Base DN for groups: OU=Groups,OU=IT,DC=mydomain,DC=com
      • Authentication Type: Reuse Session
    • Select your AD server URL and click on the blue dot with an arrow ("Add to default domains").
      WARNING!!! When your domain appears in default domains list click on the blue disk icon to save your change, otherwise you will be wondering why it is not working as expected.
    • Go to Administration -> Access -> SSO Users and Groups -> Groups
      • Select internal group __Administrators__
      • Click "Add Principals"
      • Find user or group in AD domain and add to group __Administrators__
More information can find in this articles:
VMware vCenter 5.1 Installation: Part 9 (Optional SSO Configuration)
Unable to login to vCenter Server after upgrading to vCenter Server 5.1

Monday, September 12, 2011

Замена SSL сертификата на VMware vCenter Server Appliance (VCSA)

- VCSA web interface http://<vcsa_server>:5480
  • prepare your_cert.cer and your_key.key file and copy these files to VCSA server in temporary folder
  • create server.pem file:
      cat your_key.key > server.pem
      cat your_cert.crt >> server.pem
  • server.pem file should be like this:
      -----BEGIN RSA PRIVATE KEY-----
       <private_key>
      -----END RSA PRIVATE KEY-----
      -----BEGIN CERTIFICATE-----
       <certificate>
      -----END CERTIFICATE-----
  • copy and replace our new server.pem file to folder /opt/vmware/etc/lighttpd/server.pem
  • restart lighttpd web server:
      /etc/init.d/vami-lighttp stop
      /etc/init.d/vami-lighttp start
- Vmware vCenter service
  • prepaire rui.crt and rui.key file
  • create rui.pfx. Better way create pfx on VCSA server with this command:
    openssl pkcs12 -export -in rui.crt -inkey rui.key -name rui -passout pass:testpassword -out rui.pfx
  • connect to VCSA via SSH and create backup of these files:
    /etc/vmware-vpx/ssl/rui.*
    /usr/lib/vmware-vpx/inventoryservice/ssl/rui.*
  • copy and replace yours rui.crt, rui.key and rui.pfx to folders:
    /etc/vmware-vpx/ssl/
    /usr/lib/vmware-vpx/inventoryservice/ssl/
  • open file /etc/hosts and add one line in the beginnign of the file:
    <vcsa_ipv4_address> <VCSA_FQDN> <VCSA_host_name>for example:
    192.168.10.15 vcsa.vmware.com vcsa
  • load replacement certificates to memory:
  • restart VCSA server.
  • check that your certificate was installed correctly:
Another useful links about this theme:
vCenter Server Virtual Appliance – Changing SSL Certs Made Easy
Replacing vCenter Server 5 and ESXi Certificates