-
Posts
59 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by wiggum123
-
Right, I would like to point out early on that we do not have Exchange, so many of the posts I have seen relating to this are using Exchange. I am trying to get Outlook 2007 to automaticaly set up a users account using the info in Active Directory. At the moment it will pick up the users userPrincipalName of [email protected] and their password, along with their CN. This is all fine, I have created an autodiscover xml file and dumped it in the outlook program file along with the other default ones and created the corresponding registry file. I have also added in the Outlook GP items to our Server (2008) and have forced a few changes on there. Is there a way of forcing Outlook 2007 to pick up the users email field insted of the UPN? Also we need to append @school.lea.sch.uk to the username. At present it will only send the CN. Any ideas??
-
- active directory
- autodiscover
-
(and 1 more)
Tagged with:
-
Never mind, fixed it. If its useful, here is the fix; Had to use $username$ and not %username% ::Location of the csv file with the user info SET filename="\\path\to\file\file.csv" ::Location to create users, you should have this info in the DN section of the csv file without the username SET location="OU=Import,OU=Students,OU=Accounts,DC=domain,DC=local" ::Home directory SET homedir=\\path\to\homedir\ ::User password SET password="password" csvde -f %filename% -i -k PAUSE Dsquery user %location% | Dsmod user -pwd %password% -hmdrv h: -hmdir %homedir%$username$ -disabled no PAUSE
-
I am trying to create a script that creates users using csvde, then using dsquery and dsmod to enable their accounts, set the password and set their homedrive with homedirectory. The problem I am hitting is with the homedir, it needs to end with the current user I am editing, if I use the %Username% variable it uses the currently connected user and sets them all to that.... Is there another way of using dsget or dsquery to pipe the username its editing? This is what I have so far. ::Location of the csv file with the user info SET filename="\\path\to\file\file.csv" ::Location to create users, you should have this info in the DN section of the csv file without the username SET location="OU=Import,OU=Students,OU=Accounts,DC=domain,DC=local" ::Home directory SET homedir=\\path\to\homedir\ ::User password SET password="password" csvde -f %filename% -i -k PAUSE Dsquery user %location% | Dsmod user -pwd %password% -hmdrv h: -hmdir %homedir%%username% -disabled no PAUSE
-
This is a good site full of CMD line, mac OSx, Oracle, Bash, SQL, VBScript help etc... SS64.com Command line reference
-
You also have to set up options 066 and 067 on your DHCP Server Option 066 should point to your WDS server's IP address Option 067 should point to your bootfile. Ours is boot\x86\wdsnbp.com
-
Hey Guys an Girls I am trying to write a PHP page to connect to one of my DC's to authenticate users. I havnt played with LDAP before and my knowledge of PHP is limited, so I'm a bit lost in the dark at the moment... I have a Ubuntu server for the site, with the latest PHP, and I have told it to install LDAP, I wasnt sure if I had to do anything after installing it.... I have patched together a PHP script which connects to my server and binds successfully, apparantly. I then want to search for a user called ben and display his details, just to check everything is working. It tells me I have connected using this; // LDAP variables $ldaphost = "ldap://myserver/"; // your ldap servers $ldapport = myport; // your ldap server's port number // Connecting to LDAP $ldapconn = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); if ($ldapconn) { // binding to ldap server $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // verify binding if ($ldapbind) { echo "LDAP bind successful...$ldaprdn"; } else { echo "LDAP bind failed..."; } } When I add the following code the page stops working and just goes white... $ds=dc2 $person = "ben" $dn = "dc=mydomain, dc=local"; $filter="(|(sn=$person*)(givenname=$person*))"; $justthese = array("ou", "sn", "givenname", "mail"); $sr=ldap_search($ds, $dn, $filter, $justthese); $info = ldap_get_entries($ds, $sr); echo $info["count"]." entries returned\n"; What have I forgotten to configure? Is there another setting on the DC I need to enable??? Im Pulling my hair out and dont want to leave it unfixed on a Friday!
-
Atom 100%
-
Hey guys Weird problem with websites. Our students are creating a site with embedded flash videos, when they preview them prior to uploading to our webserver the videos do not play. As soon as the site is uploaded they play fine. I guess its something to do with the file URL when they open the page (e.g. file://///shared/Drive_R/Dreamweaver%20Training/Sample%20Website/about.html). It used to work with a previous version of Flash player, and its only since installing the latest version it has stopped working. Has anyone come across this before?
-
Downloading WebMail attachments
wiggum123 replied to wiggum123's topic in Internet Related/Filtering/Firewall
No, Zip files are the same. So are .wmv, .txt It does seem to be more related to Office files though.... It seems fine ish most of the time, but ive only ever expreienced it sticking on an Office file. It will then refuse to open anything. We are using Office 2007, on XP.- 4 replies
-
- attachments
- download
-
(and 2 more)
Tagged with:
-
Downloading WebMail attachments
wiggum123 replied to wiggum123's topic in Internet Related/Filtering/Firewall
Ahh yeh, should have mentioned. It seems to be only IE, predicatibly. As a quick workaround we have put some users onto FireFox and its all good. We dont, however, want to push this out to our domain users- 4 replies
-
- attachments
- download
-
(and 2 more)
Tagged with:
-
Morning all, We seem to be having an intermittent (aren’t those always the best) issue that effects downloading attachments from WebMail sites, we have tested it with Yahoo and the Rm Easymail sites and get similar results. It doesn’t affect all of our users, but seems to be restricted to Staff accounts. When a user logs into their webmail, clicks on an email and then tries to download an attachment they get the choice to either save or open. I would say 2 or 3 times out of 10 it will work, and the file will download fine, the rest of the time the download box will just display this; http://www.beaufortcs.com/images/webmail.jpg If you have selected Save, it doesn’t ask you where you want to save. It’s as if its waiting for a program or something to tell it what to do. It seems to effect any file type, we have experienced it with .doc, .docx, .pdf, .xls, .xlsx and .pub. It seems to take a second or two to kick in aswel, if you go and download a file as soon as your logged in it might work, but if you leave it a while it won’t. It seems to be effecting laptop users who are off the domain, and domain computers. It might hace something to do with our staff username format (e.g. b.wykeham.33161). We have had issues before with Adobe Premiere Elements not liking the .33161 on the end. I can’t imagine why this causes an issue, but we managed to get around it. Has anyone experienced anything like this before? I apologise if this seems very vague, but I am not sure how else to describe such an intermittent problem!!!
- 4 replies
-
- attachments
- download
-
(and 2 more)
Tagged with:
-
Cool, That seems to work percectly. Next problem is... I need to remove from the %RegKey!N!% whatever is afer the final \ For example, one of the strings is pulls out is ; C:\Outlook\pudsey.pst If you present this to robocopy is sets the source as C:\Outlook\pudsey.pst\ which obviously doesnt exist, is there a way of shortening this to display C:\Outlook\ These files arent all in the same place, or called the same thing, so it needs to be specificaly vague... Also... there are 3 spaces at the beginning of the string. I can remove these by changing the DELIMS= to DELIMS= but one of the strings is in the documents and settings folder and it thinks that the space in that is a delimiter and shortens it to; C:\Documents, fairly useless.... any ideas?
-
Hey Thanks for the reply. Ill try using the n+, I had seen this before but it looked a bit complicated. Makes more sense now someone explains it If not I'll have to dust off my VB knowledge!
-
I am trying to write a batch file to backup users emails. We have a mix of Express and Outlook 2007 users. Most of which have changed their data store folders. I have written a batch file that checks if Outlook 2007 and Express are installed, searches the registry for the location of their personal folders and robocopies them to a folder on their home drive (H:\). Robocopy is set to a variable at the top of the file to account for some machines not having it installed. set RoboCopy=\\beaufort.local\NETLOGON\robocopy.exe I have never used the FOR F/ loop, or REG QUERY or FINDSTR so I have been walking blind for the past few days. The first question I have is; With Outlook 2007, there are 2 registry entries for the File Store location, When using the FOR /F loop, how can I assign each key it finds to a different variable. I have this so far; FOR /F "TOKENS=1* DELIMS=" %%G IN ('REG.exe QUERY "HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Catalog" ^|findstr /v /C:"HKEY"') DO ( %RoboCopy% "%%G" "h:\%username%'s Outlook Backup" "*.pst" /E /ZB /R:5 /W:1 /PURGE) This does nothing at the moment. Also, when I call the %%G string it seems to add the location of the batch file before the string, this is from the Source : section of the robocopy it runs Source : C:\Documents and Settings\Administrator.BEAUFORT\Desktop\ C:\Outlook\backup.pst\ There are also 3 spaces before the path in the registry file, is there a way of removing this? I hope this makes some sense... Here is a copy of the entire script, I have added in loads of pauses to see where it fails; TITLE Backup %username%'s Outlook Files cls COLOR 1F set RoboCopy=\\beaufort.local\NETLOGON\robocopy.exe md "H:\%username%'s Outlook Backup" TITLE Checking for Outlook 2007 pause IF EXIST "C:\Documents and Settings\%USERNAME%.Beaufort\Local Settings\Application Data\Microsoft\Outlook\*.*" (echo This user is using Office Outlook, backing up Outlook folder pause GOTO OUTLOOK) echo User not using Outlook 2007 IF ERRORLEVEL=1 (GOTO ERROR) pause cls GOTO EXPRESS :OUTLOOK TITLE Backing up %username%'s Outlook 2007 Files ECHO Backing up files, This may take some time FOR /F "TOKENS=1* DELIMS= " %%G IN ('REG.exe QUERY "HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Catalog" ^|findstr /v /C:"HKEY"') DO ( %RoboCopy% "%%G" "h:\%username%'s Outlook Backup" "*.pst" /E /ZB /R:5 /W:1 /PURGE) pause GOTO EXPRESS :EXPRESS TITLE Checking for Outlook Express IF EXIST "C:\Documents and Settings\%USERNAME%\Application Data\Identities\" (echo This user is using Outlook Express, backing up Outlook Express folder pause IF ERRORLEVEL=1 (GOTO ERROR) GOTO EXPRESSBACKUP) echo User not using Outlook Express pause IF ERRORLEVEL=1 (GOTO ERROR) cls GOTO FINISH :EXPRESSBACKUP TITLE Backing up %username%'s Outlook Express Files md "H:\%username%'s Outlook Backup\Outlook Express" md "H:\%username%'s Outlook Backup\Outlook Express Addressbook" for /f "tokens=5" %%i in ('reg.exe query HKCU\Identities\ ^|findstr /C:"Default User ID"') do SET ID=%%i for /f "tokens=4" %%g in ('reg.exe query "HKEY_CURRENT_USER\Identities\%ID%\Software\Microsoft\Outlook Express\5.0\" ^|findstr /C:" Store Root"') do ( %RoboCopy% "%%g" "h:\%username%'s Outlook Backup\Outlook Express" "*.dbx" /E /ZB /R:5 /W:1 /PURGE) pause %RoboCopy% "C:\Documents and Settings\%USERNAME%\Application Data\Microsoft\Address Book" "h:\%username%'s Outlook Backup\Outlook Express Addressbook" /E /ZB /R:5 /W:1 /PURGE pause cls IF ERRORLEVEL=1 (GOTO ERROR) GOTO FINISH :FINISH COLOR 2F CLS TITLE Backed up %username%'s Outlook Files echo %USERNAME%'s Outlook Backed Up pause EXIT :ERROR CLS COLOR 4E ECHO %USERNAME% Error during Backup EXIT
-
Hey Guys Webman Thanks for the code, I've put that in and it works perfectly. Thank you very much!! budgester Thanks for pointing out the $POST and $GET issue, I had changed it at the top within the form, but I hadnt updated it within the PHP. I have also put the table name into the SQL query. That was left over from another version of the code, just hadnt updated it yet. As for the security issue, there shouldn't be any way of anyone adding data to this table unless they are authorised, and as I'm the only one with access to the table, this cant happen....right?
-
This is what I have changed, what am I doing wrong? </pre><form id="directory_search" name="directory_search" method="GET" action="telephone-search.php"> Search: </form><br>$dir_search = ($_POST['search_directory']);<br>$table = 'telephone';<br>$search = "SELECT * FROM $table WHERE int_no LIKE $dir_search";<br>$result = mysql_query($search);<br>$num = mysql_numrows($result);<br>....bla bla b
-
Yeh, I agree with dwhyte85. Joomla is very powerful, but can be confusing for those who are less IT literate... We use Joomla for our main site here, and are starting to get staff to edit and change their own areas on the site. Some of them pick it up quite easily, some not so much. We have changed the default editor from the TinyMCE to the JCE Editor, which looks and feels alot more like word so staff can pick it up alot easier. It also has alot of useful features like the photo upload. All the staff edit articles through the front end of the site, we found this is much easier than trying to explain the administrator side of the site but it does limit staff to editing pre-existing articles only. If they want a new page, or menu link, they have to come and see you. There are a couple of other components and modules I would strongly recommend. JCE also produce a Mediabox plugin, this allows you to easily implement the shadowbox image viewer, we also use it to show videos and fill in questionnaires. Have a look at their site here. Also I would say you need a way of backing up your site, the component we use is AkeebaBackup. Its a component which displays in the administrator side only and you can manually backup and download entire copies of your site, including the database. There is also a bit of software you can install to a desktop which you can setup to automatically backup and download copies of your site on a regular basis. A good survey component is CK Forms, this will let you quickly setup forms. It will either email you the results or save them to the database for you to view later, you can also download them as a .csv file. You can also apply custom CSS classes and ID's to every part of the form which I find very useful. I hope some of this is useful. Just be prepared to be constantly chasing people up to get content. Also, a site with as much interactivity as you are suggesting will take alot of time to administer, so be prepared. Ben
-
Try styling the div around the logo http://www.carmel.ac.uk/images/homepage/cc_logo.jpg or have I got the wrong idea?
-
Hey, We havnt allowed students to log in to our site yet but we do have separate staff / governors sections. They only have access to their own section on the site. To make this work we are using the NoixACL component. It works by assigning all the menu links to registered, then you have to give each group access to the menus. They are all denied by default. Its worked really well here, as long as you remember to give groups access, and its free!! NoixACL Extension Ben
-
Ive got a bit of knowledge of PHP but not enough to construct a working search box for the school site. I have created a table full of telephone numbers, names and departments. I have created a page that displays the info, all I need is a simple search to find records in a table named telephone. There are 6 rows ID (primary) - not really fussed about this one int_no - Internal Number ext_no - External Number mob_no - Mobile Number name - other - location / department info It would be amazing if I could construct some kind of ajax search, but this is not essential. I can connect to the db and table alright, the problem comes when I start searching. I want the user to be able to search the last 5 rows (I dont want users searching the ID as this will just confuse things) and display the results in a table. This is the code for the table which displays all the info. If I could use the same one that would save so much time! $table = 'telephone'; $query = "SELECT * FROM $table"; $result = mysql_query($query); $num = mysql_numrows($result); $i=0; echo '</pre><table id="sortable" style="width: 100%;" align="center" border="0" cellspacing="0" cellpadding="5">'; echo ""; echo ""; echo 'Internal Extension External Number Mobile Number Name / Department Other Info'; echo ""; echo ""; echo ""; while ($i<$num){ $int_no=mysql_result($result,$i,"int_no"); $ext_no=mysql_result($result,$i,"ext_no"); $mob_no=mysql_result($result,$i,"mob_no"); $name=mysql_result($result,$i,"name"); $other=mysql_result($result,$i,"other"); echo ""; echo '', "$int_no"; echo '', "$ext_no"; echo '', "$mob_no"; echo "$name"; echo " $other"; echo ""; $i++; }; echo ""; echo "</table>";<br><br>?&g I have tried searching around to get a working search script but I'm starting to loose the will... Any help would be greatly appreciated
-
Website links require user to loose focus to work .....
wiggum123 replied to wiggum123's topic in Web Development
I hadnt even thought of that. I can't think of anything in particular that I've set but when I get in tomorrow I'll try logging in as an admin and see what that does. -
Website links require user to loose focus to work .....
wiggum123 replied to wiggum123's topic in Web Development
We dont have any local firewalls, and the problem (as far as I know) only seems to effect local machines. I havnt been able to replicate the error outside of the school. Our webserver is also local and is running SME Server 8 -
Website links require user to loose focus to work .....
wiggum123 replied to wiggum123's topic in Web Development
Hey anyone I have tidied up as much JS as I can. Many of the external JS files are added in by the various modules so I doubt I can do much with them. I have run the hopepage through a few web validators including the W3C and none have come up with any massive errors. Can I ask a favour of anyone reading this, could you please go to BeaufortCS.com, try clicking on a link like the student page, then post a quick reply stating wether or not the page loaded without you having to minimise/maximise the window along with your OS and browser version. -
Website links require user to loose focus to work .....
wiggum123 replied to wiggum123's topic in Web Development
Hi Ross, thanks for the advice. I have removed the duplicated analytics code and completely taken out the add this stuff but I am still having trouble. I will try updating the jquery this weekend. I wonder if it's anything to do with jquery running in non conflict mode. Because some of the plugins and such use the mootools library I had to make jquery run in this compatabity mode. I'll have a go at taking this off. Problem is that it's so hard to replicate. All of my machines run it fine. Even new virtual machines are ok!! Ben
