<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I hope someone out there can help me solve the last piece of a puzzle I've been banging my head over getting OmniOS to cooperate with an Active Directory LDAP setup with uid/gid mapping set via AD Unix Attributes. I've been using winbind previously to do this mapping via rfc2307, but, I'd like to get rid of it and use LDAP instead. I seem to have all usernames/uids/gids mapping correctly thus far, but, the problem is none of the groups have any members shown via getent group. It'll list the groups and the proper group IDs as set in AD, but, no members :( I know there's gotta be some simple mapping I'm missing or set incorrectly, but I just can't seem to find it.</div><div class=""><br class=""></div><div class="">Any help is appreciated.</div><div class=""><br class=""></div><div class="">By the way, once the problem is fixed here, maybe it should be added to <a href="http://omnios.omniti.com/wiki.php/GeneralAdministration#ConfiguringLDAP" class="">http://omnios.omniti.com/wiki.php/GeneralAdministration#ConfiguringLDAP</a> since it's still "TODO" ;)</div><div class=""><br class=""></div><div class="">Here's the binding method I'm using:</div><div class=""><br class=""></div><div class="">#####</div><div class=""><br class=""></div><div class=""><div class="">ldapclient manual \</div><div class=""> -a credentialLevel=proxy \</div><div class=""> -a authenticationMethod=simple \</div><div class=""> -a "proxyDN=cn=ldap_service_user,cn=Users,dc=ad,dc=xyz,dc=com" \</div><div class=""> -a defaultSearchBase=dc=ad,dc=xyz,dc=com \</div><div class=""> -a domainName=<a href="http://ad.xyz.com" class="">ad.xyz.com</a> \</div><div class=""> -a "defaultServerList=10.x.x.x" \</div><div class=""> -a attributeMap=passwd:gecos=cn \</div><div class=""> -a attributeMap=shadow:gecos=cn \</div><div class=""> -a attributeMap=group:gecos=cn \</div><div class=""> -a attributeMap=passwd:uid=sAMAccountName \</div><div class=""> -a attributeMap=shadow:uid=sAMAccountName \</div><div class=""> -a attributeMap=passwd:homedirectory=unixHomeDirectory \</div><div class=""> -a attributeMap=shadow:shadowLastChange=pwdLastSet \</div><div class=""> -a attributeMap=group:uniqueMember=member \</div><div class=""> -a objectClassMap=passwd:posixAccount=user \</div><div class=""> -a objectClassMap=shadow:shadowAccount=user \</div><div class=""> -a objectClassMap=group:posixGroup=group \</div><div class=""> -a "serviceSearchDescriptor=group:dc=ad,dc=xyz,dc=com?sub?(&(objectClass=group)(gidNumber=*))" \</div><div class=""> -a "serviceSearchDescriptor=passwd:cn=users,dc=ad,dc=xyz,dc=com?sub?(&(objectClass=user)(uidNumber=*))"</div></div><div class=""><br class=""></div><div class=""># I've also tried adding this to no avail:</div><div class=""><div class=""># -a attributeMap=group:gid=sAMAccountName \</div></div><div class=""><br class=""></div># fix nsswitch<br class="">
<div class="">cp /etc/nsswitch.dns /etc/nsswitch.conf</div><div class="">sed -i 's@passwd: files@passwd: files ldap@g' /etc/nsswitch.conf</div><div class="">sed -i 's@group: files@group: files ldap@g' /etc/nsswitch.conf</div><div class=""><br class=""></div><div class=""><div class=""># reset the client and flush cache</div><div class="">svcadm disable svc:/network/ldap/client:default</div><div class="">sleep 2</div><div class="">svcadm enable svc:/network/ldap/client:default</div><div class="">sleep 1</div><div class="">svcs svc:/network/ldap/client:default</div><div class="">nscd -i passwd</div><div class=""><br class=""></div><div class=""># show connection sanity</div><div class="">/usr/lib/ldap/ldap_cachemgr -g</div></div><div class=""><br class=""></div><div class=""># profit</div><div class=""><div class="">getent passwd</div><div class="">getent group</div></div><div class=""><br class=""></div><div class="">#####</div><div class=""><br class=""></div><div class="">I've also set this in /etc/system so it'll handle more than the 16 group limit (which previously solved issues I was having in winbind)</div><div class=""><br class=""></div><div class="">set ngroups_max = 1024 <br class=""><br class=""></div><br class="">
<br class=""></body></html>