How do you specify target OU when adding to active directory
We are trying to add system to domain using active directory, and we are getting error no user was found for x@example.com, trying next ldap server. We have multiple OU's here and wondering how or if we can specify a specific OU that we have rights to?
Responses
I don't get it - what system? Are you trying to add a RHEV-M system to a Windows Active Directory? Or a RHEV-H host? In either case - why? The requirement for Windows for RHEV-M went away with RHEV 3.0.
If trying to add a Windows VM to Active Directory, the rules are exactly the same as if that VM were a physical machine.
But I don't get what you're trying to do.
- Greg Scott
I believe the "-user" is what is causing issues.
This is the syntax I utilize for our environment.
# rhevm-manage-domains -action=add -domain='corp.company.com' -provider=activeDirectory -user='ldap_svc@corp.company.com' -passwordFile=/root/.corp-psw
I believe a best-practice is to create a "service account" in AD which has the ability to browse the directory (which is what we have done).
Also - you should validate that your system is able to retrieve the LDAP/AD SRV DNS records for the domain you are using.
# dig SRV _kerberos._udp.corp.company.com
# nslookup -type=SRV _ldap._tcp.corp.company.com
# host -t SRV _ldap._tcp.corp.company.com
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
