Pattern Buffer:

Kyle Crawford

Menu

Skip to content
  • Home
  • About

Tag Archives: slow login

10.5 AD plugin slow logins related to macAddress query

Posted on April 15, 2008 by Kyle Crawford

The slow login times in the Leopard AD plugin seem to be related to a search by macAddress.  If you killall -USR1 DirectoryService, and login on a Leopard machine bound to AD, you’ll notice a query on macAddress in the /Library/Logs/DirectoryService/DirectoryService.debug.log. I am not sure the purpose of this query, but our computer objects don’t even use the macAddress attribute, so the query always results in no records found.

I can manually execute the same query and the time almost perfectly matches the delay I see with logins; about 45 seconds.

time ldapsearch -v -w password -x -h domaincontroller.domain.forest.com -D username@domain.forest.com -b "DC=domain,DC=forest,DC=com" "(&(objectCategory=cn=computer,cn=schema,cn=configuration,dc=forest,dc=com)
(macAddress=00:1a:22:ee:31:ac))"

Just substitute your own domain, forest, domain controller, username, password, and mac address etc to test.

I’ve tried manually mapping macAddress to another attribute, but it didn’t make a difference, so I don’t have any workaround to offer. Adding the macAddress attribute to your computer objects in AD might speed things up, but I have not tested this.  I’ve notified Apple of the issue in radar 5752763, which is marked as a Duplicate of 5679705.  If you see this macAddress query taking a long time, please report this to Apple so it can get fixed sooner rather than later.  Actually, this same query is used during the join process, which may explain the long join times while it searches for an existing computer.

Posted in Active Directory, Deployment, Mac OS X | Tagged Active Directory, AD plugin, DirectoryService, ldapsearch, macAddress, slow login | 6 Comments

Archives

  • February 2016
  • May 2014
  • February 2014
  • October 2013
  • June 2013
  • May 2013
  • April 2013
  • September 2012
  • August 2012
  • May 2012
  • February 2012
  • December 2011
  • November 2011
  • August 2011
  • July 2011
  • February 2011
  • May 2010
  • April 2010
  • February 2010
  • October 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007

Meta

  • Create account
  • Log in
Create a free website or blog at WordPress.com.
  • Subscribe Subscribed
    • Pattern Buffer:
    • Join 32 other subscribers
    • Already have a WordPress.com account? Log in now.
  • Privacy
    • Pattern Buffer:
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started