David Sam Butler | 3 Nov 01:56 2006
Picon

preventing users from booking too far in advance (another request)

Hi guys,
 
thanks again for the help with this, however now one of my area admins has she needs to be able to book ahead more than two weeks and I don't want her to give her full admin rights to the whole of mrbs, so can this be done easily or is it a bigger issue....?
 
thanks again,
 
sam
 
 
>>> pgreer+ <at> pitt.edu 27/10/2006 9:35:51 pm >>>
in mrbs_sql.inc under the mrbsCheckFree() function,

after the variables are defined,  add a new variable

for me it is called $Fourmonth because I do not want people scheduling out to infinity. Four Months is enough advance notice.
 
then the if statement below that states that if you are not admin and it is over four months from now you cannot book this slot.

have fun....

--------begin snippet ----------

     $user = getUserName();
     $usr_level = authGetUserLevel($user, $auth["admin"]);

        $Fourmonth = mktime (0,0,0,date("m")+4,date("d"),date("Y"));
                                                          
        if ($usr_level != 2 && $starttime > $Fourmonth){
                $err = "  You cannot schedule anything more than 4 months in advance.<BR> ";
                return $err;
        }

     # Select any meetings which overlap ($starttime,$endtime) for this room:

--------end snippet ----------

-Phil Greer

On Oct 27, 2006, at 2:28 AM, David Sam Butler wrote:

Hi All,
 
My boss wants to stop users from booking rooms more than 2 weeks in advance. could anyone help with this. I've looked in the mailing list archives and can't find anything...
 
thanks in advance,
 
sam



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this e-mail in error please notify the
originator of the message. 

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Saint Ignatius' College, Riverview.

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software and RBL Scanning is performed by www.spamhous.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
mrbs-general mailing list




_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software.



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this e-mail in error please notify the
originator of the message. 

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Saint Ignatius' College, Riverview.

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software and RBL Scanning is performed by www.spamhous.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
Chris Snow | 9 Nov 16:44 2006
Picon

NT authentication snags

Hi folks.

I'm having trouble with NT authentication.

The login never shows up anywhere on the pages when I surf to my MRBS 
installation. I can book a room but it always shows as "Created By: 
root" and anyone can delete anyone else's bookings! Also I can't be an 
admin. I hope it's just me configuring it incorrectly. Any pointers please?

Thanks, Chris.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Cooper, Mike | 9 Nov 21:41 2006

Lengthen name

On the calendar when you schedule an entry it shows the starting time, the ending time and the user of created the entry.  The user name is truncated to six (6) characters.  Can anyone tell me which file and where this can be changed to show a longer name.

This e-mail message has been scanned by MailMarshal from Marshal Software, an email content filter.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
Campbell Morrison | 9 Nov 23:46 2006
Picon

MRBS from mobile phones?

Has anyone developed a version of MRBS suitable for access from mobile phones?   Or is anyone working on it?    With more and more people having internet equipped phones I can see that this will soon be very useful.    It would also solve one of the problems we have at our sports club:  which is that, as the club does not have a computer or internet connection, it is impossible to book any of the club facilities when one is actually at the club!
 
Campbell
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
Michael Macken | 15 Nov 04:37 2006
Picon
Picon

Can anyone translate this into code?

Hi there,

I want to add a tweak to edit_entry_handler that limits the total number of
hours bookable forwards of any immediate point in time to 8 hours, for
non-admins). I think what I need to do is:

If authGetUserLevel($user) => 1
For date range ("right now" to ("right now + 200 days"))
Find all entries in mrbs_entry where create_by = $user
Then
For each entry just found do (end_time - start_time)
Then
SUM all those results
And if that SUM > 8 hours return "Error - too many hours" and exit

If anyone can translate the above into something that works I would be very
grateful!

Kind regards,

Michael Macken

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Campbell Morrison | 15 Nov 19:42 2006
Picon

Re: Can anyone translate this into code?

I seem to remember a similar request a few weeks ago, and also remember 
someone replying with a code snippet.   Have you looked on the archive?

Campbell

----- Original Message ----- 
From: "Michael Macken" <m.macken <at> uws.edu.au>
To: <mrbs-general <at> lists.sourceforge.net>
Sent: Wednesday, November 15, 2006 3:37 AM
Subject: [MRBS-general] Can anyone translate this into code?

> Hi there,
>
> I want to add a tweak to edit_entry_handler that limits the total number 
> of
> hours bookable forwards of any immediate point in time to 8 hours, for
> non-admins). I think what I need to do is:
>
>
> If authGetUserLevel($user) => 1
> For date range ("right now" to ("right now + 200 days"))
> Find all entries in mrbs_entry where create_by = $user
> Then
> For each entry just found do (end_time - start_time)
> Then
> SUM all those results
> And if that SUM > 8 hours return "Error - too many hours" and exit
>
>
> If anyone can translate the above into something that works I would be 
> very
> grateful!
>
>
> Kind regards,
>
> Michael Macken
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> mrbs-general mailing list
> mrbs-general <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mrbs-general
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Campbell Morrison | 15 Nov 19:45 2006
Picon

Re: Can anyone translate this into code?

Apologies - I've just re-read your email.   I thought you were trying to 
stop people booking more than 8 hours ahead, but I think you actually want 
them to have a maximum of 8 hours' worth of bookings (no matter how far 
ahead).    The request a few weeks ago was covering the first case - not 
your case.

Campbell

----- Original Message ----- 
From: "Campbell Morrison" <mail <at> campbellmorrison.co.uk>
To: "General purpose list (support/developers/users)" 
<mrbs-general <at> lists.sourceforge.net>
Sent: Wednesday, November 15, 2006 6:42 PM
Subject: Re: [MRBS-general] Can anyone translate this into code?

>I seem to remember a similar request a few weeks ago, and also remember
> someone replying with a code snippet.   Have you looked on the archive?
>
> Campbell
>
>
> ----- Original Message ----- 
> From: "Michael Macken" <m.macken <at> uws.edu.au>
> To: <mrbs-general <at> lists.sourceforge.net>
> Sent: Wednesday, November 15, 2006 3:37 AM
> Subject: [MRBS-general] Can anyone translate this into code?
>
>
>> Hi there,
>>
>> I want to add a tweak to edit_entry_handler that limits the total number
>> of
>> hours bookable forwards of any immediate point in time to 8 hours, for
>> non-admins). I think what I need to do is:
>>
>>
>> If authGetUserLevel($user) => 1
>> For date range ("right now" to ("right now + 200 days"))
>> Find all entries in mrbs_entry where create_by = $user
>> Then
>> For each entry just found do (end_time - start_time)
>> Then
>> SUM all those results
>> And if that SUM > 8 hours return "Error - too many hours" and exit
>>
>>
>> If anyone can translate the above into something that works I would be
>> very
>> grateful!
>>
>>
>> Kind regards,
>>
>> Michael Macken
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> mrbs-general mailing list
>> mrbs-general <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mrbs-general
>>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> mrbs-general mailing list
> mrbs-general <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mrbs-general
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
mao.trash | 20 Nov 18:17 2006

mrbs - Active directory 2003 R2 auth

Hi,
first of all, i'm sorry for my bad english!
 
I solved some problem occurred in ldap authentication with ADS Windows 2003 R2.
 
i've changed:
 
auth_ldap.inc in this manner:
 
function authValidateUser($user, $pass)
{
        global $auth;
        global $ldap_host;
        global $ldap_base_dn;
        global $ldap_user_attrib;
        global $ldap_filter;
        global $account_suffix;  // <------- added LINE 26
...
...
 
     // establish ldap connection
        // the ' <at> ' suppresses errors
        $ldap = <at> ldap_connect($ldap_host);
        ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);    // <-------- Added line 77
        ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0); //disable plain text passwords // <--------- Added line 78
 
        // Check that connection was established
...
...
 
 
            //if( <at> ldap_bind($ldap, $dn, $pass)) // <---- changed line 92 from ... 
            if( <at> ldap_bind($ldap, $user.$account_suffix, $pass))   // <---  ... to
...
...
 
i've configured
config.inc.php
like this:
 
# Where is the LDAP server
$ldap_host = "172.21.1.20";
$ldap_base_dn = "cn=users, dc=pippo, dc=local";
$account_suffix = " <at> pippo.local";
$ldap_user_attrib = "sAMAccountName";
 
In the follow line there was an error ...
#//$ldap_user_filter = "memberOf=CN=ServicePrenotazioniSale,OU=ServiceGroup,dc=prvprato1,dc=local";
 
this is correct
$ldap_filter = "memberOf=CN=ServicePrenotazioniSale,OU=ServiceGroup,dc=pippo,dc=local";
 
I hope someone can use this information to solve same problem.
Good bye.
 
P.S.
mrbs  is a very good program!!!
 
 
 
 
--
 
Maurizio Proietti
Area Gestione e Sviluppo Risorse Interne
Servizio Gestione e Sviluppo Risorse Informatiche
 
Via ricasoli,25 59100 Prato (PO)
Tel 0574-534.605
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general
Richard Hobbs | 27 Nov 15:59 2006
Picon

Removing password functionality

Hello,

How easy would it be to disable password functionality on MRBS?

We have a meeting room booking system here, and my manager has requested
that it be completely open for anyone to edit and make changes, instead
of having individually passworded users.

Can this be done?

Thanks in advance!

Richard.

--

-- 
Richard Hobbs (Systems Administrator)
Toshiba Research Europe Ltd. - Speech Technology Group
Email: richard.hobbs <at> crl.toshiba.co.uk
Web: http://www.toshiba-europe.com/research/
Tel: +44 1223 376964        Mobile: +44 7811 803377

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Michael Burkhard | 27 Nov 21:42 2006
Picon

Re: Removing password functionality

Richard Hobbs <richard.hobbs <at> crl.toshiba.co.uk> schrieb:

> How easy would it be to disable password functionality on MRBS?
>
> We have a meeting room booking system here, and my manager has requested
> that it be completely open for anyone to edit and make changes, instead
> of having individually passworded users.

Make a default user with password and announce the user and password
on the mrbs website or under the login form. So there is a user and
password for all entries and changes.

Regards,

Mibur

--

-- 
Neid muss man sich erarbeiten, Mitleid bekommt man geschenkt!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane