home

Boost Blog

Archive for April, 2009

April 29th, 2009

Extracting Active Directory SIDs with Ruby

Posted by jeremy on April 29th, 2009

Getting user and group information from Active Directory via LDAP is nearly easy, but I came across one hurdle. If you retrieve a user, you might get something like this:

{
  :smaccountname => ['jeremy'],
  :dn => ‘["CN=Jeremy Wells,CN=Users,DC=domain,DC=boost,DC=co,DC=nz"],
  :primarygroupid => ['1114'],
  :objectsid => ["010500000000000525000000\210B ?\23302r\255ոT040000"]
}

If you then wanted to get the users primary group, you’d need to search using that primary group id. But you’d find there is no corresponding id on the group object, which looks as thus:

{
  :samaccountname=>["Students"],
  :dn=>["CN=Students,OU=Groups,DC=domain,DC=boost,DC=co,DC=nz"],
  :objectsid=>["010500000000000525000000\210B ?\23302r\255ոZ040000"],
  :name=>["Students"]
}

But notice the binary field :objectsid. This is the binary form of the string you may see sometimes when using AD, called SID, and it looks something like “S-1-5-21-123-456-789″. In order to find the users group you would take the :primarygroupid and the users :objectsid to generate the groups SID.

Space Intruder Detector (SID)

Space Intruder Detector (SID) UFO © ITV Global Entertainment

more »

Tags: active directory, ruby, windows
Posted in: Ruby on Rails
No Comments
 
April 10th, 2009

Using Google Optimizer to improve your conversion rate

Posted by Nathan on April 10th, 2009

It seems that week on week Google introduces new tools without fanfare and it’s easy for these to slip by unnoticed. A year or so ago Google Web Optimizer appeared in the Adwords toolbar. There hadn’t been much of a buzz about it appearing but who could ignore a link that promised to ‘optimize’ your website, and from Google no less.

Taking a closer look at Google Web Optimizer it was clear this is a very useful tool in the web designers toolkit. In a nutshell it allows developers and designers to test variations of design, copy or even whole pages.

more »

Tags:
Posted in: Cool tools, Design
No Comments
 
  • Categories

    • Agile (3)
    • Cool tools (5)
    • Curriculum (2)
    • Design (6)
    • Development (14)
    • Drupal (1)
    • e-Learning (6)
    • Publishing (1)
    • Random thoughts (2)
    • Ruby on Rails (8)
    • Social media (6)
    • Usabilty (2)
  • Archives

    • July 2010 (6)
    • June 2010 (2)
    • April 2010 (1)
    • March 2010 (1)
    • February 2010 (1)
    • January 2010 (3)
    • December 2009 (1)
    • November 2009 (1)
    • October 2009 (4)
    • September 2009 (2)
    • August 2009 (3)
    • July 2009 (6)
    • June 2009 (1)
    • May 2009 (1)
    • April 2009 (2)
    • March 2009 (1)
  • Boost Loves Design

    • I love Typography
    • IntuitionHQ | easy website usability
    • OMG It even has a watermark
    • Follow me on Twitter
    © Boost Limited.
    All rights reserved.
    CONTACT US
    info@boost.co.nz
    tel. (04) 939 0062
    fax. (04) 939 0063

    Level 6, 175 Victoria Street
    PO Box 11504, Wellington
    New Zealand