Skip to content

Commit 2fd87d8

Browse files
author
mojib
committed
docs: others
1 parent 9f387a9 commit 2fd87d8

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

docs/others/main.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,13 @@ apt-get update && apt-get install curl
117117
curl "http://apps/bootstrap?user=anonymous"
118118
```
119119

120-
121-
# User Provisioning: iRODS + LDAP
120+
## User Provisioning: iRODS + LDAP
122121

123122
This guide explains how to create a new user in both **iRODS** and **OpenLDAP**, including group membership and password setup.
124123

125124
---
126125

127-
## 1. Create iRODS User Account
126+
### 1. Create iRODS User Account
128127

129128
Run the following commands as an iRODS administrator:
130129

@@ -134,9 +133,9 @@ iadmin moduser user01 password user01password
134133
```
135134
This creates an iRODS user `user01` with the type `rodsuser` and sets the password to `user01password`.
136135

137-
## 2. Create LDAP User Account
136+
### 2. Create LDAP User Account
138137

139-
### Step 1: Create an LDIF file for the new user
138+
#### Step 1: Create an LDIF file for the new user
140139
Example: `testuser.ldif`
141140

142141
```ldif
@@ -156,12 +155,12 @@ title: University/College Staff
156155
o: Graz University of Technology
157156
```
158157

159-
### Step 2: Add the user to LDAP
158+
#### Step 2: Add the user to LDAP
160159
```bash
161160
ldapadd -x -D "cn=Manager,dc=tugraz,dc=at" -w "$MANAGER_PASSWORD" -f testuser.ldif
162161
```
163162

164-
## 3. Set LDAP Password for the User
163+
### 3. Set LDAP Password for the User
165164
```bash
166165
ldappasswd -x \
167166
-D "cn=Manager,dc=tugraz,dc=at" \
@@ -170,9 +169,9 @@ ldappasswd -x \
170169
"uid=user01,ou=People,dc=tugraz,dc=at"
171170
```
172171

173-
## 4. Add User to everyone Group
172+
### 4. Add User to everyone Group
174173

175-
### Step 1: Create an LDIF file for group modification
174+
#### Step 1: Create an LDIF file for group modification
176175
Example: `add-everyone.ldif`
177176

178177
```ldif
@@ -182,14 +181,14 @@ add: memberuid
182181
memberuid: user01
183182
```
184183

185-
### Step 2: Apply the group modification
184+
#### Step 2: Apply the group modification
186185
```bash
187186
ldapmodify -x -D "cn=Manager,dc=tugraz,dc=at" -w "$MANAGER_PASSWORD" -f add-everyone.ldif
188187
```
189188

190-
## 5. Add User to community Group
189+
### 5. Add User to community Group
191190

192-
### Step 1: Create an LDIF file for group modification
191+
#### Step 1: Create an LDIF file for group modification
193192
Example: `add-community.ldif`
194193

195194
```ldif
@@ -199,7 +198,7 @@ add: memberuid
199198
memberUid: user01
200199
```
201200

202-
### Step 2: Apply the group modification
201+
#### Step 2: Apply the group modification
203202
```bash
204203
ldapmodify -x -D "cn=Manager,dc=tugraz,dc=at" -w "$MANAGER_PASSWORD" -f add-community.ldif
205204
```

0 commit comments

Comments
 (0)