BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-10-2008, 07:19 PM   #1
BlueBerry2007
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 7100i
Carrier: Nextel
Posts: 64
Default DIY Mobile Admin, will this work?

Please Login to Remove!

I'm tasked with unlocking and resetting Windows domain users password, even after hours--first tier support aren't allowed to do.

Since there are really no open source tools and the ones available are expensive (and I don't see our company buying them) what are your thoughts on this ...

Set up IIS web server on my XP workstation.
Create a web interface (cgi, asp, whatever) that runs a script.
The script runs the command line "net user"

The web interface will work accordingly with the "net user" command.

And I access that web interface via Blackberry Browser (MDS, it's secure right?)

Thoughts???
Offline  
Old 09-11-2008, 03:36 AM   #2
DavidAdams
Talking BlackBerry Encyclopedia
 
DavidAdams's Avatar
 
Join Date: Sep 2007
Location: Belfast
Model: NotYe
PIN: N/A
Carrier: O2
Posts: 470
Default

Not sure it's what you want but I have a wee Visual Basic program that scans the AD and lists any account it finds where "IsAccountLocked = True". It then displays them in a list box, each can be selected and a button clicked to unlock the account. Think I have a version which sends an email for each unlocked account if I can find it.

Anyone wants the VB please ask.

Edit
It doesn't reset passwords though it could probably be tweaked to reset it to a default one and also set the password to be changed on next login.
__________________
BES, 4.1.7, was SBE now full BES
Domino v7.0.2
Windows Server 2003, standalone

Last edited by DavidAdams; 09-11-2008 at 03:39 AM..
Offline  
Old 09-11-2008, 08:31 AM   #3
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

BlueBerry, I have also thought about the same, but our web programmer isn't here anymore :(

I wanted to allow unlocking as well as resetting password for AD, and logging off a terminal service account (which can be done with command line).
Offline  
Old 09-11-2008, 08:32 AM   #4
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

If you know how to do the web programming, i may be able to get you all the commands...
Offline  
Old 09-12-2008, 05:22 PM   #5
BlueBerry2007
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 7100i
Carrier: Nextel
Posts: 64
Default

Thanks for your responses. I'm good with the programming for front and back end. Just wanted to see if anybody has done this and get their thoughts.

My main concerns are,

Security:

Security to the web interface (i.e., via htaccess or some other method). I don't know what's available on IIS. I know with Apache you can do htaccess. I need to make sure that only I can access, instead of some rogue person/program who'll starting reseting passwords.

Encrypt communcation between the web interface and the backend (i.e., https, which I don't know how to setup).

Need to verify/confirm that MDS is indeed internal only, that's what reading/research is leading me to believe.

Interface:

Input fields will only be for username and password. I'd be typing from a blackberry, so need to keep this simple.

Another thought, I may just have only a username field (and have the backend script reset to the same password everytime). The backend script will decide whether it needs to unlock the account or not. Or, it'll just go ahead and attempt everytime. So nothing to input on the interface as far as unlocking.

Backend:

Will the backend script run the "net user" command as me, since it's my PC. I'm authorized to reset password but probably not the "system" account or whatever account the script would run as. I'm not too familiar with IIS backend.

Last edited by BlueBerry2007; 09-12-2008 at 05:48 PM..
Offline  
Old 09-12-2008, 10:42 PM   #6
qc_metal
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Default

You should really be doing this with ASP and javascript or vbscript code on the server-side.

Do a lookup on Google for vbscript reset password, etc. - you should be able to pass form data to your page and reset them with little trouble.

Heck, there's probably already a page out there that someone has already put together for this very purpose.
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 09-12-2008, 10:45 PM   #7
qc_metal
CrackBerry Addict
 
qc_metal's Avatar
 
Join Date: Mar 2005
Location: Rockford, IL
Model: 9530
OS: 4.7.x
Carrier: Verizon
Posts: 590
Default

Here's something. Perhaps you can modify this page...

Simple ASP page to reset passwords [windows] [password] [asp]
__________________
Provision, maintain, and report on users via web: the NEW BerryStats | FAQ
Offline  
Old 09-13-2008, 10:18 PM   #8
kjarrodc
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: 8830
PIN: N/A
Carrier: verizon
Posts: 82
Default

My two cents:

I think your initial idea would work perfectly. Run a web site on iis on your xp workstation and you can enable https without an ssl cert. Run asp.net and avoid any client side code (like javascript.) Personally, I'd avoid running the command lines from any asp.net code. It is possible, but I'm sure the .net framework has a set of classes to deal with this specifically. Also, the frame work could let you search active directory for accounts that have been locked out - Like DavidAdams suggested. You could use visual web developer express IDE (as you may know is free). Also, you can configure asp.net to recognize the blackberry browser so that the asp.net engine will deliver optimized code to the browser. There is a good resource for asp.net / blackberry browser development: BlackBerry - Resource for Microsoft .Net Developers

As far as security is concerned, you don't have to worry about anything. This is of course is the case IF your computer and BES is behind a firewall. MDS access to and from the blackberry is secure, and if you enable https from your site, MDS to your site will be secured. As an additional measure, you could enable basic authentication in IIS (Don't use integrated authentication). This would make you type in your domain credentials when you go to the page. Also, you may notice that 'basic authentication' sends information in plain text, but you wont have to worry about this if your using https. And as another additional measure, you could make the web page require a separate password when you use any of the commands on it.

Hope this helps...

Last edited by kjarrodc; 09-13-2008 at 10:20 PM..
Offline  
Old 09-15-2008, 07:39 AM   #9
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

Quote:
Originally Posted by kjarrodc View Post
My two cents:

As far as security is concerned, you don't have to worry about anything. This is of course is the case IF your computer and BES is behind a firewall. MDS access to and from the blackberry is secure, and if you enable https from your site, MDS to your site will be secured. As an additional measure, you could enable basic authentication in IIS (Don't use integrated authentication). This would make you type in your domain credentials when you go to the page. Also, you may notice that 'basic authentication' sends information in plain text, but you wont have to worry about this if your using https. And as another additional measure, you could make the web page require a separate password when you use any of the commands on it.

Hope this helps...

I agree, disable integrated authentication, use domain credentials and u'll be good to go. You can also lock IIS down by IP address so only the BES server can access the web pages as well.

You can use a number of way to query AD for any locked out accounts and display them, you can then choose a user and reset the pw to a predetermined password. You may also want a function to search a user and reset there password in case they forgot it, but haven't locked themselves out.

If you get all that working, can you make something for terminal services. qwinsta/rwinsta to display and disconnect TS sessions? please
Managing Terminal Services Sessions Remotely - Scott Forsyth's Blog

Last edited by s10xtremenlow; 09-15-2008 at 08:04 AM..
Offline  
Old 09-17-2008, 03:03 PM   #10
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

Any headway?
Offline  
Old 09-22-2008, 07:16 AM   #11
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

beuller?
Offline  
Old 09-29-2008, 07:58 AM   #12
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

Anyone?
Offline  
Old 09-29-2008, 12:04 PM   #13
jgudnas
Thumbs Must Hurt
 
jgudnas's Avatar
 
Join Date: Oct 2006
Location: Calgary
Model: 9800
OS: 6.0.0.161
PIN: where do i find that again.?
Carrier: Rogers
Posts: 71
Default

forsure put a password on your web page.

always keep in mind if you can access the web page from your BB via your BES, so can ANYONE else who is on you BES.. they use the same path..
__________________
800 (direct from RIM), 950, 6280, 7280, 7510, 7520, 7750 (EVIL!!), 7250, 7130e, 8703e, 8100, 8800, 8310, 9000, 9700
Offline  
Old 09-29-2008, 12:27 PM   #14
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

has anyone built it yet though?
Offline  
Old 10-10-2008, 11:03 AM   #15
s10xtremenlow
Thumbs Must Hurt
 
Join Date: Jan 2008
Model: Bold
PIN: N/A
Carrier: AT&T
Posts: 85
Default

dfgdfg
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


IC Realtime NVS-3004 4-Channel H.264 Network Video Server e715  picture

IC Realtime NVS-3004 4-Channel H.264 Network Video Server e715

$205.11



Intel R1208GZ4GC Server picture

Intel R1208GZ4GC Server

$375.00



Abbey Adjustable Wood-Top Server, Size: 13

Abbey Adjustable Wood-Top Server, Size: 13"

$49.99



EMC2 HPE-S HPES Server picture

EMC2 HPE-S HPES Server

$465.00



Canon imagePRESS Server B5100 picture

Canon imagePRESS Server B5100

$1199.00



Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$199.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.