|
 |
asp_cdo thread: Permission problem
Message #1 by "Erik Danielsen" <erik.danielsen@t...> on Thu, 6 Feb 2003 09:49:22 -0800
|
|
Hi
I'm using Win2K server sp2, Exchange2K sp2
I have written a small ASP where exchange mail users sould be able to logon and change some of their properties but the problem is
that it only works if I logon with administrator rights though Basic Authentication and I would like it to work when a exchange user
logs on!
Can I pass the admin log/pwd trough code or can I change the rigths on the server to make it work??
Please help!
This is some of the ASP code:
Dim strUserURL,strForwardAdr,strUserName
If Request.ServerVariables("CONTENT_LENGTH") <> 0 Then
'Retrive form data
strUserName = Trim(Request.Form("username"))
strForwardAdr = Trim(Request.Form("PropertyInfo"))
Dim oPerson
Dim Recipient
Set oPerson = Server.CreateObject("CDO.person")
strUserURL = "LDAP://MYSERVER/CN=" & strUsername & ",CN=Users,DC=MyDomain"
oPerson.DataSource.Open strUserURL,,adModeReadWrite
Set Recipient = oPerson.GetInterface("IMailRecipient")
'Make the changes to the recipient
' Save
oPerson.DataSource.Save ' Error Type:(0x80040E21) when NOT loged on as admin
'I have also tryed the following but then I get Error Type:(0x8007202A) when loged on as admin or not
'oPerson.DataSource.SaveTo strUserURL,,adModeReadWrite,,,"adminName","adminPwd"
'CleanUp
Set oPerson = Nothing
Set Recipient = Nothing
Message #2 by CASSIANO Luiz F CONFAB <TERLFR@c...> on Thu, 6 Feb 2003 08:27:21 -0200
|
|
The problem is the following. As administrator you have the permission
"local logon right", so you can run your script.
Your users dont have this permission. So give them and it will work.
But one question, that's because Im using Exchange 5.5 and I dont have this
object cdo.person.
Could you check your version of CDO component and tell me ?
Thanks
Fred
Web Developer
Tenaris Group
-----Original Message-----
From: Erik Danielsen [mailto:erik.danielsen@t...]
Sent: quinta-feira, 6 de fevereiro de 2003 15:49
To: ASP CDO
Subject: [asp_cdo] Permission problem
Hi
I'm using Win2K server sp2, Exchange2K sp2
I have written a small ASP where exchange mail users sould be able to logon
and change some of their properties but the problem is that it only works if
I logon with administrator rights though Basic Authentication and I would
like it to work when a exchange user logs on!
Can I pass the admin log/pwd trough code or can I change the rigths on the
server to make it work??
Please help!
This is some of the ASP code:
Dim strUserURL,strForwardAdr,strUserName
If Request.ServerVariables("CONTENT_LENGTH") <> 0 Then
'Retrive form data
strUserName = Trim(Request.Form("username"))
strForwardAdr = Trim(Request.Form("PropertyInfo"))
Dim oPerson
Dim Recipient
Set oPerson = Server.CreateObject("CDO.person")
strUserURL = "LDAP://MYSERVER/CN=" & strUsername & ",CN=Users,DC=MyDomain"
oPerson.DataSource.Open strUserURL,,adModeReadWrite
Set Recipient = oPerson.GetInterface("IMailRecipient")
'Make the changes to the recipient
' Save
oPerson.DataSource.Save ' Error Type:(0x80040E21) when NOT loged on as admin
'I have also tryed the following but then I get Error Type:(0x8007202A) when
loged on as admin or not
'oPerson.DataSource.SaveTo
strUserURL,,adModeReadWrite,,,"adminName","adminPwd"
'CleanUp
Set oPerson = Nothing
Set Recipient = Nothing
Message #3 by "Erik Danielsen" <erik.steen@o...> on Thu, 6 Feb 2003 11:55:51
|
|
Hi Fred
Thanks for your answer but I know nothing about "local logon right", could
you tell me how to set these permissions on my users?.
BTW i'm using these tow CDO libraries
NAME="Microsoft CDO For Exchange 2000 Library" UUID="{CD000000-8B95-11D1-
82DB-00C04FB1625D}" VERSION="1.0"-->
NAME="Microsoft CDO for Exchange Management Library" UUID="{25150F00-5734-
11D2-A593-00C04F990D8A}" VERSION="6.0"-->
> The problem is the following. As administrator you have the permission
"local logon right", so you can run your script.
Your users dont have this permission. So give them and it will work.
But one question, that's because Im using Exchange 5.5 and I dont have this
object cdo.person.
Could you check your version of CDO component and tell me ?
Thanks
Fred
Web Developer
Tenaris Group
-----Original Message-----
From: Erik Danielsen [mailto:erik.danielsen@t...]
Sent: quinta-feira, 6 de fevereiro de 2003 15:49
To: ASP CDO
Subject: [asp_cdo] Permission problem
Hi
I'm using Win2K server sp2, Exchange2K sp2
I have written a small ASP where exchange mail users sould be able to logon
and change some of their properties but the problem is that it only works
if
I logon with administrator rights though Basic Authentication and I would
like it to work when a exchange user logs on!
Can I pass the admin log/pwd trough code or can I change the rigths on the
server to make it work??
Please help!
This is some of the ASP code:
Dim strUserURL,strForwardAdr,strUserName
If Request.ServerVariables("CONTENT_LENGTH") <> 0 Then
'Retrive form data
strUserName = Trim(Request.Form("username"))
strForwardAdr = Trim(Request.Form("PropertyInfo"))
Dim oPerson
Dim Recipient
Set oPerson = Server.CreateObject("CDO.person")
strUserURL = "LDAP://MYSERVER/CN=" & strUsername & ",CN=Users,DC=MyDomain"
oPerson.DataSource.Open strUserURL,,adModeReadWrite
Set Recipient = oPerson.GetInterface("IMailRecipient")
'Make the changes to the recipient
' Save
oPerson.DataSource.Save ' Error Type:(0x80040E21) when NOT loged on as
admin
'I have also tryed the following but then I get Error Type:(0x8007202A)
when
loged on as admin or not
'oPerson.DataSource.SaveTo
strUserURL,,adModeReadWrite,,,"adminName","adminPwd"
'CleanUp
Set oPerson = Nothing
Set Recipient = Nothing
Message #4 by CASSIANO Luiz F CONFAB <TERLFR@c...> on Thu, 6 Feb 2003 09:59:03 -0200
|
|
Well..Im not administrator, we have some people only for it.
But I asked to them and its the following:
Go to Win2k, in Administrative Tools, Local Security Police.
Access the folder Local Polices / User Right Assignment.
So choose the item "Log on Locally", then it's just choose the users or
group that you want to assign this right.
----------------------------
Im thing my problem is Exchange 5.5, my CDO version is 1.2.1 and may be
still have some limits or bugs.
But dont forget to tell me if your application works because I'll tell to my
boss that this is the problem.
Thanks
Fred
-----Original Message-----
From: Erik Danielsen [mailto:erik.steen@o...]
Sent: quinta-feira, 6 de fevereiro de 2003 09:56
To: ASP CDO
Subject: [asp_cdo] RE: Permission problem
Hi Fred
Thanks for your answer but I know nothing about "local logon right", could
you tell me how to set these permissions on my users?.
BTW i'm using these tow CDO libraries
NAME="Microsoft CDO For Exchange 2000 Library" UUID="{CD000000-8B95-11D1-
82DB-00C04FB1625D}" VERSION="1.0"-->
NAME="Microsoft CDO for Exchange Management Library" UUID="{25150F00-5734-
11D2-A593-00C04F990D8A}" VERSION="6.0"-->
> The problem is the following. As administrator you have the permission
"local logon right", so you can run your script.
Your users dont have this permission. So give them and it will work.
But one question, that's because Im using Exchange 5.5 and I dont have this
object cdo.person.
Could you check your version of CDO component and tell me ?
Thanks
Fred
Web Developer
Tenaris Group
-----Original Message-----
From: Erik Danielsen [mailto:erik.danielsen@t...]
Sent: quinta-feira, 6 de fevereiro de 2003 15:49
To: ASP CDO
Subject: [asp_cdo] Permission problem
Hi
I'm using Win2K server sp2, Exchange2K sp2
I have written a small ASP where exchange mail users sould be able to logon
and change some of their properties but the problem is that it only works
if
I logon with administrator rights though Basic Authentication and I would
like it to work when a exchange user logs on!
Can I pass the admin log/pwd trough code or can I change the rigths on the
server to make it work??
Please help!
This is some of the ASP code:
Dim strUserURL,strForwardAdr,strUserName
If Request.ServerVariables("CONTENT_LENGTH") <> 0 Then
'Retrive form data
strUserName = Trim(Request.Form("username"))
strForwardAdr = Trim(Request.Form("PropertyInfo"))
Dim oPerson
Dim Recipient
Set oPerson = Server.CreateObject("CDO.person")
strUserURL = "LDAP://MYSERVER/CN=" & strUsername & ",CN=Users,DC=MyDomain"
oPerson.DataSource.Open strUserURL,,adModeReadWrite
Set Recipient = oPerson.GetInterface("IMailRecipient")
'Make the changes to the recipient
' Save
oPerson.DataSource.Save ' Error Type:(0x80040E21) when NOT loged on as
admin
'I have also tryed the following but then I get Error Type:(0x8007202A)
when
loged on as admin or not
'oPerson.DataSource.SaveTo
strUserURL,,adModeReadWrite,,,"adminName","adminPwd"
'CleanUp
Set oPerson = Nothing
Set Recipient = Nothing
Message #5 by "Erik Danielsen" <erik.steen@o...> on Thu, 6 Feb 2003 13:26:45
|
|
I tryed it but did'nt change anything i'm still getting Error Type:
(0x80040E21), this may be because im trying to change a property that only
admins have the right to change, but there must be a way of passing the
admin log/pwd by code??!!!
Anyway the mailusers are members of the Users group witch already have
the "log on localy" policy.
So far thanks for your help Fred.
> Well..Im not administrator, we have some people only for it.
But I asked to them and its the following:
Go to Win2k, in Administrative Tools, Local Security Police.
Access the folder Local Polices / User Right Assignment.
So choose the item "Log on Locally", then it's just choose the users or
group that you want to assign this right.
----------------------------
Im thing my problem is Exchange 5.5, my CDO version is 1.2.1 and may be
still have some limits or bugs.
But dont forget to tell me if your application works because I'll tell to
my
boss that this is the problem.
Thanks
Fred
Message #6 by CASSIANO Luiz F CONFAB <TERLFR@c...> on Thu, 6 Feb 2003 11:43:01 -0200
|
|
Using cdo 1.2 in asp page you have to use ProfileInfo because the
autentication is made by IIS.
In VB application you can pass user/pwd.
I saw in this list, people creating a "superuser" in exchange server who
could manage all mailbox/folder.
I dont know if it work but Im think its not to save to implement.
See you,
-----Original Message-----
From: Erik Danielsen [mailto:erik.steen@o...]
Sent: quinta-feira, 6 de fevereiro de 2003 11:27
To: ASP CDO
Subject: [asp_cdo] RE: Permission problem
I tryed it but did'nt change anything i'm still getting Error Type:
(0x80040E21), this may be because im trying to change a property that only
admins have the right to change, but there must be a way of passing the
admin log/pwd by code??!!!
Anyway the mailusers are members of the Users group witch already have
the "log on localy" policy.
So far thanks for your help Fred.
> Well..Im not administrator, we have some people only for it.
But I asked to them and its the following:
Go to Win2k, in Administrative Tools, Local Security Police.
Access the folder Local Polices / User Right Assignment.
So choose the item "Log on Locally", then it's just choose the users or
group that you want to assign this right.
----------------------------
Im thing my problem is Exchange 5.5, my CDO version is 1.2.1 and may be
still have some limits or bugs.
But dont forget to tell me if your application works because I'll tell to
my
boss that this is the problem.
Thanks
Fred
|
|
 |