alunmjones
Members-
Posts
210 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by alunmjones
-
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
the more i dig into this the more im finding, ive now got a bug with uploading, it creats the file but dosnt actually put any data in it so i get a file that is 0kb in size and it can take a long time for it to upload this 0kb file, am i doing something wrong? -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
ive fixed the formatting bug by overighting the files in the smb folder with a new copy, there was a fault somwhere, still got the spaces issue though, im very close now, its annoying me its not working right -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
im firefox i can use either, in explorer i have to right click, it downloads text files fine but i get corruption on any files with formatting and fails with files with spaces, is passess a space as a + so it cant find the file to download -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
also im getting corruption on anything i try to download that has styling, like word or powerpoint documents, any advice? -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
i got it working , turns out i didn have the right permissions set on cmd.exe do you know of any modification/way of me allowing it to download files that have spaces in the names? -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
do you have an smb_client folder in your moodle mod folder, i think that is my actuall problem, its not got the files it needs to render it. -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
ive updated with the above, still the same its both the internal FQDN and the website llangefni-dc.llangefni.anglesey.sch.uk is valid internally but not eternally www.llangefni.anglesey.sch.uk and Ysgol Gyfun Llangefni are valid internally and externally i normally use domain/(username) to connect if im not on a domain machine and need access to shared folders. smbclient is on llangefni-email the webserver that hosts www and moodle, its under the same path as in the config and works within cmd prompt. -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
ive replaced the config with the one above, sill only getting the menu/sorting at the top with no documents beeing displayed underneath -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
i have, i cant think of anything else i can do, smbclient is set up and i can use it to connect to the shares, LDAPCapture is set up and allows logins. is to big for me to PM here is the config our FQDN is llangefni.anglesey.sch.uk the netbios version is llangefni and the servers the files are all stored on at the moment is llangefni-dc $smb_cfg=new stdClass; $smb_cfg->cfgWebserverType='windows'; // linux or windows - os on your webserver, not your file server! ################################################################### # String to prefix username - this is useful if you have your # shares on a different server to your domain controller and your # usernames need to be passed as domain/username # $smb_cfg->cfgUserPrefix='domain/'; // try this commented out first! $smb_cfg->cfgUserPrefix='domain/'; // try this commented out first! ################################################################### # Array of windows share strings to convert to smb strings # Windows share is the key and value is the corresponding smb format # i.e. '\\myserver' => 'mydom/myserver' would replace '\\myserver' # in a share string with mydom/myserver $smb_cfg->cfgWinShareToSmb=array( '\\llangefni-dc'=>'llangefni/llangefni-dc' ); // new code block for shares - JWI ################################################################### # Arrays of shares ( other than home directory ) and the courses # they can be shown in. This is to allow administrators to put # access to certain shares in certain courses only # e.g. # #$smb_cfg->cfgWinShares=array( # 'share1'=>array( # 'share'=>'admindomain/server1/staff', // windows share # 'title'=>'Staff Shared Area', // title of share in block # 'courses'=>array(5) // applicable courses (ids) # ), # 'share2'=>array( # 'share'=>'studentdomain/srv1/studentshared', // windows share # 'title'=>'Student Public Area', // title of share in block # 'courses'=>array(1, 5) // applicable courses (ids) # ) [url="http://www.edugeek.net/misc.php?do=dbtech_usertag_hash&hash=%29"]#)[/url] # # NOTE: The convention for specifying your share is domain/server/share - NO LEADING OR TRAILING SLASHES! # NOTE: Your share key must be unique (e.g. in the example above your next share key should be share3, etc..) // populate this as in example above $smb_cfg->cfgWinShares=array( 'share1'=>array( 'share'=>'llangefni/llangefni-dc/Staff Drive', // windows share 'title'=>'Staff Shared Area' // title of share in block ), 'share2'=>array( 'share'=>'GUY-Q430/10.0.0.50/Documents', // windows share 'title'=>'Documents' // title of share in block ) ); // if set to true then display all shares on site page providing user has access to any course specific shares $smb_cfg->cfgAllSharesSite=true; // end new code block for shares - JWI ################################################################### # Anonymoys login is disallowed by default. # If you have public shares in your network (ie you want absolutely everyone (the whole world) to access it) then turn on this flag # i.e. $smb_cfg->cfgAnonymous = true; $smb_cfg->cfgAnonymous = false; ################################################################### # GT MOD 2008-06-19 # Force all files to download instead of trying to open in browser, etc. # NOTE: This variable used to be $smb_cfg->forceDownloads $smb_cfg->cfgForceDownloads = true; ################################################################### # GT MOD 2009-08-03 # Maximum zip size in MBs for downloading folders as zips $smb_cfg->cfgMaxFolderZipSizeMB=0; // set this to 0 for no size limit! ################################################################### # Path at web server to store downloaded files. This script will # check when it need to update the cached file. This path must be # writable to the user that runs your web server. # If you set this value to '' cache will be disabled. # Note: this feature is a security risk. $smb_cfg->cfgCachePath = false; ################################################################### # This script try to set language from web browser. If browser # language is not supported you can set a default language. $smb_cfg->cfgDefaultLanguage = 'en'; ################################################################### # Default charset (as suggested by Norbert Malecki) $smb_cfg->cfgDefaultCharset = 'ISO-8859-1'; ################################################################### # Default browse server for your network. A browse server is where # you run smbclient -L subcommand to read available domains and/or # workgroups. Set to 'localhost' if you are running SAMBA server # in your web server. Maybe you will need cfgDefaultUser and # cfgDefaultPassword if no anonymous browsing is allowed. $smb_cfg->cfgDefaultServer = 'localhost'; ################################################################### # Path to smbclient program. # i.e. $smb_cfg->cfgSmbClient = '/usr/bin/smbclient'; // windows servers - set as below $smb_cfg->cfgSmbClient = 'C:\cygwin\bin\smbclient'; // linux servers - set as below // $smb_cfg->cfgSmbClient = 'smbclient'; ################################################################### # Authentication method with smbclient # 'SMB_AUTH_ENV' USER environment variable (more secure) # 'SMB_AUTH_ARG' smbclient -U param # 'SMB_AUTH_ARG_WIN' - as above but for running on a windows web server server (not file server!) $smb_cfg->cfgAuthMode = 'SMB_AUTH_ARG_WIN'; ################################################################### # If you have Apache mod_rewrite installed you can put this # .htaccess file in same path of smbwebclient.php: # # # RewriteEngine on # RewriteCond %{REQUEST_FILENAME} -d # RewriteRule ^(.*/[^\./]*[^/])$ $1/ # RewriteRule ^(.*)$ smbwebclient.php?path=$1 [QSA,L] # # # Then you will be able to access to use "pretty" URLs # i.e: [url]http://server/windows-network/DOMAIN/SERVER/SHARE/PATH[/url] # # To do this, all you have to set is cfgBaseUrl (*GT Mod- BaseUrl is set automatically by class_smbwebclient_moodle.php) and set # cfgModRewrite = true # (i.e. [url]http://server/windows-network/[/url]) # # Note - Change this if you want to use mod_rewrite $smb_cfg->cfgModRewrite = false; ################################################################### # Do not show dot files (like .cshrc) # $smb_cfg->cfgHideDotFiles = true; ################################################################### # Do not show system shared resources (like admin$ or C$) # $smb_cfg->cfgHideSystemShares = true; ################################################################### # Do not show printer resources # $smb_cfg->cfgHidePrinterShares = true; ################################################################### # Log level # -1 = no messages # 0 = log actions performed # 1 = smbclient calls # >1 = smbclient output # $smb_cfg->cfgLogLevel = 2; ################################################################### # Log facility (User authentication: BasicAuth or FormAuth) # $smb_cfg->cfgFacility = LOG_DAEMON; ################################################################### # User authentication (BasicAuth or FormAuth) # $smb_cfg->cfgUserAuth = 'FormAuth'; ################################################################### # Change PHP session name ('' to use default session name) # $smb_cfg->cfgSessionName = 'SMBWebClientID'; ################################################################### # Virus scanner to upload files -- suggested by Bill R <[email="[email protected]"][email protected][/email]> # Only ClamAV is available in this revision, set to false to # disable virus scanning. # # $smb_cfg->cfgAntivirus = 'ClamAV'; $smb_cfg->cfgAntivirus = false; ################################################################### # Format to upload compressed folders: tar, tgz or zip # # $smb_cfg->cfgArchiver = 'tgz'; $smb_cfg->cfgArchiver = 'zip'; ################################################################### # INTERFACE CLASS ################################################################### # inline files (included using base64_encode PHP function) $smb_cfg->cfgInlineFiles = false; ################################################################### # Enable specific field to be used to retreive home directory # Default = homeDirectory (standard for AD) $smb_cfg->cfgHomeDirField = ''; ################################################################### # IE users have a problem when selecting 'open' for office files # It basically will open the file in 'temporary internet files' # and the user will possibly then save the file to this folder. # If you set the following config variable to true then IE users # will be forced to right hand click and save target for office # documents. $smb_cfg->cfgIEProtectMsOffice=true; ################################################################### # Forces https protocol if set to true $smb_cfg->cfgssl=false; ################################################################### # Skips -N command line parameter (don't prompt for password) # IMPORTANT - if you are using smb client version 3.4 or above then # you need to set this parameter to true. # to find out your version, simply type "smbclient --version" in a # terminal (command prompt) # Ubuntu 8.10 issues with smbclient: # out of the box it won't work with shares using domain names, # it will only work with IPs # To fix this see the following url: # [url="http://ubuntuforums.org/archive/index.php/t-909020.html"][ubuntu] Hardy Couldn't visit windows network with smbclient [Archive] - Ubuntu Forums[/url] # OR - use Ubuntu 8.4 instead (works OK out of the box) # $smb_cfg->cfgSkipNoPwdParam=true; ?> does that look right? -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
im now using LDAPCapure plugin and im still just getting the menu up the top and nothing showing as to the contents of the home folder, my drives from the server arnt working either, its not asking for my username and password any more though so i have to set the domain/ bit in the config off now? -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
does this look right if (isset($_SERVER['REMOTE_ADDR'])) { error_log("should not be called from web server!"); exit; } $nomoodlecookie = true; // cookie not needed require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodle config file. require_once($CFG->libdir.'/blocklib.php'); require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/mod/resource/lib.php'); require_once($CFG->dirroot.'/mod/forum/lib.php'); if (!is_enabled_auth('ldapcapture')) { echo "Plugin not enabled!"; die; } $ldapauth = get_auth_plugin('ldapcapture'); $ldapauth->sync_users(1000, true); ?> -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
thanks, ive stuck our netbios name in the place of domain, going to change over to LDAP Capture later, does the cronjob need to be modified to get it working? i use the auth_ldap_sync_users.php to transfer new users over overnight. -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
ive gone through the setup, SMBCLIENT works and i can connect to any share i want using the apropriate username and password, ive tried setting up the config as above but i dont get any files shown in the block. Is DOMAIN listerally Domain? can i test the block without LDAPCapture and then intergrate it when its working? thanks -
Adding printer for users in domain
alunmjones replied to brickwall53's topic in Windows Server 2008 R2
this should work, its a vbs i run here, i dont tend to use the user bit, but its there for me when i do Dim objNetwork, objPrinters, objSysInfo, strComputerDN, strUserName Dim strUserDN, objUser, strGroups, objGroup, strUserDomain On Error Resume Next Set objNetwork = CreateObject("WScript.Network") Set objPrinters = objNetwork.EnumPrinterConnections strUserName = objNetwork.UserName strUserDomain = objNetwork.UserDomain Set objSysInfo = CreateObject("ADSystemInfo") strComputerDN = objSysInfo.ComputerName 'remove if no individual needs a set printer strUserDN = objSysInfo.UserName Set objUser = GetObject("WinNT://" & strUserDomain & "/" & strUserName & ",user") strGroups = "" For Each objGroup In objUser.Groups strGroups = strGroups & ", " & objGroup.name & "," Next Set objUser = Nothing 'stop here If InStr(LCase(strUserName), LCase("")) Then objNetwork.AddWindowsPrinterConnection "\\server\" objNetwork.SetDefaultPrinter "\\server\" End IF if you want it to remove all other printers and just put the ones above in, should leave local ones alone add For LOOP_COUNTER = 0 To objPrinters.Count - 1 Step 2 If Left(objPrinters.Item(LOOP_COUNTER + 1), 2) = "\\" Then objNetwork.RemovePrinterConnection objPrinters.Item(LOOP_COUNTER + 1), True, True End If Next If InStr(LCase(strUserName), LCase("")) Then ----> "add cond above here" objNetwork.AddWindowsPrinterConnection [url="file://\\server\"]\\server\[/url] -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
just the server name at the moment. -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
i have tried that, our FQDN and just domain, and its all the same, cant get any content to come up, what should the permissions be, allow the user to see? they have full control of the folder at the moment. -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
i have, i can get the smbclient to work fine, i can ping the server that has the file on the ip/name and FQDN, i just cant get the plugin to connect to the server i need, i think this is what is confusing me "mydom/myserver" would that be "domain/server-dc" or "FQDN/server-dc"? or even something else, at the moment its just showing me the top menus with no content listed -
Windows Share Web Client Help
alunmjones replied to alunmjones's topic in Virtual Learning Platforms
i can, im using cygwin to link to my IIS6 web server, im not sure what i should set as the samba server name, should it be the same as the normal network name? -
im trying to get Windows Share Web Client to work, i have samba working on the server and i can access any folder or file i want to, but i cant get Windows Share Web Client to diplay the items. i think its something to do with $smb_cfg->cfgWinShareToSmb=array(); i cant figure out what i need to put in there the current server is for windows \\server-dc\username and when i use samba i use //server-dc/username should i set $smb_cfg->cfgWinShareToSmb=array( '\\server-dc'=>'//server-dc' ); or something else? should i use Domain or our FQDN? thanks
-
thanks, ill wait to see what office 365 can offer us, if all else fails i can build something myself that will do what we want. its still in the cloud if i do it technically as its hosted on the school servers.
-
I'm in the process of preparing for a change over from ActivStudio PE 3/2 to ActivInspire 1.5, ive got the network install working and tested, im now looking to see if there is an easy way of removing ActivStudio PE 3 from the school systems. I have 50 ish Laptops to remove it from, i think i might have one or two that are still on ActivStudio PE 2 that would need to be removed aswell, i dont really want to do it manually. any advice/command i can use? Also is there a way to get ActivInspire 1.5 to look at a server location for extra Content/Recources, id also like it to look in the local folder for when the laptop is used at home to prepare work. thanks
-
we have a Netgear infrastructure here, works well, i dont see anyone droping out, i have the WAG102 AP's 22 of them spread around the school all with the same SSID but different channels, for the most part the laptops stick within 1 or two access points some do move about, i have my HTC HD2 connected to they system all the time, it only drops out when im to far away from an AP, it will always have a little delay when moving from one AP to another as it find the best signal, nothing you can do about that no matter who you go with. all the AP's are connected to various L2 and L3 switches around the school and ar authenticated through radius and certification. works well for us, the only problem i get is when the laptops arnt used for a long while, the server seams to forget that they exsist on the wifi, pluging them in to a CAT5e cable and re-starting solves that, its getting less and less of an issue as they are used more, we have 56 teacher laptops, and 150 student laptops and growing, we have over 500 machines on site in all. you do have to warn people that if they try to connect a lot to one ap it could get slow. the AP we have has a 100mb connection in and 54mb connection out to the laptop, it will always supply the 54mb to the laptops but if you have 30 trying to connect at the same time they will each in fact get only 3.33mb connection, not really a problem when in use but can be an issue if they all start to install something off the sever at the same time.
-
Im here all by myself, i do have a support company i can turn to if needed, i dont for the most part any more, ive got the system working mostly as i want it. 500+ machines (PC's and Laptops) 4 servers going to be 5 soon about 52 projectors and the same of IWB's 31 networked printers plus a few stand alone 850 students about 70 staff i think, not sure on that, AD has more than we have due to old ones not beeing taken off (befor i started) Also got the sims bit to look after, though i dont have access to the server there without a member of the support company beeing there 1 server 12+ machines 9 printers 2 MFP'S connected to the network 1 MFP as a stand alone Ive got everything ready for IP phones whenever they want, with a few ajustments needed next thing is to go Live@Edu with skydrive if i can get the students documents to sync automatically with there skydrive
-
we block youtube/facebook/twitter here for kids, i have surfcontrol at the moment, im hoping to get websence somepoint soon so i can do more granular filtering. youtube is open for the teachers and support staff to use, facebook/twitter is aswell but we try to discorage its use during school time, been thinking of giving a time filter on it so its only open befor 8:45 and after 3:30, not got round to it yet
-
not sure if this has been asked befor, i got a demonstration of live@edu yesterday and i like it, been looking into impleminitation, we are going to go for the new EES from microsoft to get all the cals and office/windows and i think i have everything worked out in my head in terms of syncing email users and passwords, the only thing i cant get my head around is syncyng documents to the skydrive. what we need is for anything the user saves in there My Docs to be automatically synced to the skydrive so they have it at home, and from the skydrive to there documents in school so moving from one to aother becomes seamless. the users my docs in terms of the students are all on the main DC server in the school under the shared folder \\(main-dc)\(username). anyone have any advice? the person yesterday mentiond microsoft sharepoint 2010 as a possible solution, i think it comes with the EES we want to go with. thanks
