“Unplugged” LIDNUG online talk with me Monday

Update: You can download an audio version of the below talk here.

Tomorrow (Monday Jan 24th) I’m doing another online LIDNUG session.  The talk will be from 3:00pm to 4:30pm (Pacific Time).  I do these talks a few times a year and they tend to be pretty fun.  Attendees can ask any questions they want to me, and listen to me answer them live via LiveMeeting.  We usually end up having some really good discussions on a wide variety of topics.  Any topic is fair game: technical, strategy, community, college basketball, etc.

You can learn more and register to attend the online event for free here. I’ll update this post with a download link to a recorded audio version of the talk after the event is over.

Hope to get a chance to chat with some of you there!

Scott

P.S. In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu

Published Sunday, January 23, 2011 11:31 AM by ScottGu
Filed under: , ,

Comments

# re: “Unplugged” LIDNUG online talk with me Monday

Sunday, January 23, 2011 11:51 PM by tan_vision_12_2010

Coool,it will be great opportunity for young developer's like me to great and extract knowledge from you as much as i Can .plus always great learning from you

Regards

Rockyy

# re: “Unplugged” LIDNUG online talk with me Monday

Monday, January 24, 2011 7:08 AM by shrikant12

Hi,

I have a web page through this page when I try to add a new user then users created successfully but when try resetting their password then I am getting errors’

add New user successfully

     public static void AddUser(ADUser adUser)

       {

           // Local variables

           DirectoryEntry oDE = null;

           DirectoryEntry oDENewUser = null;

           DirectoryEntries oDEs = null;

           try

           {

               oDE = GetDirectoryEntry(GetADPath(PROD, adUser.UserType));

               // 1. Create user account

               oDEs = oDE.Children;

               oDENewUser = oDEs.Add("CN=" + adUser.UserName, "user");

               // 2. Set properties

               SetProperty(oDENewUser, "givenName", adUser.FirstName);

               SetProperty(oDENewUser, "sn", adUser.LastName);

               SetProperty(oDENewUser, "mail", adUser.Email);

               SetProperty(oDENewUser, "sAMAccountName", adUser.UserName);

               oDENewUser.CommitChanges();

               /// 4. Enable account            

               EnableAccount(oDENewUser);

               // 3. Set password

               //SetPassword(oDENewUser, adUser.Password);

               SetPassword1(oDENewUser.Path, adUser.Password);

               oDENewUser.CommitChanges();

               oDENewUser.Close();

               oDE.Close();

           }

           catch (Exception ex)

           {

               throw ex;

           }

       }

I have try the following 2 SetPassword methods but getting error.

Method 1.

    internal static void SetPassword1(string path, string userPassword)

       {

           //Local variables

           DirectoryEntry usr = null;

           try

           {

               usr = new DirectoryEntry();

               usr.Path = path;

               usr.AuthenticationType = AuthenticationTypes.Secure;

               object ret = usr.Invoke("SetPassword", userPassword);

               usr.CommitChanges();

               usr.Close();

           }

           catch (Exception ex)

           {

               throw ex;

           }

       }

The exception raised (Error Code 80072035: The server is unwilling to process the request)

Method 2.

internal static void SetPassword(DirectoryEntry de, string userPassword)

       {

           //Local variables

           //DirectoryEntry usr = null;

           string quotePwd;

           byte[] pwdBin;

           try

           {

               quotePwd = String.Format(@"""{0}""", userPassword);

               pwdBin = System.Text.Encoding.Unicode.GetBytes(quotePwd);

               de.Properties["unicodePwd"].Value = pwdBin;

               de.CommitChanges();

               //usr.Close();

           }

           catch (Exception ex)

           {

               throw ex;

           }

       }

The exception raised ("Exception has been thrown by the target of an invocation.")

Is there an easy way to tell if there is a problem with changing a password?

Please reply me as soon as possible.

Thanks.

# re: “Unplugged” LIDNUG online talk with me Monday

Monday, January 24, 2011 10:59 AM by Daniel

Hello Scott!

Is this session going to be published? if yes then where and when?

Thanks, Daniel

# re: “Unplugged” LIDNUG online talk with me Monday

Monday, January 24, 2011 5:42 PM by suminda

Hi Scott, I have missed this, I hope I can view the recorded session. if it available, Can you post the url please?

# re: “Unplugged” LIDNUG online talk with me Monday

Monday, January 24, 2011 6:48 PM by Brian H. Madsen [LIDNUG]

@Daniel,

the presentation will be recorded and uploaded to our web site - www.lidnug.org.

Cheers,

LIDNUG

# re: “Unplugged” LIDNUG online talk with me Monday

Tuesday, January 25, 2011 12:21 PM by Brij1

Really great to know this. I am excited for this session.

# re: “Unplugged” LIDNUG online talk with me Monday

Thursday, January 27, 2011 8:29 AM by ecommerce developers

Thanks for the widget ,..i was looking for this script,right away i will implement this coding on my editor,..

# re: “Unplugged” LIDNUG online talk with me Monday

Friday, January 28, 2011 6:03 AM by wycieraczki

I really like your blog.

# re: “Unplugged” LIDNUG online talk with me Monday

Sunday, January 30, 2011 3:46 AM by Brian H. Madsen [LIDNUG]

@Scott,

Tried to email you the details but for some reason it's not getting through - my overseas connection has been nearly non-existent.

The recording of your great session this last Monday has been published and your fans can get it from www.lidnug.org/archives.aspx

Thanks again for a fantastic opportunity for our members to ask you questions directly - as usual it was a brilliant session and you covered a ton of interesting topics.

Cheers,

LIDNUG

# re: “Unplugged” LIDNUG online talk with me Monday

Tuesday, February 01, 2011 2:56 AM by Hari Prasad

You have a great blog..

# re: “Unplugged” LIDNUG online talk with me Monday

Tuesday, February 15, 2011 10:55 AM by kalite kontrol

thanks for the article, really usefull site,will follow

# re: “Unplugged” LIDNUG online talk with me Monday

Friday, February 18, 2011 3:16 PM by elyor

Hi Scott!,I'm problem is website application rebuild and   published successfully to complete,and IIS 7 settings this application and web site not working?