Pattern Buffer:

  • About
  • Categories

  • Archives

    • 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

10.5 AD plugin slow logins related to macAddress query

April 15, 2008 — 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. Tags: Active Directory, AD plugin, DirectoryService, ldapsearch, macAddress, slow login. 6 Comments »

rsync 3 report update

April 15, 2008 — Kyle Crawford

I’ve posted about my rsync experiences in the past.  And results of a prerelease of rsync 3. Anyway I’ve been doing some testing with the final release versions of rsync 3.

It does a good job.  With a couple of patches, it will even preserve file flags and creation times to pass every backup bouncer metadata test.

Unfortunately it is slow compared to the old rsyncx.  A job that took 1.5 hours with rsyncx takes about 6 hours with rsync 3 with extended attribute support turned on.   But that time is for syncing a couple terabytes of data, so if you aren’t comparing that much data, the performance hit won’t be as dramatic.

For a backup that passes the backup bouncer tests, we’ll have to deal with the speed trade off.  Plus rsync 3 is being actively updated and is already much more stable than any previous version of rsync for Mac OS X.

Bombich has already integrated it into Carbon Copy Cloner, and he has a nice updated guide for compiling it with the required patches.

Posted in rsync. Tags: backup bouncer, bombich, ccc, flags, metadata, rsync 3, rsyncx, speed, uchg. Leave a Comment »
Blog at WordPress.com. • Theme: Garland by Steven Wittens and Stefan Nagtegaal.
  • Blogroll

    • AFP548.com
    • Big Nerd Ranch Blog
    • Bill Bumgarner's Blog
    • Jaharmi’s Irreality
    • Mac Developer Network
    • Mac OS X Internals
    • MacEnterprise
    • Managing OS X