Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Tib on March 18, 2006, 01:40:37 PM
-
Hi
Doesn't #ifg work anymore?
when my netlogon script runs I get errors that the command is not recognised
They used to work great in SME6.0.1-01 ... my windows machines are still the same as what ran on SME6 ... now there conected to SME7.
Any thoughts would be great.
Regards,
Tib
-
Just to expand on the problem here are some errors ...
'#ifg' is not recognized as an internal or external command,
operable program or batch file.
System error 85 has occurred.
'#endif' is not recognized as an internal or external command,
operable program or batch file.
Wierd everying worked on 6.0.1-01 then when I setup my SME7 machine it doesn't work. All me shares connect but the ifg group settings are ignored.
Regards,
Tib
-
If this command worked in SME6 but not in SME7 then you are probably seeing a bug.
If it isn't a bug then sure you will be told why the command nolonger works.
Bug tracker would be best place to report it.
Dave
-
If anyone wants to know ... This isn't a bug.
The #ifg funtionality was introduced by an e-smith-loginscript contrib I installed onto SME6.0.1-01.
This contrib does not work on SME7 atm so it's not point even to try it.
Here is the bug report if ppl are interested.
http://bugs.contribs.org/show_bug.cgi?id=1087
Regards,
Tib
-
If anyone wants to know ... This isn't a bug.
The #ifg funtionality was introduced by an e-smith-loginscript contrib I installed onto SME6.0.1-01.
This contrib does not work on SME7 atm so it's not point even to try it.
Here is the bug report if ppl are interested.
http://bugs.contribs.org/show_bug.cgi?id=1087
Regards,
Tib
Tib,
Try editing /usr/local/bin/generate_netlogon
and change line 37 from this:
tie %accounts, 'esmith::config', '/home/e-smith/accounts';
to this:
tie %accounts, 'esmith::config', '/home/e-smith/db/accounts';
JB
-
mrjhb3
Is that after I install the contrib?
The way it is atm there is no file called generate_netlogon in that location for me.
Regards,
Tib
-
mrjhb3
Is that after I install the contrib?
The way it is atm there is no file called generate_netlogon in that location for me.
Regards,
Tib
Yes. I haven't tested this, so if you have a test server, i'd recommend tested it there first.
JB
-
Thanks mrjhb3
I'll setup a test server and try this one out soon.
Will post the results in the next few days.
Regards,
Tib
-
mrjhb3
I've tested this out on a test server and most seems to work now ... I have tweeked it a bit more but the comands are still not recognnised.
I'll have to check out a few more areas and see if I can see anything ... mind you I'm not much good with scripts etc but maybe I'll fing something.
These are the files I had to modify ...
etc/e-smith/events/actions/conf-loginscript
Line 33: esmith::util::processTemplate (\%conf, "/home/netlogon/netlogon.bat");
change to: esmith::util::processTemplate (\%conf, "/home/e-smith/files/samba/netlogon/netlogon.bat");
etc/e-smith/events/conf-logondrive/S75conf-loginscript
Line 33: esmith::util::processTemplate (\%conf, "/home/netlogon/netlogon.bat");
change to: esmith::util::processTemplate (\%conf, "/home/e-smith/files/samba/netlogon/netlogon.bat");
etc/e-smith/templates/etc/smb.conf/50homes-preexec
Line 1: root preexec = "/usr/local/bin/generate_netlogon /home/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"
change to: root preexec = "/usr/local/bin/generate_netlogon /home/e-smith/files/samba/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"
etc/e-smith/web/functions/loginscript
Line 94: if ( -e '/home/netlogon/netlogon.template' )
change to: if ( -e '/home/e-smith/files/samba/netlogon/netlogon.template' )
Line 96: open ( NETLOGON, '< /home/netlogon/netlogon.template' )
change to: open ( NETLOGON, '< /home/e-smith/files/samba/netlogon/netlogon.template' )
Line 97: || die 'Couldn\'t open /home/netlogon/netlogon.template file!';
change to: || die 'Couldn\'t open /home/e-smith/files/samba/netlogon/netlogon.template file!';
Line 229: open ( NETLOGON, '> /home/netlogon/netlogon.template' )
change to: open ( NETLOGON, '> /home/e-smith/files/samba/netlogon/netlogon.template' )
Line 230: || die 'Couldn\'t open /home/e-smith/files/samba/netlogon/netlogon.template file!';
etc/e-smith/web/panels/manager/cgi-bin/loginscript
Check all relevant lines here as well should be the same as above.
usr/local/bin/generate_netlogon
Line 37: tie %accounts, 'esmith::config', '/home/e-smith/accounts';
change to: tie %accounts, 'esmith::config', '/home/e-smith/db/accounts';
Thats all I could find at a glance.
I also tried things by changing all the netlogon.template to netlogon.bat because with the template file it didn't seem to do much. After the change I can modify the netlogon.bat through the web interface no prob and it copies a vertion of the bat file to the persons home dir with only the shares that are available to them.
So most things seem to work but the #ifg and #endifg is still not recognised.
Regards,
Tib
-
I'm just bumping this as I never got an e-mail that you updated this thread. Looks like there is more to look at. I want to use this rpm on 7.x as well, but don't have the time right now to dig in and see how this works.
JB
-
Well I've looked and looked but I'm not experienced enough to work this out ... I'm not much into scripts etc.
And I'm still learning more and more about linux so someone else might have to have a look at this.
From time to time I will have a look again but unless I work out how it all works I don't think I will be able to do it.
Regards,
Tib
-
Hi
I had a look over all this again and may have found something else.
In the "/etc/e-smith/events/conf-logondrive" section there are two files ... S25conf-samba and S50reload-samba ... they seem to be links ... they have red squares in the bottom left corner which if I'm right mean there broken as when I try to edit or open them I get an error "cannot open remote file '/etc/e-smith/events/conf-logondrive/S25conf-samba'."
I found they are supposed to link to a file in "/etc/e-smith/events/conf-samba" and "/etc/e-smith/events/reload-samba"
These 2 files are missing.
I'm not sure if this has anything to do with it but maybe someone can have a look.
Regards,
Tib.
-
Ok ... it's midnight and time to stop
I have it working but not sure if it's the right way to do it.
I copied the missing files accross form an SME6 server check the files and copied them to the locations.
Aslo I was missing a few things in the netlogon.bat file to point the logon script to the peoples home drive.
I'f someone with a bit more nouse then me would like to check all this over and re package it for others to use let me know.
I still don't think it is 100% but it's working for me as it is.
Regards,
Tib
-
Ok ... it's midnight and time to stop
I have it working but not sure if it's the right way to do it.
I copied the missing files accross form an SME6 server check the files and copied them to the locations.
Aslo I was missing a few things in the netlogon.bat file to point the logon script to the peoples home drive.
I'f someone with a bit more nouse then me would like to check all this over and re package it for others to use let me know.
I still don't think it is 100% but it's working for me as it is.
Regards,
Tib
Tib,
IMO, you did great :pint:! I was able to follow what you did and make some additional changes and get this repackaged. I think I got it all right. I did some minimal testing and it looks good. Those two events you say you don't have any more, they are not needed as the services2adjust and templates2expand functions take their place. Now, I am not guru at this, but I have been able to pretty much follow what is going on. I have repacked this as e-smith-loginscript-0.2-6.noarch.rpm. This will be in my contribs area at http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript as soon as the mirrors sync. If you have a test server and can do more testing, I'd appreciate it and the feedback. If it all looks good, then I plan on re-packaging it again as smeserver-loginscript and will send it all back to the original author of the rpm to see if he wants to maintain it. I really don't.
JB
-
mrjhb3
Thats great ... I din't have time to figure out how to package rpm's .... and I wasn't sure on those 2 files.
I will re-load my test server and try your repackaged ver out through the week.
I was hoping someone would take interest in this as I think it is a very handy add on and a lot of ppl who run SME as a logon server would use this to only connect drives that ppl belong to.
This contrib puts the SME server in parallel with microsoft servers with the way it only connects drives that you belong to and not the whole lot..
Regards,
Tib
-
can you change the name to smeserver-loginscript-0.2-6.noarch.rpm to follow naming conventions.
Also a short descript would be good.
Try to have this thread moved to the other forum.
FYI - I added it to the contribs tab.
-
can you change the name to smeserver-loginscript-0.2-6.noarch.rpm to follow naming conventions.
Did you read my previous post on that? After some feedback, I said I would. To date, no feedback, but it seems to work for me. I don't plan on maintaining this package if I don't have to, so if you want to take it over, please be my guess. I have done nothing to it, except to try to make it work for me and TIB since he did most of the leg work.
FYI - I added it to the contribs tab.
I'd really rather like to see the original owner take back the maintenance of this RPM. I use it on 6.5 which is why I am interested in using it on 7 as well.
JHB3
-
mrjhb3
I can confirm that everything works as required .... I love it :-D
You deserve a few :pint: :pint: :pint: JB
Now we just have to find someone that can maintain the file.
Regards,
Tib
-
Hi Guys!
Is there any documentation on this contrib?! I've seen a few examples on the forums and searched Daniel van Raay's area... but no luck. Or could someone tell us what it can do?!
regards,
jester.
-
jester
Quite simple this one.
You install the rpm
In the server manager panel you will see the link ... just click on it and start seting up your netlogon bat file ... there is even an example that you can have a look at and use to build from.
What it does is it only loads the network drives that the person/group is in so eg: you have G:\shared, P:\Purchasing etc.
Lets say Tod is in purchasing and shared and Chris is only in shared ... you can with this tool creat a bat file so that Tod has G and P drive show up as netork drices but Chris can only see G as his network drive .. as well as H for home.
Ohh yeh you can configure home to be whatever drive leter you want with this as well.
Wait till the rpm gets re-named to the correct format first before you load it onto a production system.
Regards,
Tib
-
After some feedback, I said I would. To date, no feedback, but it seems to work for me.
Just trying to help. However, I couldn't test it out because I had no idea what it was supposed to do. I would guess most others reading this thread would feel the same way.
I don't plan on maintaining this package if I don't have to, so if you want to take it over, please be my guess.
you certainly have enough with the great work you do with horde. i don't want to take it over either. If it's working, I just want to make it; available (so it doesn't get lost in the threads) and documented (so we can remember what it does/doesn't do). If you don't want that, I'll be glad to remove it and let it slide in the dismal abyss of the threads.
I'd really rather like to see the original owner take back the maintenance of this RPM.
So would I but I have no idea who that is since it's not documented anywhere. Which is why I'm trying to get some kind of documentation (descrip, changelog) together.
Also, we are in the wrong forum.
-
OK, I finally got back to this. I have uploaded the latest version with a new name to the same location as before - http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript
Doing this: rpm -qip smeserver-loginscript-0.2-8.noarch.rpm --changelog | more
Name : smeserver-loginscript Relocations: (not relocatable)
Version : 0.2 Vendor: (none)
Release : 8 Build Date: Tue 23 May 2006 07:52:44 AM CDT
Install Date: (not installed) Build Host: www.thebennetthome4.com
Group : Networking/Daemons Source RPM: smeserver-loginscript-0.2-8.src.rpm
Size : 36499 License: Freely distributable
Signature : (none)
Packager : Daniel van Raay <danielvr@caa.org.au>
Summary : smeserver module to provide dynamic windows login scripts
Description :
smeserver enhancement that provides an smeserver manager panel
to configure dynamic windows login scripts.
Make sure you set the Domain Master option to yes on the
workgroup panel in the e-smith-manager.
I think the summary and the description tell enough about this RPM.
I did rename the server-manager panel to say Login script manager and sent the rpm and srpm to Daniel van Raay the original author to see if he plans on maintaining this package or not with a link to this thread for his comments.
EDIT: email to Daniel bounce back to me, so I guess *WE* will be trying to maintain this contrib.
JB