Skip to main content
nikos101
Inspiring
July 7, 2009
Question

objectGUID in a ms sql databse in a varchar(100) column

  • July 7, 2009
  • 1 reply
  • 2774 views

HI

I'm doing

   returnAsBinary = "objectGUID"

in a <cfldap> query.

I was thinking of storing this value returned by objectGUID in a ms sql databse in a varchar(100) column as a primary key. Can you see any pitfalls with this method?

This topic has been closed for replies.

1 reply

nikos101
nikos101Author
Inspiring
July 7, 2009

Hmm after passing this value to flex I though it would be a simple piece of data that I could pass back to CF, it turns out to be an array in flex so that makes it not possible to return to coldfusion to check it is the same as a value in the ms sql database.

nikos101
nikos101Author
Inspiring
July 8, 2009

Hmm after passing this value to flex I though it would be a simple piece of data that I could pass back to CF, it turns out to be an array in flex so that makes it not possible to return to coldfusion to check it is the same as a value in the ms sql database.

nikos101
nikos101Author
Inspiring
July 8, 2009

Mabye this is the solution from another website:


Can anyone please explain how to get the objectguid binary attribute from Active  Directory using cfldap and store it in the database? I need this so as to maintain a global unique id both in the AD and in my  database for the users.  Thanks



You'll probably have to use JLDAP for this - CFLDAP has many shortcomings that  we've used JLDAP to work around. It's a very simple API and everything works from  within CF. I've blogged a few of things we've done, so that should get you  started:


http://www.d-ross.org/index.cfm?objectid=9C65EEF0-508B-E116-6F30CA79F5BFDE07

http://www.d-ross.org/index.cfm?objectid=9C65EF0F-508B-E116-6F851C474448E08B

http://www.d-ross.org/index.cfm?objectid=9C65ED79-508B-E116-6F81AF8F75FB40AD

Terry Ryan used a lot of this work to create a CFC that you can use: